Default to English noun chunks iterator if no lang set

This commit is contained in:
Matthew Honnibal 2017-07-22 14:15:25 +02:00
parent 9750a0128c
commit 23a55b40ca

View File

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