[SRILM User List] class-based model
Andreas Stolcke
stolcke at icsi.berkeley.edu
Wed Dec 11 00:53:19 PST 2013
On 12/10/2013 10:20 PM, Laatar Rim wrote:
> Dear Andreas,
> First i'm so sorry for disturbing you,
>
> from many day I want to train a class-based model ,So I use (1), (2)
> and (3) to create the class model.
>
> (1) ngram-class -vocab '/home/hp/Documents/SRILM/tata.txt' -text
> '/home/hp/Documents/SRILM/trainingData.txt' -numclasses 37
> -class-counts output.class-counts -classes
> '/home/hp/Documents/SRILM/Replace_word_with_class_SRILM'
>
>
> (2) replace-words-with-classes
> classes='/home/hp/Documents/SRILM/Replace_word_with_class_SRILM'
> '/home/hp/Documents/SRILM/trainingData.txt' > output_text_with_classes_2
>
> (3) ngram-count -tolower -text
> '/home/hp/Documents/SRILM/trainingData.txt' -lm class_based_model_2
For step 3 you need to use
ngram-count -text output_text_with_classes_2 -lm class_based_model_2
To evaluate the LM you would then use
ngram -lm class_based_model_2 -classes
'/home/hp/Documents/SRILM/Replace_word_with_class_SRILM' -ppl ... (or
other options that use the LM)
Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.speech.sri.com/pipermail/srilm-user/attachments/20131211/366fc5f5/attachment.html>
More information about the SRILM-User
mailing list