diff options
author | Hieu Hoang <fishandfrolick@gmail.com> | 2012-05-15 18:17:59 +0400 |
---|---|---|
committer | Hieu Hoang <fishandfrolick@gmail.com> | 2012-05-15 18:17:59 +0400 |
commit | 25d269390bb51af21786681ddcd27f493bcc47b1 (patch) | |
tree | 5fabfb7f1fb43d63c998b91faff2764f5eb3f6b9 /contrib | |
parent | fea7bf9d1af349a7485cca4194cfe71e694a809b (diff) |
Add util for querying on-disk pt
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/queryOnDiskPt/queryOnDiskPt.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/queryOnDiskPt/queryOnDiskPt.cpp b/contrib/queryOnDiskPt/queryOnDiskPt.cpp index afcd1b46b..d1c76be1e 100644 --- a/contrib/queryOnDiskPt/queryOnDiskPt.cpp +++ b/contrib/queryOnDiskPt/queryOnDiskPt.cpp @@ -119,14 +119,18 @@ int main(int argc, char **argv) Tokenize(sourcePhrase, tok, true, true, onDiskWrapper); } } - + cerr << "size=" << sourcePhrase.GetSize() << endl; + const PhraseNode *node = &onDiskWrapper.GetRootSourceNode(); + cerr << "node=" << node << endl; assert(node); for (size_t pos = 0; pos < sourcePhrase.GetSize(); ++pos) { const Word &word = sourcePhrase.GetWord(pos); + cerr << word << " "; node = node->GetChild(word, onDiskWrapper); + cerr << "node=" << node << endl; if (node == NULL) { |