You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/paper.md
+53-20Lines changed: 53 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -130,8 +130,6 @@ Any data can be used as long as it includes the required fields from the schema
130
130
131
131
{width=70%}
132
132
133
-
134
-
135
133
All parameters are configurable in labeled execution blocks (\autoref{config}), which set how the visuals are produced. For instance short text windows and few words for syntactic analyses, larger windows and more seeds to look at overlapping themes. Users can designate colored grouping to correspond to deeper readings of text [@abramson2024inequality].
Cosine similarity measures how close two word vectors are in direction, regardless of their length. For two embeddings $\vec{e}^{\,\phi}_{w_i}$ and $\vec{e}^{\,\phi}_{w_j}$, it is defined as the cosine of the angle between them. Values near $1$ indicate strong semantic similarity, while values near $0$ or negative suggest weak or opposite meaning. For example, the vectors for *doctor* and *nurse* would yield a high cosine similarity, reflecting their related meanings, whereas *doctor* and *banana* would yield a value close to $0$. This makes cosine similarity a simple and effective tool for comparing words in our semantic network analysis.
266
264
267
265
## Other Resources
266
+
268
267
### Workflow Steps Example (End-to-End)
268
+
269
269
The workflow for analyzing text as data is iterative. This synthesized workflow integrates pragmatic qualitative steps [@abramson2025pragmatic; @li2025ethnography] with frameworks established in CSS [@grimmer2022text].
270
+
270
271
-**Define Question/Theory**
271
272
Specify the research question or Quantity of Interest (QoI). Work may begin inductively [@nelson2020computational] or deductively [@grimmer2022text].
273
+
272
274
-**Aggregation (Building the Corpus)**
273
275
Define population, sampling frame, and document units. Data sources can include transcribed interviews, ethnographic fieldnotes, historical documents, webscraped data, policy documents, administrative text, or open-ended survey responses. Record provenance and metadata.
274
-
>*Python Tools:* pandas for manifests; requests + beautifulsoup4 (web scraping), or API clients. Store as JSONL/CSV + raw text. Export from QDA >software, or integrate text into a data frame.
276
+
277
+
> *Python Tools:* pandas for manifests; requests + beautifulsoup4 (web scraping), or API clients. Store as JSONL/CSV + raw text. Export from QDA software, or integrate text into a data frame.
*Processing:* Clean and format text into machine-readable and tabular formats (see Schema below). Data can be imported from QDA software or read directly from .txt (UTF-8) files. Tokenize/segment and normalize.
*Processing:* Clean and format text into machine-readable and tabular formats (see Schema below). Data can be imported from QDA software or read directly from .txt (UTF-8) files. Tokenize/segment and normalize.
Transform text into formats suitable for computational analysis. Choose representations (BOW/TF-IDF, dictionaries, embeddings) to fit the QoI. This involves visualizing patterns, combined with readings.
281
-
*Python Tools:* scikit-learn vectorizers (DTM/TF-IDF); Hugging Face transformers (Embeddings).
289
+
290
+
> *Python Tools:* scikit-learn vectorizers (DTM/TF-IDF); Hugging Face transformers (Embeddings).
291
+
282
292
-**Annotating and Linking**
283
-
>*Annotating:* Build human system for indexing data. Utilize a hybrid approach—combining automation (lists, machine learning) and human coding >depending on scope and complexity [@abramson2025pragmatic]. This involves managing tradeoffs: while accuracy is key for a realist approach, >time efficiency and identifying insights otherwise missed are also crucial considerations. Entity tagging (persons/orgs/places) via spaCy NER.
284
-
>
285
-
>*Linking:* Join texts to variables in dataframe (site, time, treatment, demographics) for comparison and modeling. If using qualitative >software or purposeful file naming, this can be done with minimal work [@li2025ethnography].
286
-
>*Python Tools:* spaCy NER; pandas (linking).
293
+
294
+
> *Annotating:* Build human system for indexing data. Utilize a hybrid approach—combining automation (lists, machine learning) and human coding depending on scope and complexity [@abramson2025pragmatic]. This involves managing tradeoffs: while accuracy is key for a realist approach, time efficiency and identifying insights otherwise missed are also crucial considerations. Entity tagging (persons/orgs/places) via spaCy NER.
295
+
>
296
+
> *Linking:* Join texts to variables in dataframe (site, time, treatment, demographics) for comparison and modeling. If using qualitative software or purposeful file naming, this can be done with minimal work [@li2025ethnography].
297
+
>
298
+
> *Python Tools:* spaCy NER; pandas (linking).
299
+
287
300
-**Analysis, Modeling & Visualization**
288
-
*Descriptions & Visualization:* LDA topics + human validation ("Reading Tea Leaves"); word-embeddings for schemas combined with in-depth narrative [@abramson2024inequality]. Use visualization tools (e.g., CMAP) to explore patterns and comparisons [@abramson2015beyond].
289
-
>*Modeling:* Supervised coding/stance with scikit-learn baselines and transformers (BERT-class); report metrics, calibration, and error >analysis. Combine unsupervised exploration (topics/clusters) with supervised measurement/prediction.
290
-
>*Deep Reading & Interpretation:* Always return to exemplar passages to contextualize model patterns (scale down), examine disconfirming cases, >update explanations to account for data while noting contextual limits.
301
+
302
+
*Descriptions & Visualization:* LDA topics + human validation ("Reading Tea Leaves"); word-embeddings for schemas combined with in-depth narrative [@abramson2024inequality]. Use visualization tools (e.g., CMAP) to explore patterns and comparisons [@abramson2015beyond].
303
+
304
+
> *Modeling:* Supervised coding/stance with scikit-learn baselines and transformers (BERT-class); report metrics, calibration, and error analysis. Combine unsupervised exploration (topics/clusters) with supervised measurement/prediction.
305
+
>
306
+
> *Deep Reading & Interpretation:* Always return to exemplar passages to contextualize model patterns (scale down), examine disconfirming cases, update explanations to account for data while noting contextual limits.
307
+
291
308
-**Dissemination and Archiving**
292
309
Reproducible Jupyter notebooks (see workshop repo), CMAP visualizations, codebooks, curated quotes. Pair patterns + passages in presentation. Archive code/data where allowed; follow de-identification guidance and document limits/ethics.
310
+
293
311
### Data Schema Example (CMAP)
312
+
294
313
For structured analysis and visualization (e.g., using the CMAP toolkit), data should be organized into a consistent tabular format (e.g., CSV or DataFrame). Below is an example schema:
295
-
```
314
+
315
+
```python
296
316
# Updated schema with Python typing
297
317
schema = {
298
318
"project": str, # List project
@@ -310,35 +330,48 @@ schema = {
310
330
"codes": list[str] # Critical for analyses with codes, Must be a list of strings
311
331
}
312
332
```
333
+
313
334
### Modes of Combining Computation and Qualitative Analysis
335
+
314
336
A key consideration is how—or whether—to integrate computational tools into the analytical workflow. Researchers adopt different modes based on project needs, data sensitivity, and analytical goals [@abramson2025pragmatic].
337
+
315
338
-**Streamline (Organizational):**
316
339
Using computational tools to manage the logistics of research—organizing manifests, facilitating de-identification, managing quotes, automating basic indexing and tracking team progress—even if the core coding and analysis remain mostly manual.
340
+
317
341
-**Scaling-up (Efficiency/size):**
318
-
When the corpus is large, longitudinal, or multi-site, machine learning (e.g., supervised classification) is used to assist human coding andc omputational tools are used to compile data sets of larger sizes. This may require high-quality human-labeled training data and rigorous human checks and validation (e.g., hybrid approaches).
342
+
When the corpus is large, longitudinal, or multi-site, machine learning (e.g., supervised classification) is used to assist human coding and computational tools are used to compile data sets of larger sizes. This may require high-quality human-labeled training data and rigorous human checks and validation (e.g., hybrid approaches).
343
+
319
344
-**Hybrid (Iterative Refinement and Mixed Methods):**
320
345
Combining human analysis with computational methods to answer different types of questions or refine understanding, often as a form of mixed-methods like computational ethnography or historical analysis with computational text analysis. This can involve iterative coding refinement, or using computational patterns (e.g., visualization, network analysis) to identify typologies or variations that guide subsequent in-depth reading and comparison [@abramson2025pragmatic].
346
+
321
347
-**Discovery (Pattern Finding):**
322
348
Utilizing unsupervised methods (e.g., topic modeling, clustering, visualization) to identify latent patterns, themes, or typologies that guide subsequent deep reading and theory development [@nelson2020computational]. This is compatible with human inductive reading.
349
+
323
350
-**Minimal/No Computation (The "Sociology of Computation"):**
324
351
Deliberately choosing not to automate analysis when ethical considerations. Documenting the rationale for this choice, as any choice, is practical and important for transparency [@abramson2025pragmatic].
325
-
---
352
+
326
353
## Related Software Resources
354
+
327
355
**Li, Zhuofan and Corey M. Abramson.** 2022. *An Introduction to Machine Learning for Qualitative Research.* Jupyter Notebooks (Python). American Sociological Association Methodology Workshop. [GitHub Repository](https://github.com/lizhuofan95/ASA2022_Workshop)
356
+
328
357
**Nelson, Laura K.** 2020. "Computational Grounded Theory: A Methodological Framework." *Sociological Methods & Research* 49(1):3-42. [Article](https://journals.sagepub.com/doi/10.1177/0049124117729703) | [Homepage](https://www.lauraknelson.com/)
358
+
329
359
**Commercial Qualitative Data Software** (limited scalability for large datasets, lacks advanced CSS/statistical methods, and/or requires cloud computing):
330
360
- ATLAS.ti Scientific Software Development GmbH. 2023. ATLAS.ti Mac (version 23.2.1). https://atlasti.com
331
361
- Dedoose Version 9.0.107. 2023. Los Angeles, CA: SocioCultural Research Consultants, LLC. www.dedoose.com
- Abramson, Corey M., Tara Prendergast, Zhuofan Li, and Martín Sánchez-Jankowski. 2024. "Inequality in the Origins and Experiences of Pain: What 'Big (Qualitative) Data' Reveal About Social Suffering in the United States." *Russell Sage Foundation Journal of the Social Sciences* 10(5):34-65. [Link](https://www.rsfjournal.org/content/rsfjss/10/5/34.full.pdf)
337
369
- Arteaga, Ignacia, Alma Hernández de Jesús, Brandi Ginn, Corey M. Abramson, and Daniel Dohan. 2025. "Understanding How Social Context Shapes Decisions to Seek Institutional Care: A Qualitative Study of Experiences of Progressive Cognitive Decline Among Latinx Families." *The Gerontologist* gnaf207. [Link](https://doi.org/10.1093/geront/gnaf207)
338
370
- Li, Zhuofan and Corey M. Abramson. 2025. "Ethnography and Machine Learning: Synergies and Applications." In *Oxford Handbook of the Sociology of Machine Learning*, edited by [editors]. Oxford University Press. [Preprint](https://arxiv.org/abs/2412.06087)
339
371
- Abramson, Corey M., Zhuofan Li, and Tara Prendergast. Expected 2026. "Qualitative Research in an Era of AI: A Pragmatic Approach to Data Analysis, Workflow, and Computation." *Annual Review of Sociology*. [Preprint available]
372
+
340
373
### Conference Presentations (2024-2025)
374
+
341
375
- Abramson, Corey M., Kieran Turner, Ignacia Arteaga, Alma Hernández de Jesús, Brandi Ginn, Yuhan Nian, and Daniel Dohan. 2025. "Pragmatic Sensemaking: Semantic Maps of Dementia Narratives." ARS'25: Tenth International Workshop on Social Network Analysis. Naples, Italy. [Preprint](https://arxiv.org/pdf/2509.12503)
342
376
- Abramson, Corey M., Kieran Turner,Ignacia Arteaga, Alma Hernández de Jesús, Brandi Ginn, Yuhan Nian, and Daniel Dohan. 2025. "Pragmatic Sensemaking: Mapping the Cultural Work of Living with Dementia." American Sociological Association Annual Meeting. Chicago, IL.
343
-
- Abramson, Corey M., Zhuofan Li, and Tara Prendergast. 2024. "Qualitative Sociology in a Computational Era: Classic Issues, Emerging Trends, and New Possibilities." American Sociological Association Annual Meeting. Montreal, Canada.
344
-
377
+
- Abramson, Corey M., Zhuofan Li, and Tara Prendergast. 2024. "Qualitative Sociology in a Computational Era: Classic Issues, Emerging Trends, and New Possibilities." American Sociological Association Annual Meeting. Montreal, Canada.
0 commit comments