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

Computational Social Science Python Packages

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

40+ validated topic models for computational social science, behind one NumPy-native interface: covariate effects on topic prevalence and content, shared diagnostics, reproducible fits. LDA, STM, CTM, keyATM, BERTopic, ETM, and more on a parallel Rust core. One wheel, no JVM, no PyTorch.

5K 6 1
JasonKessler
scattertext

Beautiful visualizations of how language differs among document types.

4K 2K 284
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.

3K 650 143
jboynyc
textnets

Text analysis with networks.

3K 293 24
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.

777 394 35
sii-research
socioverse2

SocioVerse2: A Longitudinal Dynamic Social Simulation Framework under a Human-AI Co-evolutionary Paradigm

514 13 1
nariyoo
langaccess

Classifies the language access a website provides, separating the site's own writing from a translation widget's output, and returns the evidence behind each verdict.

474 0 0
rmovva
hypothesaes

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

399 98 32
rubingshen
augmentedsocialscientist

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

274 19 2
jturner-uofl
pycorpdiff

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

243 3 0
ryanjgallagher
shifterator

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

238 291 32
sagnik-chakravarty
arcshiftwrap

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

214 1 0
wbendinelli
dlvt

Python package implementing Dynamic Leadership Vitality Theory — a dynamical systems model of executive sustainability. Simulates vitality–capital dynamics, finds equilibria, classifies leadership regimes.

208 0 0
ryanboyd
blamegame

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

180 0 0
zalkikar
mlm-bias

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

136 4 2
UWNETLAB
dcss

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

105 29 11
letiziaia
multiway-alignment

A python library providing measures of multiway issue alignment.

85 3 0
unna97
twarc2sql

This converts the output jsonl file twarc2 api to sql.

73 0 0
ryanjgallagher
wordlevel

Word-level natural language processing and text analysis

60 3 0
Baron-Sun
socialscikit

Zero-code text analysis toolkit for social science researchers | 面向社会科学研究者的零代码文本分析工具包

52 0 0
sagnik-chakravarty
framescope

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

2 1 0
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology