From 33ecd05abbae055c9135e7cf8091792d3dbbf28b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 13 Jul 2021 09:35:29 +0100 Subject: [PATCH] Increase the hashtag match length --- categories.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/categories.py b/categories.py index 70d079a78..9f7e0fe0b 100644 --- a/categories.py +++ b/categories.py @@ -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