You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@opennlp.apache.org by askar rozi <as...@gmail.com> on 2011/04/11 14:23:57 UTC

runtime error with maxent

hi,all,i encounterd error while using the maxent tool. i have trained model
using the following command:

     maxent -m newModel -i 30 -v train.txt

where the train file is as follows

+1 4:1.0 6:2 9:7 14:1 20:12 25:1 27:0.37 31:1
+1 4:8 6:91 14:1 20:1 29:1 30:13 31:1 39:1
+1 6:1 9:7 14:1 20:111 24:1 25:1 28:1 29:0.21
-1 6:6 9:1 14:1 23:1 35:1 39:1 46:1 49:1
-1 6:1 49:1 53:1 55:1 80:1 86:1 102:1

and then ,i used the following command to test the model:

    maxent -m -p newModel --detail -o output.txt train.txt

then i got the following error:

std::runtime_error caught:line[27] in data file broken.

please help me with this,the train file if simply copied from the maxent
manual file.  anything wrong with my train file or something wrong?thank you
all!