Hi Linh
i've renamed a few classes today to make it more consistent between the
phrase-based and chart decoding. please svn up
On 22/09/2010 16:21, ThuyLinh Nguyen wrote:
Hello,
I want to use and modify moses chart decoder for my research. To speed
up the development time, could you let me know which classes/files
that do the following tasks:
- which functions/files the decoder uses to load the rule table?
Moses has 2 classes for loading & storing the rule tables:
1. PhraseDictionarySCFG - hold everything in memory
2. PhraseDictionaryOnDisk - load rules from disk per sentence
both have a Load() function
- which class/object stores the whole rule table?
the 2 above classes
-which class represents a rule?
TargetPhrase
- which function calculates the sum( or log_sum) features weights of
a rule ?
a little difficult, a little in flux at the moment. TargetPhrase::SetScore()
- During decoding, the chart organized into cells, in which each
contains a nonterminal spans over f_{i+1}^j, which class represents
this chart cell, and where the nonterminals, rules stores.
ChartCell
- To get the derivation of a translation, I need a back pointer to the
antecedent rule, so where the back-pointers are stored?.
Hypothesis::m_prevHypos
(ps. there are 2 hypothesis class, 1 in moses/src for phrase-based, 1 in
moses-chart/src for chart)
Many questions, but I hope this also will be helpful for others who
want to extend awesome Moses :-)
Thank you!
Linh
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support