Zmiana test_nlu
This commit is contained in:
parent
1af80df028
commit
3c39ab377d
@ -104,7 +104,7 @@ class ML_NLU:
|
|||||||
def test_nlu(self, utterance):
|
def test_nlu(self, utterance):
|
||||||
|
|
||||||
if utterance:
|
if utterance:
|
||||||
return tabulate(self.predict(self.model, 'doktor lekarza rodzinnego najlepiej dzisiaj w godzinach popołudniowych dziś '.split()), tablefmt='html')
|
return tabulate(self.predict(self.model, utterance.split()), tablefmt='tsv')
|
||||||
|
|
||||||
else:
|
else:
|
||||||
return 'Critical Error'
|
return 'Critical Error'
|
||||||
|
Loading…
Reference in New Issue
Block a user