From b1ddcfa53c870dc4aea62cb0b944a8ce8d807bec Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Mon, 19 Oct 2020 08:56:28 +0200 Subject: [PATCH] fix: [punct] analysis is now using the proper token value --- bin/napkin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/napkin.py b/bin/napkin.py index 65ee2c0..34b6b42 100644 --- a/bin/napkin.py +++ b/bin/napkin.py @@ -123,7 +123,7 @@ for token in doc: redisdb.hincrby("stats", "noun", 1) continue if token.pos_ == "PUNCT" and not token.is_oov: - redisdb.zincrby("punct", 1, value) + redisdb.zincrby("punct", 1, "{}".format(token)) redisdb.hincrby("stats", "punct", 1) continue