mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-12 04:38:28 +03:00
46 lines
601 B
Python
46 lines
601 B
Python
# encoding: utf8
|
|
from __future__ import unicode_literals
|
|
|
|
from ...symbols import *
|
|
|
|
|
|
TOKENIZER_EXCEPTIONS = {
|
|
"Jan.": [
|
|
{ORTH: "Jan.", LEMMA: "January"}
|
|
]
|
|
}
|
|
|
|
|
|
# exceptions mapped to a single token containing only ORTH property
|
|
# example: {"string": [{ORTH: "string"}]}
|
|
# converted using strings_to_exc() util
|
|
|
|
ORTH_ONLY = [
|
|
"a.",
|
|
"b.",
|
|
"c.",
|
|
"d.",
|
|
"e.",
|
|
"f.",
|
|
"g.",
|
|
"h.",
|
|
"i.",
|
|
"j.",
|
|
"k.",
|
|
"l.",
|
|
"m.",
|
|
"n.",
|
|
"o.",
|
|
"p.",
|
|
"q.",
|
|
"r.",
|
|
"s.",
|
|
"t.",
|
|
"u.",
|
|
"v.",
|
|
"w.",
|
|
"x.",
|
|
"y.",
|
|
"z."
|
|
]
|