Skip to content

Commit

Permalink
Remove redundant text comparison.
Browse files Browse the repository at this point in the history
  • Loading branch information
gunthercox committed Oct 8, 2016
1 parent 396ab20 commit b8db6ba
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions chatterbot/adapters/logic/closest_meaning.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,6 @@ def get(self, input_statement):
else:
raise self.EmptyDatasetException()

# Get the text of each statement
text_of_all_statements = []
for statement in statement_list:
text_of_all_statements.append(statement.text)

# Check if an exact match exists
if input_statement.text in text_of_all_statements:
return 1, input_statement

closest_statement = None
closest_similarity = -1
total_similarity = 0
Expand Down

0 comments on commit b8db6ba

Please sign in to comment.