Permalink
Browse files

dutch lang support

  • Loading branch information...
chubin committed Sep 23, 2018
1 parent 036f620 commit 9e7ea4c05e86568fb857bf0a7c9c7724ab170847
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/get_answer.py
View
@@ -300,7 +300,7 @@ def _get_answer_for_question(topic):
print("query_text = ", query_text)
supposed_lang = detector.languages[0].code
print("supposed lang = ", supposed_lang)
if len(topic_words) > 2 or supposed_lang in ['az', 'ru', 'uk', 'de', 'fr', 'es', 'it']:
if len(topic_words) > 2 or supposed_lang in ['az', 'ru', 'uk', 'de', 'fr', 'es', 'it', 'nl']:
lang = supposed_lang
if supposed_lang.startswith('zh_') or supposed_lang == 'zh':
lang = 'zh'

0 comments on commit 9e7ea4c

Please sign in to comment.