diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2020-11-04 00:59:20 +0100 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2020-11-04 00:59:20 +0100 |
commit | 61857f1cf317ce7ab992161fd5233f5277981eb9 (patch) | |
tree | 2b675223040259c375e9d1ca3cc16b3df9b1adf1 | |
parent | 713b251a1cdd105e828cb188b8b7789194a99e4c (diff) | |
download | fuzzycat-61857f1cf317ce7ab992161fd5233f5277981eb9.tar.gz fuzzycat-61857f1cf317ce7ab992161fd5233f5277981eb9.zip |
debug: output
-rw-r--r-- | fuzzycat/cluster.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fuzzycat/cluster.py b/fuzzycat/cluster.py index 075366b..47d4470 100644 --- a/fuzzycat/cluster.py +++ b/fuzzycat/cluster.py @@ -126,6 +126,8 @@ class Cluster: print("{}\t{}".format(id, key), file=tf) except (KeyError, ValueError): continue + if self.verbose: + print(tf.name, file=sys.stderr) sbc = sort_by_column(tf.name, opts='-k 2', prefix=self.prefix, tmpdir=self.tmpdir) for doc in group_by(sbc, key=cut(f=1), value=cut(f=0), comment=keyfunc.__name__): json.dump(doc, self.output) |