Hello Sir,
I was trying to run moses using already generated models. But I got this
error:
hieu@hieu-VirtualBox:~/workspace/github/working$
/home/hieu/workspace/github/mosesdecoder/bin/moses -f india/en-mr/moses.ini
Defined parameters (per moses.ini or switch):
config: india/en-mr/moses.ini
distortion-file: 0-0 wbe-msd-bidirectional-fe-allff 6
/home/hieu/workspace/github/working/india/en-mr/reordering-table.wbe-msd-bidirectional-fe.gz
distortion-limit: 6
input-factors: 0
lmodel-file: 1 0 5 /home/hieu/workspace/github/working/india/mr/mr.lm
mapping: 0 T 0
ttable-file: 0 0 0 5
/home/hieu/workspace/github/working/india/en-mr/phrase-table.gz
ttable-limit: 20
weight-d: 0.0655118 0.10091 0.0237089 0.0746748 0.0667524 0.0398009
0.0216711
weight-l: 0.15864
weight-t: 0.0294934 0.0740486 -6.53905e-05 0.00500778 0.281338
weight-w: 0.0583774
line=IRSTLM factor=0 order=5 num-features=1
path=/home/hieu/workspace/github/working/india/mr/mr.lm
FeatureFunction: IRSTLM0 start: 0 end: 0
line=Distortion
FeatureFunction: Distortion0 start: 1 end: 1
line=LexicalReordering type=wbe-msd-bidirectional-fe-allff input-factor=0
output-factor=0 num-features=6
path=/home/hieu/workspace/github/working/india/en-mr/reordering-table.wbe-msd-bidirectional-fe.gz
FeatureFunction: LexicalReordering0 start: 2 end: 7
Initializing LexicalReordering..
line=WordPenalty
FeatureFunction: WordPenalty0 start: 8 end: 8
line=UnknownWordPenalty
FeatureFunction: UnknownWordPenalty0 start: 9 end: 9
line=PhraseDictionaryMemory input-factor=0 output-factor=0
path=/home/hieu/workspace/github/working/india/en-mr/phrase-table.gz
num-features=5 table-limit=20
FeatureFunction: PhraseDictionaryMemory0 start: 10 end: 14
Loading IRSTLM0
In LanguageModelIRST::Load: nGramOrder = 5
Language Model Type of /home/hieu/workspace/github/working/india/mr/mr.lm
is 1
Language Model Type is 1
\data\
loadtxt_ram()
1-grams: reading 89171 entries
done level 1
2-grams: reading 397900 entries
done level 2
3-grams: reading 28396 entries
done level 3
4-grams: reading 15557 entries
done level 4
5-grams: reading 8777 entries
done level 5
done
starting to use OOV words [<unk>]
OOV code is 89171
OOV code is 89171
OOV code is 89171
IRST: m_unknownId=89171
Loading Distortion0
Loading LexicalReordering0
Loading table into memory...done.
Loading WordPenalty0
Loading UnknownWordPenalty0
Loading PhraseDictionaryMemory0
Start loading text phrase table. Moses format : [35.255] seconds
Reading /home/hieu/workspace/github/working/india/en-mr/phrase-table.gz
----5---10---15---20---25---30---35---40---45---50---55---60---65---70---75---80---85---90---95--100
****************************************************************************************************
Exception: moses/Phrase.cpp:214 in void
Moses::Phrase::CreateFromString(Moses::FactorDirection, const
std::vector<unsigned int>&, const StringPiece&, Moses::Word**) threw
util::Exception because `nextPos == string::npos'.
Incorrect formatting of non-terminal. Should have 2 non-terms, eg. [X][X].
Current string: [कलकत्ता]
Please Help.
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support