-
Notifications
You must be signed in to change notification settings - Fork 0
COVID19 Tweets
Bell Eapen edited this page Nov 10, 2025
·
3 revisions
Install crisp-t following the Getting Started steps.
- Create a project folder
mkdir covid_tweet - cd to the new folder
cd covid_tweet/ - create the source folder
mkdir crisp_source - Download and copy the CSV file from here to the crisp_source folder.
- Import with
crisp --source crisp_source --out crisp_input --unstructured textwheretextfield has the tweet content.
- See the first 5 documents:
crisp --inp crisp_input --print documents - Assign topics & cluster:
crisp --inp crisp_input --assign --out crisp_input - See the assigned topics/keywords and cluster:
crisp --inp crisp_input --print "documents metadata" - Select all documents and dataframe rows belonging to cluster 0:
crisp --inp crisp_input --filters cluster=0. You may save the results to a different folder using the--outoption if you want to do further analysis only on this cluster. - Select all documents tagged mask along with the corresponding dataframe rows:
crisp --inp crisp_input --filters keywords=mask. You may save the results to a different folder using the--outoption if you want to do further analysis only on this cluster. Notice that the output says Applied filters ['keywords=mask']; remaining documents: 62160. The total number is 179108.
- Run numeric analyses (requires installation with
[ml]extras):
crisp --inp crisp_input --ml --regression --cart --kmeans --pca --out crisp_input- Inspect stored metadata for confirmatory signals:
crisp --inp crisp_input --print metadata --print decision_tree_accuracy
crisp --inp crisp_input --print metadata --print decision_tree_feature_importance
crisp --inp crisp_input --print metadata --print regression_coefficients- Filter tweets by keyword (e.g.,
mask) and re-run topics to inspect theme stability:
crisp --inp crisp_input --filters keywords=mask --topics-
Compare qualitative emphasis with quantitative predictors:
- If
avg_response_timeor a proxy metric (e.g.,engagement_delayif available) shows high feature importance or positive coefficient for a COVID outcome proxy, note convergence between the "delayed response" theme and numeric effect (Mettler et al., 2025).
- If
-
Visualize for context:
crispviz --inp crisp_input --pca --out viz_out/- Memo: "Mask-related discourse overlaps with clusters exhibiting higher engagement delay; topic salience and decision tree splits suggest temporal dynamics in discourse response." This structural insight can be further examined via TDABM for shape-aware context (Rudkin & Dlotko, 2024).