Interpretable data visualizations for understanding how texts differ at the word level
Project description
Shifterator
The Shifterator package provides functionality for constructing word shift graphs, vertical bart charts that quantify which words contribute to a pairwise difference between two texts and how they contribute. By allowing you to look at changes in how words are used, word shifts help you to conduct analyses of sentiment, entropy, and divergence that are fundamentally more interpretable.
Install
Python code to produce shift graphs can be downloaded via pip.
pip install shifterator
Documentation
The documentation details how to create various kinds of word shift graphs with Shifterator, and includes a detailed cookbook for how to interpret, visualize, and work with word shifts.
See the following paper for more details on word shifts, and please cite it if you use them in your work:
Gallagher, R. J., Frank, M. R., Mitchell, Lewis, Schwartz, A. J., Reagan, A. J., Danforth, C. M., Dodds, P. S. (2021). Generalized Word Shift Graphs: A Method for Visualizing and Explaining Pairwise Comparisons Between Texts. EPJ Data Science, 10(4).
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for shifterator-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2f1da6f9d883431b4d5e0173bd799ac8fa71ded000d716805b9f9479c84df19 |
|
MD5 | 2f18bd8a63d5936ea18e2f72e1b6205b |
|
BLAKE2b-256 | d6877667c99ce6304de11e2390fe8d510f6dabbf9da3bb8e34bc1f62bc0d59e1 |