Skip to main content

Automated text analysis with networks

Project description

Travis-CI Status Documentation Status Python Dependency Freshness Latest DOI so you can please cite this software

textnets represents collections of texts as networks of documents and words. This provides novel possibilities for the visualization and analysis of texts.

Bipartite network graph

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

https://textnets.readthedocs.io/

Repository

https://github.com/jboynyc/textnets

Issues & Ideas

https://github.com/jboynyc/textnets/issues

PyPI

https://pypi.org/project/textnets/

DOI

[10.5281/zenodo.3866676](https://doi.org/10.5281/zenodo.3866676)

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

textnets-0.4.3.tar.gz (26.6 kB view details)

Uploaded Source

Built Distribution

textnets-0.4.3-py2.py3-none-any.whl (15.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file textnets-0.4.3.tar.gz.

File metadata

  • Download URL: textnets-0.4.3.tar.gz
  • Upload date:
  • Size: 26.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.1

File hashes

Hashes for textnets-0.4.3.tar.gz
Algorithm Hash digest
SHA256 2a449a3e8b8e443f7fb44387eee721bc1cb3f971d537785b2074d0784632a851
MD5 3c5c74a6b973b373bd2271f660e37099
BLAKE2b-256 0cd490a9398ea9184c8a2392a75d8ea2a33a8331952272bad0b5407dd09a0801

See more details on using hashes here.

File details

Details for the file textnets-0.4.3-py2.py3-none-any.whl.

File metadata

  • Download URL: textnets-0.4.3-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.23.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.1

File hashes

Hashes for textnets-0.4.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f0038305ba19487945e27b5900e65b67494972b910bc700a42b6f0b082d5df69
MD5 61855b9554e5b75a593c442f95d0919b
BLAKE2b-256 4026610861c4d8860a9721ffcdc0ac772cb7d4a6798339544f01c3f5bf7a43e4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page