mirror of
https://github.com/explosion/spaCy.git
synced 2025-04-25 11:23:40 +03:00
Update adding languages example
This commit is contained in:
parent
c83fe54f0c
commit
d9fa3c6054
|
@ -139,7 +139,7 @@ p
|
||||||
|
|
||||||
# merge base exceptions and custom tokenizer exceptions
|
# merge base exceptions and custom tokenizer exceptions
|
||||||
tokenizer_exceptions = update_exc(BASE_EXCEPTIONS, TOKENIZER_EXCEPTIONS)
|
tokenizer_exceptions = update_exc(BASE_EXCEPTIONS, TOKENIZER_EXCEPTIONS)
|
||||||
stop_words = set(STOP_WORDS)
|
stop_words = STOP_WORDS
|
||||||
|
|
||||||
# create actual Language class
|
# create actual Language class
|
||||||
class Xxxxx(Language):
|
class Xxxxx(Language):
|
||||||
|
@ -248,7 +248,7 @@ p
|
||||||
{ORTH: period, LEMMA: "p.m."}]
|
{ORTH: period, LEMMA: "p.m."}]
|
||||||
|
|
||||||
# only declare this at the bottom
|
# only declare this at the bottom
|
||||||
TOKENIZER_EXCEPTIONS = dict(_exc)
|
TOKENIZER_EXCEPTIONS = _exc
|
||||||
|
|
||||||
+aside("Generating tokenizer exceptions")
|
+aside("Generating tokenizer exceptions")
|
||||||
| Keep in mind that generating exceptions only makes sense if there's a
|
| Keep in mind that generating exceptions only makes sense if there's a
|
||||||
|
|
Loading…
Reference in New Issue
Block a user