From 9364c754776c1d366656c1407daf08c3601a9ab0 Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Fri, 9 Oct 2020 07:27:08 +0200 Subject: [PATCH] chg: [score] scores are now integer --- bin/napkin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/napkin.py b/bin/napkin.py index 0ec51cf..30dd501 100644 --- a/bin/napkin.py +++ b/bin/napkin.py @@ -114,7 +114,7 @@ for entity in doc.ents: if args.o == "json": output_json = {"format":"napkin"} for anal in analysis: - x = redisdb.zrevrange(anal, 1, args.t, withscores=True) + x = redisdb.zrevrange(anal, 1, args.t, withscores=True, score_cast_func=int) if args.o == "csv": print ("# Top {} of {}".format(args.t, anal)) elif args.o == "json":