Compare commits
No commits in common. "3a6965c2d9ae5c72f01281f76a7880df0b4fac6c" and "1c21ed4065db45ea8aced801d9d8e079e92b027c" have entirely different histories.
3a6965c2d9
...
1c21ed4065
7
Main.py
7
Main.py
@ -1,7 +0,0 @@
|
||||
from NaturalLanguageAnalyzer import NaturalLanguageAnalyzer
|
||||
|
||||
if __name__ == "__main__":
|
||||
text = "Cześć, jak masz na imię?"
|
||||
nla = NaturalLanguageAnalyzer()
|
||||
user_act = nla.process(text)
|
||||
print(user_act)
|
@ -1,6 +0,0 @@
|
||||
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
|
Loading…
Reference in New Issue
Block a user