Update __init__.py

This commit is contained in:
luvogels 2017-04-11 18:30:15 +02:00 committed by luvogels
parent 03abd0c8e6
commit 55e8cade36
1 changed files with 7 additions and 7 deletions

View File

@ -12,14 +12,14 @@ from .language_data import *
# create Language subclass
class NorwegianBokmal(Language):
class Norwegian(Language):
lang = 'nb' # ISO code
class Defaults(Language.Defaults):
lex_attr_getters = dict(Language.Defaults.lex_attr_getters)
lex_attr_getters[LANG] = lambda text: 'nb'
lex_attr_getters = dict(Language.Defaults.lex_attr_getters)
lex_attr_getters[LANG] = lambda text: 'nb'
# override defaults
tokenizer_exceptions = TOKENIZER_EXCEPTIONS
#tag_map = TAG_MAP
stop_words = STOP_WORDS
# override defaults
tokenizer_exceptions = TOKENIZER_EXCEPTIONS
#tag_map = TAG_MAP
stop_words = STOP_WORDS