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

https://zenodo.org/badge/latestdoi/114368834

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.1.tar.gz (25.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

textnets-0.4.1-py2.py3-none-any.whl (13.9 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: textnets-0.4.1.tar.gz
  • Upload date:
  • Size: 25.2 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.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.0

File hashes

Hashes for textnets-0.4.1.tar.gz
Algorithm Hash digest
SHA256 79e97a29314d7a8068825681a6cd1c0faed4e986215d5a6cc1e3259a00b78f8e
MD5 2636e19e4fccb373b378b73a9fd46eb0
BLAKE2b-256 67e9d9bf5c3968948681b7a159b5f0ef5b98ff10368ac8f24634e17ce2eb3c8c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: textnets-0.4.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 13.9 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.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.0

File hashes

Hashes for textnets-0.4.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e35ce300559544e52fd05ce2321d4d2990d5e92a89488b336d385ec4fbd04254
MD5 8196ba8da03b9e0168fdabe139a1dc40
BLAKE2b-256 1aba8555af6bba791721a8f74805b7e8005c5485cbae0b2b8b62acda21ed92c3

See more details on using hashes here.

Supported by

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