Skip to content

Commit

Permalink
Merge pull request #51 from Trondheim-kommune/dev
Browse files Browse the repository at this point in the history
Version 1.5.1
  • Loading branch information
vegarab authored Nov 25, 2019
2 parents 74bcb07 + 4d63c7f commit 5d52f1d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion chatbot/nlp/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def _perform_search(query_text, url_style):
# Append answers until we reach the CHAR_LIMIT
i, n_chars = 0, 0
while n_chars < CHAR_LIMIT and i < len(answers):
n_chars += len(answers[i])
n_chars += len(answers[i][0])
i += 1

# If we only have 1 answer after threshold we don't want to add the
Expand Down
6 changes: 3 additions & 3 deletions chatbot/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@
"multiple_answers": "Jeg har flere mulige svar til deg.",
"url_from_text": "Kilde",
"custom_synset_file": "chatbot/nlp/statics/synset.json",
"character_limit": 400,
"max_answers": 4,
"answer_threshold": 0.05,
"character_limit": 300,
"max_answers": 3,
"answer_threshold": 0.065,
"similarity_threshold": 0.1
}
}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import setup

setup(name='chatbot', version='1.5.0', packages=['chatbot/nlp',
setup(name='chatbot', version='1.5.1', packages=['chatbot/nlp',
'chatbot/model',
'chatbot/api',
'chatbot/util',
Expand Down

0 comments on commit 5d52f1d

Please sign in to comment.