I need to be able to define a new simple grammar for my application so it's able to give me the best matching command.
What I mean precisely is: suppose I say "please execute/call/run script 'a'", I want to define the grammar so it will output only things like.
- run script 'a', or 'b', or 'c', etc
- stop script 'a', or 'b', or 'c', etc
- copy script 'a', or 'b', or 'c', etc
- remove script 'a', or 'b', or 'c', etc
- if it couldn't find any closest matching, output "no matching"
What would be the best way to do this?
Thanks,
Suwandy
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I need to be able to define a new simple grammar for my application so it's able to give me the best matching command.
What I mean precisely is: suppose I say "please execute/call/run script 'a'", I want to define the grammar so it will output only things like.
- run script 'a', or 'b', or 'c', etc
- stop script 'a', or 'b', or 'c', etc
- copy script 'a', or 'b', or 'c', etc
- remove script 'a', or 'b', or 'c', etc
- if it couldn't find any closest matching, output "no matching"
What would be the best way to do this?
Thanks,
Suwandy