summaryrefslogtreecommitdiff
path: root/gi/pyp-topics/src/train-contexts.cc
diff options
context:
space:
mode:
authorphilblunsom@gmail.com <philblunsom@gmail.com@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-02 15:01:07 +0000
committerphilblunsom@gmail.com <philblunsom@gmail.com@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-02 15:01:07 +0000
commite9711b0e4ecc939fcfabd8709cf7d93510e5a028 (patch)
treed138b87a78d57f500de9269fde320570122a1f3d /gi/pyp-topics/src/train-contexts.cc
parent8f83554bdbda7cec0f8efd359424a1ab8284a2ff (diff)
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@107 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'gi/pyp-topics/src/train-contexts.cc')
-rw-r--r--gi/pyp-topics/src/train-contexts.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gi/pyp-topics/src/train-contexts.cc b/gi/pyp-topics/src/train-contexts.cc
index 46849a07..d7262cdc 100644
--- a/gi/pyp-topics/src/train-contexts.cc
+++ b/gi/pyp-topics/src/train-contexts.cc
@@ -124,8 +124,9 @@ int main(int argc, char **argv)
default_topics << model.max_topic() << std::endl;
for (std::set<int>::const_iterator termIt=all_terms.begin(); termIt != all_terms.end(); ++termIt) {
std::vector<std::string> strings = contexts_corpus.context2string(*termIt);
- default_topics << model.max(-1, *termIt) << " ||| " << std::endl;
+ default_topics << model.max(-1, *termIt) << " ||| ";
std::copy(strings.begin(), strings.end(), std::ostream_iterator<std::string>(default_topics, " "));
+ default_topics << std::endl;
}
}