spaCy/spacy/lang/am/tokenizer_exceptions.py

21 lines
290 B
Python
Raw Normal View History

from ...symbols import NORM, ORTH
_exc = {}
for exc_data in [
2021-01-15 03:57:36 +03:00
{ORTH: "ት/ቤት"},
{ORTH: "ወ/ሮ", NORM: "ወይዘሮ"},
]:
_exc[exc_data[ORTH]] = [exc_data]
for orth in [
"ዓ.ም.",
"ኪ.ሜ.",
]:
_exc[orth] = [{ORTH: orth}]
TOKENIZER_EXCEPTIONS = _exc