hi janardhan please send me your ini file and few lines of the phrase table and i'll take a look.
The glue rules should look like the file attached, however, it depends on
the tagset of your parser. The glue rule file is created automatically when
you extract-rules with the argument
--GlueGrammar FILE
On 20 October 2011 18:02, JANARDHAN SINGH <[email protected]> wrote:
> Hi,
>
> I am trying an experiment on String to tree Machine translation. After
> training, when I try to decode I get the following error:
>
>
> echo 'John eats rice' |
> /home/janardhan/Desktop/moses-chart-cmd/src/moses_chart -f
> /home/janardhan/Desktop/backup_data/stage1sample/test/model/moses.ini -T
> out.txt
> Defined parameters (per moses.ini or switch):
> config:
> /home/janardhan/Desktop/backup_data/stage1sample/test/model/moses.ini
> cube-pruning-pop-limit: 1000
> glue-rule-type: 0
> input-factors: 0
> inputtype: 3
> lmodel-file: 0 0 3
> /home/janardhan/Desktop/backup_data/stage1sample/test/uw.lm
> mapping: 0 T 0
> max-chart-span: 20 1000
> non-terminals: X
> search-algorithm: 3
> translation-details: out.txt
> ttable-file: 6 0 0 5
> /home/janardhan/Desktop/backup_data/stage1sample/test/model/rule-table.gz
> ttable-limit: 20
> weight-l: 0.5000
> weight-t: 0.2 0.2 0.2 0.2 0.2 1.0
> weight-w: -1
> Loading lexical distortion models...have 0 models
> Start loading LanguageModel
> /home/janardhan/Desktop/backup_data/stage1sample/test/uw.lm : [0.000]
> seconds
> Finished loading LanguageModels : [0.000] seconds
> Start loading PhraseTable
> /home/janardhan/Desktop/backup_data/stage1sample/test/model/rule-table.gz :
> [0.000] seconds
> filePath:
> /home/janardhan/Desktop/backup_data/stage1sample/test/model/rule-table.gz
> Start loading new format pt model : [0.000] seconds
> moses_chart: Word.cpp:99: void
> Moses::Word::CreateFromString(Moses::FactorDirection, const
> std::vector<unsigned int, std::allocator<unsigned int> >&, const
> std::string&, bool): Assertion `wordVec.size() == factorOrder.size()'
> failed.
> Aborted
>
> Can somebody help me with what this error means.
>
> Also, how does one create a glue grammar specific to his problem? Is there
> a useful paper or technique for this?
>
> Regards,
> -Janardhan
>
> _______________________________________________
> Moses-support mailing list
> [email protected]
> http://mailman.mit.edu/mailman/listinfo/moses-support
>
>
glue-grammar.9
Description: Binary data
_______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
