mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 09:26:27 +03:00
Expose Japanese stop words (closes #3346)
This commit is contained in:
parent
85deb96278
commit
6bd34e9d54
|
@ -4,6 +4,7 @@ from __future__ import unicode_literals, print_function
|
|||
import re
|
||||
from collections import namedtuple
|
||||
|
||||
from .stop_words import STOP_WORDS
|
||||
from .tag_map import TAG_MAP
|
||||
from ...attrs import LANG
|
||||
from ...language import Language
|
||||
|
@ -90,6 +91,7 @@ class JapaneseTokenizer(DummyTokenizer):
|
|||
class JapaneseDefaults(Language.Defaults):
|
||||
lex_attr_getters = dict(Language.Defaults.lex_attr_getters)
|
||||
lex_attr_getters[LANG] = lambda _text: "ja"
|
||||
stop_words = STOP_WORDS
|
||||
tag_map = TAG_MAP
|
||||
|
||||
@classmethod
|
||||
|
|
Loading…
Reference in New Issue
Block a user