I'm having trouble using 'generate'
aaronchantrill opened this issue · 1 comments
aaronchantrill commented
I'd like to generate some sample sentences from my grammar, but every time I use the 'generate' binary located at bin/linux/generate I just get the message:
grammar-kit/SampleGrammars$ ../bin/linux/generate fruit
-bash: ../bin/linux/generate: No such file or directory
The actual file ../bin/linux/generate does exist and I made it executable, so I assume the error message is the program itself reporting that it is unable to find some file, but I have no idea what is missing. I don't have a "generate" command anywhere on my path, and I did install both Julius and grammar-kit from source.
Thanks!
aaronchantrill commented
Got it. Somehow when searching for a "generate" binary I missed the one in julius/gramtools/generate. Now I do
$ ~/julius/gramtools/generate/generate -t ~/julius/grammar-kit/SampleGrammars/digit/digit
Stat: init_voca: read 39 words
Reading in term file (optional)...done
6 categories, 39 words
DFA has 11 nodes and 15 arcs
-----
NO_B HMM NOISE DIGIT NOISE DESU NO_E
NO_B DIGIT NOISE DESU NO_E
NO_B HMM NOISE DIGIT NO_E
NO_B DIGIT NO_E
NO_B DIGIT NOISE DIGIT NOISE DESU NO_E
NO_B HMM NOISE DIGIT NOISE DIGIT NOISE DESU NO_E
NO_B DIGIT NOISE DIGIT NO_E
NO_B HMM NOISE DIGIT NOISE DIGIT NO_E
no further sentence in the last 300 trial