mirror of
https://github.com/adulau/napkin-text-analysis.git
synced 2024-11-24 10:57:07 +00:00
fix: [punct] analysis is now using the proper token value
This commit is contained in:
parent
afc06a3850
commit
b1ddcfa53c
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ for token in doc:
|
||||||
redisdb.hincrby("stats", "noun", 1)
|
redisdb.hincrby("stats", "noun", 1)
|
||||||
continue
|
continue
|
||||||
if token.pos_ == "PUNCT" and not token.is_oov:
|
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)
|
redisdb.hincrby("stats", "punct", 1)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue