freeswitch/scripts/Makefile.gram
Brian West bcb7bc63aa quick_lm.pl - will compile a sentence file into an lm for use with pocketpshinx.
mklm        - this wraps quick_lm.pl and builds the dictionary for the lm.
Makefile.gram - is installed ito prefix/grammar so you can just put your sentence files in the grammar directory and type make.

The sentence file format is:

<s> YES </s>
<s> NO </s>

Save this in yesno.sent and place in grammar directory.

cd grammar
make

To wipe out all the grammars type 

make clean.


Please test and report any issues.  This should allow you to build lm's with ease.






git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9067 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-07-17 04:21:28 +00:00

14 lines
203 B
Makefile

main: grammar
grammar:
@echo "Creating Grammar files..."
@../bin/mklm
@echo "Done."
clean:
@echo "Cleaning Grammar files..."
@rm -f *.fsg *.words *.dic *~ \#*
@../bin/mklm clean
@echo "Done."