Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <fishandfrolick@gmail.com>2012-05-15 19:17:06 +0400
committerHieu Hoang <fishandfrolick@gmail.com>2012-05-15 19:17:06 +0400
commit12278a9f981570072ca1c26a39f2eaf977a5d8e7 (patch)
treecf8fa473779a20627099ed1eccfec948d5d709b4 /OnDiskPt
parentd25a2baa622a5fa5dca5c446eede565e8911d030 (diff)
Add util for querying on-disk pt
Diffstat (limited to 'OnDiskPt')
-rw-r--r--OnDiskPt/TargetPhrase.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/OnDiskPt/TargetPhrase.h b/OnDiskPt/TargetPhrase.h
index 56c7b6d3f..ea82e1f11 100644
--- a/OnDiskPt/TargetPhrase.h
+++ b/OnDiskPt/TargetPhrase.h
@@ -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;
+
};
}