GOATS/NaturalLanguageAnalyzer.py
2024-04-17 19:35:47 +02:00

7 lines
216 B
Python

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