Add util for querying on-disk pt

This commit is contained in:
Hieu Hoang 2012-05-15 16:17:06 +01:00
parent 7ef9b5c635
commit 3454617467

View File

@ -40,6 +40,8 @@ namespace OnDiskPt
typedef std::pair<UINT64, UINT64> AlignPair;
typedef std::vector<AlignPair> AlignType;
class Vocab;
class TargetPhrase: public Phrase
{
friend std::ostream& operator<<(std::ostream&, const TargetPhrase&);
@ -91,6 +93,8 @@ public:
UINT64 ReadOtherInfoFromFile(UINT64 filePos, std::fstream &fileTPColl);
UINT64 ReadFromFile(std::fstream &fileTP, size_t numFactors);
void DebugPrint(std::ostream &out, const Vocab &vocab) const;
};
}