From 493479fc4092407a1c068ea058cb0509226a9b0f Mon Sep 17 00:00:00 2001 From: Yevhenii Poliakov Date: Thu, 4 May 2023 22:46:28 +0200 Subject: [PATCH] small fun adjustment --- __pycache__/example_nlu.cpython-310.pyc | Bin 1352 -> 1358 bytes evaluate.py | 4 +++- grammar3.jsgf | 4 +++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/__pycache__/example_nlu.cpython-310.pyc b/__pycache__/example_nlu.cpython-310.pyc index f11dccc9e217d213b1aba43a0093ec111729b41c..612df6cd3f9763bc9c50d50709024cf4e457309c 100644 GIT binary patch delta 56 zcmX@Xb&iWWpO=@50SN3K25;onWt4N&&&bbB)i0{dPf5)y&dAhv$xO`2PY2;3Wt6bi&&bbB)z3=IE=|(SNX@Iv*7pu|@{HIV#`uF7 E08@7k(EtDd 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);