PyRank
  • Insights
  • PyPI
  • GitHub
  • Search
  • Compare
  • Advisories
  • Ecosystem
  • About

Computational Social Science Python Packages

Python packages with the GitHub topic computational-social-science. Sorted by relevance, with stars and monthly downloads.
nealcaren
topica

Fast, all-purpose topic modeling for Python: 20+ models (LDA, STM, CTM, DMR, keyATM, BERTopic, ETM, ...) behind one NumPy-native interface on a parallel Rust core, with shared diagnostics and reproducible fits.

27K 4 2
JasonKessler
scattertext

Beautiful visualizations of how language differs among document types.

16K 2K 285
jboynyc
textnets

Text analysis with networks.

6K 294 23
CornellNLP
convokit

ConvoKit is a toolkit for extracting conversational features and analyzing social phenomena in conversations. It includes several large conversational datasets along with scripts exemplifying the use of the toolkit on these datasets.

4K 638 140
cardiffnlp
tweetnlp

TweetNLP for all the NLP enthusiasts working on Twitter! The Python library tweetnlp provides a collection of useful tools to analyze/understand tweets such as sentiment analysis, emoji prediction, and named entity recognition, powered by state-of-the-art language models specialised on Twitter.

3K 389 37
rmovva
hypothesaes

HypotheSAEs: hypothesizing interpretable relationships in text datasets using sparse autoencoders. https://arxiv.org/abs/2502.04382

1K 90 27
jturner-uofl
pycorpdiff

Comparative corpus analysis for Python: keyness, collocations, semantic shift, temporal trajectories with changepoints + causal inference.

817 1 0
rubingshen
augmentedsocialscientist

A package to easily train Bert-like models for text classification

708 19 2
ryanboyd
blamegame

A Python package for detecting internal/external (dispositional/situational) attributions in text, driven by a fine-tuned RoBERTa model.

631 0 0
zalkikar
mlm-bias

Measuring Biases in Masked Language Models for PyTorch Transformers. Support for multiple social biases and evaluation measures.

382 4 2
sagnik-chakravarty
arcshiftwrap

End-to-end pipeline for collecting, labeling, and analyzing metaphor framing and stance in Reddit and news discourse using LLMs.

366 1 0
ryanjgallagher
shifterator

Interpretable data visualizations for understanding how texts differ at the word level

281 289 32
wbendinelli
dlvt

Dynamic Leadership Vitality Theory: A dynamical systems model of executive sustainability

249 0 0
UWNETLAB
dcss

Supplementary materials for McLevey 2021 Doing Computational Social Science (Sage, UK).

188 26 10
marcelomendoza
propaganda-pipeline

Propaganda technique detection pipeline using DSPy + OpenAI (23 techniques)

167 1 0
letiziaia
multiway-alignment

A python library providing measures of multiway issue alignment.

161 2 0
unna97
twarc2sql

This package converts jsonl file generated by twarc2 to sql database in an opnionated way.

145 0 0
Baron-Sun
socialscikit

Zero-code toolkit for social science text analysis — classification (QuantiKit), qualitative coding (QualiKit), and research methods tools (Toolbox)

141 0 0
MohammadForouhesh
tracking-policy-agendas

A Persian Twitter policy agenda tracking framework

85 7 1
sagnik-chakravarty
framescope

Python client for the Arctic Shift API.

13 1 0
    • Data from PyPI, GitHub, ClickHouse, and BigQuery