Add cache and NLP for weather

This commit is contained in:
Richard Chien
2017-01-13 12:00:39 +08:00
parent 33fa1f13d8
commit de0a783ecf
3 changed files with 131 additions and 58 deletions

View File

@ -39,4 +39,5 @@ def parse_potential_commands(sentence):
result = func(sentence, segmentation)
if result:
potential_commands.append(result)
print('可能的命令:', potential_commands)
return potential_commands