jadooman / phonetisaurus

Automatically exported from code.google.com/p/phonetisaurus
0 stars 0 forks source link

m2m is hard-coded #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
With current checkout if g2p is trained without m2m test fails

Error output is

ValueError: invalid literal for int() with base 10: 'ERROR: FstReader: Symbol 
"e&n" is not mapped to any integer arc ilabel, symbol table = 
models/g-mod.isyms, source = standard input, line = 8'

The reason is that m2m is enabled even if nothing like that is used

Fix:

-    phon = nbestPhoneticizer( args.model, args.isyms, m2m=True )
+    phon = nbestPhoneticizer( args.model, args.isyms, args.m2m )

Original issue reported on code.google.com by nshmy...@gmail.com on 17 Dec 2010 at 9:45

GoogleCodeExporter commented 9 years ago
I have rewritten the phonetisaurus decoder and rewritten all of the python 
training scripts from scratch.  I think that all of these issues as well as 
many more should now be resolved.

Original comment by Josef.Ro...@gmail.com on 11 Apr 2011 at 6:06