GOATS/NaturalLanguageAnalyzer.py

7 lines
216 B
Python
Raw Normal View History

class NaturalLanguageAnalyzer:
def process(self, text):
user_act = None
if ("imie" in text or "imię" in text) and "?" in text:
user_act = "request(firstname)"
return user_act