Automated text analysis with networks
Project description
textnets represents collections of texts as networks of documents and words. This provides novel possibilities for the visualization and analysis of texts.
Network of U.S. Senators and words used in their official statements following the acquittal vote in the Senate impeachment trial (source).
This is a Python implementation of Chris Bail’s textnets package for R. It is free software under the terms of the GNU General Public License v3.
The idea underlying textnets is presented in this paper:
Christopher A. Bail, “Combining natural language processing and network analysis to examine how advocacy organizations stimulate conversation on social media,” Proceedings of the National Academy of Sciences of the United States of America 113, no. 42 (2016), 11823–11828, doi:10.1073/pnas.1607151113.
Features
textnets builds on the state-of-the-art library spacy for natural-language processing and igraph for network analysis. It uses the Leiden algorithm for community detection, which is able to perform community detection on the bipartite (word–group) network.
textnets seamlessly integrates with pandas and other parts of Python’s excellent scientific stack. That means that you can use textnets in Jupyter notebooks to analyze and visualize your data!
Read the documentation to find out more about the package’s features.
Learn More
Documentation |
|
Repository |
|
Issues & Ideas |
|
PyPI |
|
DOI |
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file textnets-0.4.4.tar.gz.
File metadata
- Download URL: textnets-0.4.4.tar.gz
- Upload date:
- Size: 99.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64adea17b6c899676dd68fd9aea8f2ff2219ca5aa195d69b2a7c314385cfd823
|
|
| MD5 |
e98f0d1326798e3623f7c67a087879e9
|
|
| BLAKE2b-256 |
ee253355321d82a30fdcf3fdb03e3ec88255f0e90d083365bd85e0b9124e1f0c
|
File details
Details for the file textnets-0.4.4-py2.py3-none-any.whl.
File metadata
- Download URL: textnets-0.4.4-py2.py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c232de589dab6f713f0beab4d1d87dca46f518f8ad32efcdf832b25251d4475
|
|
| MD5 |
9fd95ea8486039e5ad5153c827d457c5
|
|
| BLAKE2b-256 |
fb1c5c4988e6cbf02c2475549f2f66a6c037fc7c8b64e2d57e0a189bc896f528
|