mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-12 18:26:30 +03:00
Single and paired orth variants for English
This commit is contained in:
parent
aae05ff16b
commit
56c38484a1
|
@ -38,6 +38,10 @@ class EnglishDefaults(Language.Defaults):
|
||||||
"lemma_index": "lemmatizer/lemma_index.json",
|
"lemma_index": "lemmatizer/lemma_index.json",
|
||||||
"lemma_exc": "lemmatizer/lemma_exc.json",
|
"lemma_exc": "lemmatizer/lemma_exc.json",
|
||||||
}
|
}
|
||||||
|
single_orth_variants = [{"tags": ["NFP"], "variants": ["…", "..."]},
|
||||||
|
{"tags": [":"], "variants": ["-", "—", "–", "--", "---", "——"]}]
|
||||||
|
paired_orth_variants = [{"tags": ["``", "''"], "variants": [("'", "'"), ("‘", "’")]},
|
||||||
|
{"tags": ["``", "''"], "variants": [('"', '"'), ("“", "”")]}]
|
||||||
|
|
||||||
|
|
||||||
class English(Language):
|
class English(Language):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user