aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2020-11-07 01:18:06 +0100
committerMartin Czygan <martin.czygan@gmail.com>2020-11-07 01:18:06 +0100
commit45a32d7a229ea9c27c50bbf396b025d17d1a0119 (patch)
treeb087788f43cb01d8cba4250e45d658dc0a44348e
parent753f64870c06b6cdc7015039f0198ac8ae041296 (diff)
downloadfuzzycat-45a32d7a229ea9c27c50bbf396b025d17d1a0119.tar.gz
fuzzycat-45a32d7a229ea9c27c50bbf396b025d17d1a0119.zip
save a bit of space
-rw-r--r--fuzzycat/build.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fuzzycat/build.py b/fuzzycat/build.py
index df38fec..687c17e 100644
--- a/fuzzycat/build.py
+++ b/fuzzycat/build.py
@@ -97,6 +97,6 @@ class NgramLookup:
tokens = [tok for tok in word_tokenize(title.lower()) if tok not in self.stopwords]
prefix = "-".join(tokens[:self.n])
suffix = "-".join(tokens[-self.n:])
- print("{}\t{}\t{}\t{}-{}".format(id, prefix, suffix, prefix, suffix))
+ print("{}\t{}-{}".format(id, prefix, suffix))
except KeyError as exc:
print("skipping doc w/o title: {} - {}".format(line, exc), file=sys.stderr)