chg: [score] scores are now integer

This commit is contained in:
Alexandre Dulaunoy 2020-10-09 07:27:08 +02:00
parent 193ad08144
commit 9364c75477
Signed by: adulau
GPG key ID: 09E2CD4944E6CBCD

View file

@ -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":