sklep-internetowy-systemy-d.../main.py
2024-05-07 19:25:33 +02:00

14 lines
271 B
Python

import jsgf
request_grammar = jsgf.parse_grammar_file('./grammars/request.jsgf')
def main():
utterance = 'Czy macie w ofercie balsam do ciała'
matched = request_grammar.find_matching_rules(utterance)
print(matched)
if __name__ == '__main__':
main()