14 lines
271 B
Python
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()
|