mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-27 10:26:35 +03:00
Default to English noun chunks iterator if no lang set
This commit is contained in:
parent
9750a0128c
commit
23a55b40ca
|
@ -117,4 +117,5 @@ def es_noun_chunks(obj):
|
|||
token = next_token(token)
|
||||
|
||||
|
||||
CHUNKERS = {'en': english_noun_chunks, 'de': german_noun_chunks, 'es': es_noun_chunks}
|
||||
CHUNKERS = {'en': english_noun_chunks, 'de': german_noun_chunks, 'es': es_noun_chunks,
|
||||
None: english_noun_chunks, '': english_noun_chunks}
|
||||
|
|
Loading…
Reference in New Issue
Block a user