diff --git a/__pycache__/example_nlu.cpython-310.pyc b/__pycache__/example_nlu.cpython-310.pyc index f11dccc..612df6c 100644 Binary files a/__pycache__/example_nlu.cpython-310.pyc and b/__pycache__/example_nlu.cpython-310.pyc differ diff --git a/evaluate.py b/evaluate.py index 6e6ab2d..1f2f62d 100644 --- a/evaluate.py +++ b/evaluate.py @@ -40,4 +40,6 @@ if __name__ == "__main__": if l != []: good += 1 - print(f'Accuracy: {good/len(rows)*100}%') \ No newline at end of file + print(f'Accuracy: {good/len(rows)*100}%') + +en.predict('rock and stone') \ No newline at end of file diff --git a/grammar3.jsgf b/grammar3.jsgf index eeadd5e..19015cc 100644 --- a/grammar3.jsgf +++ b/grammar3.jsgf @@ -2,7 +2,7 @@ grammar zakupyOnline; -public = [ {hello}] [] [{commandType}] [{product}] [ {rest}] [ {bye}]; +public = [ {hello}] [ {rocknstone}] [] [{commandType}] [{product}] [ {rest}] [ {bye}]; = ( | | | | | | | | | | | | | ); @@ -24,6 +24,8 @@ public = [ {hello}] [] [{commandType}] = (dzień dobry | cześć | witaj); + = (rock and stone | rock and stone to the bone | rockity rock and stone | for karl | by the beard | yeah yeah rock and stone | if you dont rock and stone you aint coming home | stone and rock oh wait | did i hear a rock and stone); + = (do widzenia | cześć | pa | dziękuję | dziekuje | dziękuje | dziekuję | dzięki | dzieki | czesc | cześc| czesć | oki | okej | do zobaczenia | (to [byłoby] wszystko) | (to będzie wszystko))*; = (dodaj | usuń | edytuj | zaktualizuj | zobacz | anuluj | potwierdź | zapłacę | zapłacić | usunąć | edytować | zaktualizować | zobaczyć | anulować | dodać | potwierdzić | potwierdziłem);