Add dp and nlg

This commit is contained in:
Jakub Kaczmarek 2022-05-18 12:33:50 +02:00
parent 6700154e86
commit 6535d5d752
3 changed files with 23 additions and 2 deletions

BIN
requirements-analysis.pdf Normal file

Binary file not shown.

View File

@ -1,2 +1,5 @@
class Dp:
pass
def __init__(self):
self.actions = {
"name": ['imie', 'imię']
}

View File

@ -1,2 +1,20 @@
from asyncio.constants import SENDFILE_FALLBACK_READBUFFER_SIZE
class Nlg:
pass
def __init__(self):
self.reactions = {
"name": "Mam na imie Trailminator."
}
def detect_action(self, message):
for k, v in self.actions:
if any(m in v for m in message):
return k
def generate_action(self, action):
return self.reactions[action]