sklep-internetowy-systemy-d.../main.py

14 lines
271 B
Python
Raw Normal View History

2024-05-07 18:19:32 +02:00
import jsgf
request_grammar = jsgf.parse_grammar_file('./grammars/request.jsgf')
2024-05-07 19:25:33 +02:00
2024-03-16 16:45:26 +01:00
def main():
2024-05-07 18:19:32 +02:00
utterance = 'Czy macie w ofercie balsam do ciała'
matched = request_grammar.find_matching_rules(utterance)
print(matched)
2024-03-16 16:45:26 +01:00
if __name__ == '__main__':
main()