emawind84 / mitlm

Automatically exported from code.google.com/p/mitlm
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Cannot run estimate-ngram without --read-wfeatures #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Whn running:
estimate-ngram -read-text tmp.txt --write-binary-lm tmp.mitml

Loading corpus tmp.txt...
Smoothing[1] = ModKN
Smoothing[2] = ModKN
Smoothing[3] = ModKN
Set smoothing algorithms...
Segmentation fault (core dumped)

When I add -w tmp.wfeatures, where tmp.wfeatures is empty file, it works OK.

I'm using mitlm from SVN under Linux, amd64.

Original issue reported on code.google.com by alu...@gmail.com on 3 Dec 2008 at 1:53

GoogleCodeExporter commented 8 years ago

Original comment by bojune...@gmail.com on 4 Dec 2008 at 8:00

GoogleCodeExporter commented 8 years ago
Forgot to initialize _featureList in NgramLM.
Thanks alumae for catching this.

Original comment by bojune...@gmail.com on 8 Dec 2008 at 3:57