Difference: GrmNGramForum (124 vs. 125)

Revision 1252017-02-08 - ShlomiVaknin

Line: 1 to 1

OpenGrm NGram Forum

Line: 17 to 17

Create language model from existing ngrams count

ShlomiVaknin - 2017-02-08 - 13:09

Hi, I have existing ngrams with their counts, for example use: ngram.txt: a 12 a b 22 a b c 34 b 23 b c 10 c 4

I would like to create a language model using opengrm, so I am reading it using ngramread:

ngramread ngram.txt > ngram.mod

however, now, if I do:

ngraminfo ngram.mod

I get:

FATAL: NGramModel: Empty automaton

What am I doing wrong?

Thanks, Shlomi

ShlomiVaknin - 2017-02-08 - 13:11

ach, sorry, the formatting of ngram.txt is posted wrong.. there is a newline after every count (but the last)..
Log In


ngramrandgen with a prefix

EditaStewart - 2017-02-02 - 18:22

This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback