示例#1
0
 def can_process(statement, state, mongo):
     if similar(statement.text, SP_LIST_ITEMS.lower()) > MIN:
         return True
     return False
示例#2
0
 def process(statement, state, mongo):
     return similar(statement.text, SP_LIST_ITEMS.lower())
示例#3
0
 def process(statement, state, mongo):
     return similar(statement.text, SP_PURCHASE)
示例#4
0
 def process(statement, state, mongo):
     return max(similar(statement.text.lower(), SP),
                similar(statement.text.lower(), "shopping"))
示例#5
0
 def can_process(statement, state, mongo):
     if similar(statement.text, SP_PURCHASE) > MIN:
         return True
     return False
示例#6
0
 def process(statement, state, mongo):
     return similar(statement.text, SP_DELETE_LIST)
示例#7
0
 def can_process(statement, state, mongo):
     if similar(statement.text, SP_DELETE_LIST) > MIN:
         return True
     return False
示例#8
0
 def process(statement, state, mongo):
     return similar(statement.text, SP_ADD_ITEM)
示例#9
0
 def can_process(statement, state, mongo):
     if similar(statement.text, SP_ADD_ITEM) > MIN:
         return True
     return False