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
This commit is contained in:
Brian West
2008-07-17 04:21:28 +00:00
parent 76d581387b
commit bcb7bc63aa
4 changed files with 374 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
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."