16 lines
337 B
Python
16 lines
337 B
Python
import dst
|
|
import nlu
|
|
import dp
|
|
import nlg
|
|
|
|
if __name__ == "__main__":
|
|
msg = "Jak masz na imie?"
|
|
dp_params = nlu.Nlu().parse(msg)
|
|
# print(dp_params)
|
|
nlg_params = dp.Dp(*dp_params).identify()
|
|
# print(nlg_params)
|
|
print(f"{msg}\n{nlg.Nlg(nlg_params).response()}")
|
|
|
|
d = dst.Dst()
|
|
print(d.get_next_question())
|