"""
def __init__(self, norm_rules: str, trans_rules: str,
- analysis_rules: Mapping[Optional[str], 'TokenAnalyzerRule[Any]']):
+ analysis_rules: Mapping[Optional[str], 'TokenAnalyzerRule']):
self.normalizer = Transliterator.createFromRules("icu_normalization",
norm_rules)
trans_rules += ";[:Space:]+ > ' '"
for name, arules in analysis_rules.items()}
- def get_analyzer(self, name: str) -> Analyser:
+ def get_analyzer(self, name: Optional[str]) -> Analyser:
""" Return the given named analyzer. If no analyzer with that
name exists, return the default analyzer.
"""