Hello Shyam,

this is probably not a bug in the code (this is a check in std::ostream), but a problem with the location you're trying to write to. Can you double-check if your path to the n-best-list is correct, and that you can write to it?

best wishes,
Rico


On 01.09.2015 00:36, Shyam Upadhyay wrote:
I am new to using moses and I am trying to use the chart decoder to obtain 100 best decodings as follows,

moses/bin/moses_chart -f mymodel/moses.ini --drop-unknown --n-best-list myout/hyp.mrl.nbest 100

I encounter the following error,

Start loading text phrase table. Moses format : [0.009] seconds
Reading /home/upadhya3/smt-semparse-fresh/work/2015-08-30T21.06.43/model/glue-grammar
----5---10---15---20---25---30---35---40---45---50---55---60---65---70---75---80---85---90---95--100
max-chart-span: 20
max-chart-span: 1000
Created input-output object : [0.009] seconds
Exception: ./moses/OutputCollector.h:64 in Moses::OutputCollector::OutputCollector(std::string, std::string) threw util::Exception because `!m_outStream->good()'. Failed to open output file/home/upadhya3/smt-semparse-fresh/work/2015-08-30T19.44.07/hyp.mrl.nbest

My moses.ini file is, (this was generated automatically by previous steps)

#########################
### MOSES CONFIG FILE ###
#########################

# input factors
[input-factors]
0

# mapping steps
[mapping]
0 T 0
1 T 1

[cube-pruning-pop-limit]
1000

[non-terminals]
X

[search-algorithm]
3

[inputtype]
3

[max-chart-span]
20
1000

# feature functions
[feature]
UnknownWordPenalty
WordPenalty
PhrasePenalty
PhraseDictionaryMemory name=TranslationModel0 num-features=4 path=/home/upadhya3/smt-semparse-fresh/work/2015-08-30T21.06.43/model/rule-table.gz input-factor=0 output-factor=0 PhraseDictionaryMemory name=TranslationModel1 num-features=1 path=/home/upadhya3/smt-semparse-fresh/work/2015-08-30T21.06.43/model/glue-grammar input-factor=0 output-factor=0 tuneable=true

KENLM name=LM0 factor=0 path=/home/upadhya3/smt-semparse-fresh/work/2015-08-30T21.06.43/mrl.arpa order=3

# dense weights for feature functions
[weight]
# The default weights are NOT optimized for translation quality. You MUST tune the weights. # Documentation for tuning is here: http://www.statmt.org/moses/?n=FactoredTraining.Tuning
UnknownWordPenalty0= 1
WordPenalty0= -1
PhrasePenalty0= 0.2
TranslationModel0= 0.2 0.2 0.2 0.2
TranslationModel1= 1
LM0= 0.5


_______________________________________________
Moses-support mailing list
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support

_______________________________________________
Moses-support mailing list
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to