commit | 7d9558f93c152a3ae7c7cdfcb8b3362c6b54cf1c | [log] [tgz] |
---|---|---|
author | Marc Kupietz <kupietz@ids-mannheim.de> | Tue Jan 22 16:26:50 2019 +0100 |
committer | Marc Kupietz <kupietz@ids-mannheim.de> | Tue Jan 22 16:26:50 2019 +0100 |
tree | 9ed9a7fde13c01a6fd2d926bf23da78e282929e3 | |
parent | d91e1d4a93a546ae8f8781e481abdac8d002ff52 [diff] |
collocatordb: replace "<num>" with "###"
diff --git a/collocatordb.cc b/collocatordb.cc index 8234739..f53c126 100644 --- a/collocatordb.cc +++ b/collocatordb.cc
@@ -689,7 +689,7 @@ else first = false; s << "{" - "\"word\":\"" << string(_vocab[c.w2].word) << "\"," << + "\"word\":\"" << (string(_vocab[c.w2].word).compare("<num>") == 0? string("###") : string(_vocab[c.w2].word)) << "\"," << "\"rank\":" << c.w2 << "," << "\"f\":" << c.raw << "," << "\"npmi\":" << c.npmi << "," <<