diff options
author | phikoehn <pkoehn@inf.ed.ac.uk> | 2014-01-10 23:43:44 +0400 |
---|---|---|
committer | phikoehn <pkoehn@inf.ed.ac.uk> | 2014-01-10 23:43:44 +0400 |
commit | a27df5c04652b0618b78f56693dfe2694681d67b (patch) | |
tree | 19eec84ffb760aba1dc2aadd834e2383879b5b42 /misc | |
parent | 25553079d9d5b2b96ee513eb5f09ec9697af19ff (diff) |
allow setting of nscores in compact phrase table query tool
Diffstat (limited to 'misc')
-rw-r--r-- | misc/queryPhraseTableMin.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/misc/queryPhraseTableMin.cpp b/misc/queryPhraseTableMin.cpp index 0b4324020..7c92a55ff 100644 --- a/misc/queryPhraseTableMin.cpp +++ b/misc/queryPhraseTableMin.cpp @@ -56,7 +56,9 @@ int main(int argc, char **argv) StaticData::InstanceNonConst().LoadData(parameter); - PhraseDictionaryCompact pdc("PhraseDictionaryCompact input-factor=0 output-factor=0 num-features=5 path=" + ttable); + std::stringstream ss; + ss << nscores; + PhraseDictionaryCompact pdc("PhraseDictionaryCompact input-factor=0 output-factor=0 num-features=" + ss.str() + " path=" + ttable); pdc.Load(); std::string line; |