bugfix
This commit is contained in:
parent
0a03376129
commit
b052bb6aa0
@ -1,12 +1,13 @@
|
|||||||
import re
|
import re
|
||||||
|
|
||||||
def analizator_jezyka_naturalnego(text):
|
|
||||||
hello = ['dzie[ńn] dobry', 'dobry wiecz[oó]r', 'witam', 'witaj', 'siema', 'elo', 'cze[śs][ćc]']
|
hello = ['dzie[ńn] dobry', 'dobry wiecz[oó]r', 'witam', 'witaj', 'siema', 'elo', 'cze[śs][ćc]']
|
||||||
request_name = ['imi[eę]', 'nazywasz']
|
request_name = ['imi[eę]', 'nazywasz']
|
||||||
question = ['\?$']
|
question = ['\?$']
|
||||||
|
|
||||||
acts = {'hello': [hello],
|
acts = {'hello': [hello],
|
||||||
'request(name)': [request_name, question]}
|
'request(name)': [request_name, question]}
|
||||||
|
|
||||||
|
def analizator_jezyka_naturalnego(text):
|
||||||
text = text_preprocess(text)
|
text = text_preprocess(text)
|
||||||
frame = act_check(text)
|
frame = act_check(text)
|
||||||
return frame
|
return frame
|
||||||
|
Loading…
Reference in New Issue
Block a user