diff options
author | Hieu Hoang <fishandfrolick@gmail.com> | 2012-05-15 19:16:16 +0400 |
---|---|---|
committer | Hieu Hoang <fishandfrolick@gmail.com> | 2012-05-15 19:16:16 +0400 |
commit | d25a2baa622a5fa5dca5c446eede565e8911d030 (patch) | |
tree | e23b5d5fb03418c33afd9ee8aa8f4c6c4b08231e /contrib | |
parent | d924a709ea50afddae017e3a4728a528f2c02469 (diff) |
Add util for querying on-disk pt
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/queryOnDiskPt/queryOnDiskPt.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/queryOnDiskPt/queryOnDiskPt.cpp b/contrib/queryOnDiskPt/queryOnDiskPt.cpp index edfed6d00..534b587df 100644 --- a/contrib/queryOnDiskPt/queryOnDiskPt.cpp +++ b/contrib/queryOnDiskPt/queryOnDiskPt.cpp @@ -141,7 +141,7 @@ int main(int argc, char **argv) } if (node) - { // source phrase points to something + { // source phrase points to a bunch of rules const TargetPhraseCollection *coll = node->GetTargetPhraseCollection(TABLE_LIMIT, onDiskWrapper); string str = coll->GetDebugStr(); cout << "Found" << coll->GetSize() << endl; @@ -149,7 +149,9 @@ int main(int argc, char **argv) for (size_t ind = 0; ind < coll->GetSize(); ++ind) { const TargetPhrase &targetPhrase = coll->GetTargetPhrase(ind); - cerr << " ** " << targetPhrase << endl; + cerr << " ** " << targetPhrase << endl; + + } } else |