Hi again,

After a further web search I found that the class to use is
PhraseDictionaryTreeAdaptor. But I do not know which parameter I should
supply to the Load method:
bool Load(
  const std::vector<FactorType> &input,
       -> ?

  const std::vector<FactorType> &output, 
       -> ?

  const std::string &filePath,           
       -> I guess this is the path to the binary phrase table

  const std::vector<float> &weight,
       -> Are these weights those found in moses.ini? If I do not 
          plan to use these weights can I supply an empty vector?

  size_t tableLimit,
       -> How do I obtain the table limit?

  const LMList &languageModels,
      -> A list of language models? If I do not plan to use them 
         can I supply an empty list?

  float weightWP
      -> ?
);

I do not know if this information helps. The binary phrase table
contains 5 different scores (those used by moses by default). The
command use to build the binary phrase table was:

LC_ALL=C && zcat model/phrase_table.gz | sort |
moses/misc/processPhraseTable -ttable 0 0 - -nscores 5 -out
model/phrase-table

After initialising  PhraseDictionaryTreeAdaptor I only need to call
GetTargetPhraseCollection(Phrase const &src)  to get all the possible
translations of a given source phrase. Is this correct?


Thanks again 
--
Felipe

_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to