From 0aa4db3718f7fe7b93b47151032b1026a1dd5f9c Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Mon, 22 Nov 2021 15:34:59 -0500 Subject: [PATCH] [F] Fix covid detection --- src/process/twitter_process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/process/twitter_process.py b/src/process/twitter_process.py index 52da308..96a600e 100644 --- a/src/process/twitter_process.py +++ b/src/process/twitter_process.py @@ -127,4 +127,4 @@ def is_covid_related(text: str) -> bool: # pandemics or other vaccines. However, I think we need to include "the pandemic" because many # posts refer to covid only as "the pandemic". keywords = 'covid; the pandemic; lockdown; spikevax; comirnaty; vaxzevria; 疫情'.split('; ') - return any(k in text for k in keywords) + return any(k in text.lower() for k in keywords)