Skip to content

Commit

Permalink
Use "c" for counting number of words because patterns table also has "w"
Browse files Browse the repository at this point in the history
  • Loading branch information
subins2000 committed Dec 27, 2021
1 parent b6e7167 commit 24fcd58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/make-pack.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
firstConfidence = re.search(r'c":(.*?),', vlfContents).group(1)
v["description"] = "Words with confidence lesser than " + firstConfidence

wordsCount += len(re.findall(r'"w"', vlfContents))
wordsCount += len(re.findall(r'"c"', vlfContents))
pageIndex += 1

packInfo["total_words"] = wordsCount
Expand Down

0 comments on commit 24fcd58

Please sign in to comment.