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

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.4.tar.gz (99.5 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.4-py2.py3-none-any.whl (15.2 kB view details)

Uploaded Python 2Python 3

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

Hashes for textnets-0.4.4.tar.gz
Algorithm Hash digest
SHA256 64adea17b6c899676dd68fd9aea8f2ff2219ca5aa195d69b2a7c314385cfd823
MD5 e98f0d1326798e3623f7c67a087879e9
BLAKE2b-256 ee253355321d82a30fdcf3fdb03e3ec88255f0e90d083365bd85e0b9124e1f0c

See more details on using hashes here.

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

Hashes for textnets-0.4.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6c232de589dab6f713f0beab4d1d87dca46f518f8ad32efcdf832b25251d4475
MD5 9fd95ea8486039e5ad5153c827d457c5
BLAKE2b-256 fb1c5c4988e6cbf02c2475549f2f66a6c037fc7c8b64e2d57e0a189bc896f528

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