Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/main/lib/langid.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def langid(text):
# Return the higher confidence result
# if fasttext_result['result']['language'] != cld_result['result']['language']:
# # Log when there is disagreement
# app.logger.debug(json.dumps({
# app.logger.info(json.dumps({
# 'service':'LangId',
# 'message': 'Disagreement between fasttext and cld. Returning higher confidence model',
# 'parameters':{'text':text, 'fasttext':fasttext_result, 'cld':cld_result,},
Expand All @@ -138,7 +138,7 @@ def langid(text):
else:
# Fallback to Google when models disagree and neither has a high-confidence result
google_result = GoogleLangidProvider.langid(text)
app.logger.debug(json.dumps({
app.logger.info(json.dumps({
'service':'LangId',
'message': 'Called Google after inconclusive local results',
'parameters':{'text':text, 'fasttext':fasttext_result, 'cld':cld_result, 'google':google_result},
Expand Down
Loading