Unverified Commit cc2366bb authored by Masatoshi Suzuki's avatar Masatoshi Suzuki Committed by GitHub
Browse files

Ignore not initialized NO_CONFIG_TOKENIZERs (#10936)

parent ddea8771
......@@ -288,7 +288,7 @@ def tokenizer_class_from_name(class_name: str):
all_tokenizer_classes = (
[v[0] for v in TOKENIZER_MAPPING.values() if v[0] is not None]
+ [v[1] for v in TOKENIZER_MAPPING.values() if v[1] is not None]
+ NO_CONFIG_TOKENIZER
+ [v for v in NO_CONFIG_TOKENIZER if v is not None]
)
for c in all_tokenizer_classes:
if c.__name__ == class_name:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment