mirror of
https://github.com/adulau/napkin-text-analysis.git
synced 2024-11-22 01:47:06 +00:00
chg: [score] scores are now integer
This commit is contained in:
parent
193ad08144
commit
9364c75477
1 changed files with 1 additions and 1 deletions
|
@ -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":
|
||||
|
|
Loading…
Reference in a new issue