[Moses-support] Reading binary phrase table from the disk
Hello,
As I understand, when given a binary phrase table, moses does not load it into memory, but rather seeks for phrases in file directly from disk. Could you please tell me, what are the functions in C++ that are used for this purpose.
Thank you,
Michael.
Re:[Moses-support] Reading binary phrase table from the disk
There are several layers to the implementation, with the program-level API defined in the PhraseDictionaryTreeAdaptor class.
PhraseDictionaryTreeAdaptor forwards its calls to PDAImp, which is a wrapper on PhraseDictionaryTree, which uses a PrefixTreeF template class. PrefixTreeF reads binary files using a smart pointer defined in FilePtr.h.
Cheers
Adam
Re:[Moses-support] Reading binary phrase table from the disk
Thank you very much.
Michael.
NOTICE:This is digested from the Moses-support mailing list, which supports for the moses SMT decoder.
Related posts:
- Moses Support Digest:Alignment information from binary phrase table
- Moses Support Digest:CreateBerkeleyPt and On-Disk Rule Table
- Moses Support Digest:2.718 in the phrase-table
- Moses Support Digest: moses_chart and recaser phrase-table
- Moses Support Digest: EMS table binarization
- Moses Support Digest:Aligned phrase counts
- Moses Support Digest: Moses seems to hang
- Moses Support Digest:Moses Error in training phrase
- Moses Support Digest:About the hierarchical model of Moses
- Moses Support Digest:Suffix arrays in Moses