Skip to content

Commit

Permalink
update validation.
Browse files Browse the repository at this point in the history
  • Loading branch information
zake7749 committed Nov 23, 2016
1 parent 3422266 commit 808cefe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Chatbot/Validation/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def loadSentences(self, path):
with open(path,'r',encoding='utf-8') as input:
self.sentences = [line.strip('\n') for line in input]

def valiate(self, match, root_only=False):
def validate(self, match, root_only=False):

"""
# TODO APPEND TO TRAINING MODULE
Expand All @@ -42,6 +42,7 @@ def valiate(self, match, root_only=False):
for sentence in self.sentences:
sim,path = match(sentence)
if root_only:
#TODO
pass
else:
if path != self.paths[i]:
Expand Down

0 comments on commit 808cefe

Please sign in to comment.