Update adding languages example

This commit is contained in:
ines 2017-11-04 15:12:39 +01:00
parent c83fe54f0c
commit d9fa3c6054

View File

@ -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