mirror of https://gitlab.com/bashrc2/epicyon
Increase the hashtag match length
parent
ba77de00b2
commit
33ecd05abb
|
@ -170,7 +170,7 @@ def guessHashtagCategory(tagName: str, hashtagCategories: {}) -> str:
|
|||
|
||||
for categoryStr, hashtagList in hashtagCategories.items():
|
||||
for hashtag in hashtagList:
|
||||
if len(hashtag) < 3:
|
||||
if len(hashtag) < 4:
|
||||
# avoid matching very small strings which often
|
||||
# lead to spurious categories
|
||||
continue
|
||||
|
|
Loading…
Reference in New Issue