Skip to content

Commit

Permalink
Fixed. Does not append any trans term in the leaf node.
Browse files Browse the repository at this point in the history
  • Loading branch information
zake7749 committed Dec 28, 2016
1 parent d1ae4fa commit 0ed467c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Chatbot/RuleMatcher/rulebase.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ def match(self, sentence, threshold=0):
if term == word:
max_sim = 1
matchee = word

return [max_sim, self.id_term, matchee]

class RuleBase(object):
Expand Down Expand Up @@ -245,5 +244,6 @@ def match(self, sentence, topk=1, threshold=0, root=None):
focused_rule = []
for rule_id in self.rules[top_domain].children:
focused_rule.append(self.rules[rule_id])

else:
term_trans += top_domain
return [result_list,term_trans]

0 comments on commit 0ed467c

Please sign in to comment.