hi bui
On 08/06/2010 15:39, Bui Hung wrote:
Dear Mr Hieu,
1) I got rules from Mose-chart, for example:
, [X][X] , một [X] ||| , [X][X] a [X] ||| 1-1 ||| 0.00244761
0.00375185 0.0388913 0.674677 2.718 ||| 20.4281 1.28563
In this rule, there are 5 scores: 0.00244761 0.00375185 0.0388913
0.674677 2.718
I saw that the firth score is always 2.718 in every rule
I found document about it, but no having. You can explain for me more
detail about 5 scores and Why in your model the firth score is always
2.718
the 2.718 is the phrase count feature, the same as in phrase-based smt.
It may not be particularly important for hierarchical models, but we've
kept out 'cos we're too lazy to get rid of it
http://www.mail-archive.com/[email protected]/msg02071.html
2) Now, I want to add 2 two new scores in this scores but I can't find
where you access them.
I found that in mose.ini file, rules are in rule-table and accessed by
[ttable-file] variable
[ttable-file]
6 0 0 5
/home/i8001/s0810207/Mose-chartNN/scripts/working-dir/model/rule-table
[ttable-file] is accessed by StaticData::LoadPhraseTables() of
StaticData.cpp file
-> In PhraseDictionaryTreeAdaptor.cpp (if impl == Binary) or
PhraseDictionaryMemory.cpp (if impl == Memory)
And you access them in Load of PhraseDictionaryMemory.cpp file
sourcePhraseString = tokens[0]
targetPhraseString = tokens[1]
scoreString = tokens[4];
But 5 scores in tokens[3], Why you don't access tokens[3]
it is accessed, StaticData.cpp:line 805. So to add 2 more feature to the
phrase model, just put this in the ini file:
[ttable-file]
6 0 0 7 /path...
If I want to add 2 new scores in this model, you can show me the way
to do that
Thanks for your help
Best regards,
Bui Hung
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support