Skip to main content

Automated text analysis with networks

Project description

Launch on Binder CI status Documentation Status Install with conda Published in Journal of Open Source 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 2020 Senate impeachment trial (source).

The ideas underlying textnets are 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.

Initially begun as a Python implementation of Chris Bail’s textnets package for R, textnets now comprises several unique features for term extraction and weighing, visualization, and analysis.

textnets is free software under the terms of the GNU General Public License v3.

Features

textnets builds on spaCy, a state-of-the-art library 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 Python’s excellent scientific stack. That means that you can use textnets to analyze and visualize your data in Jupyter notebooks!

textnets is easily installable using the conda and pip package managers. It requires Python 3.7 or higher.

Read the documentation to learn more about the package’s features.

Citation

Using textnets in a scholarly publication? Please cite this paper:

@article{Boy2020,
  author   = {John D. Boy},
  title    = {textnets},
  subtitle = {A {P}ython Package for Text Analysis with Networks},
  journal  = {Journal of Open Source Software},
  volume   = {5},
  number   = {54},
  pages    = {2594},
  year     = {2020},
  doi      = {10.21105/joss.02594},
}

Learn More

Documentation

https://textnets.readthedocs.io/

Repository

https://github.com/jboynyc/textnets

Issues & Ideas

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

Conda-Forge

https://anaconda.org/conda-forge/textnets

PyPI

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

FOSDEM ‘22

https://fosdem.org/2022/schedule/event/open_research_textnets/

DOI

10.21105/joss.02594

Archive

10.5281/zenodo.3866676

textnets logo

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

Uploaded Source

Built Distributions

textnets-0.7.1-cp39-cp39-win_amd64.whl (107.2 kB view details)

Uploaded CPython 3.9 Windows x86-64

textnets-0.7.1-cp39-cp39-manylinux_2_31_x86_64.whl (103.0 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.31+ x86-64

textnets-0.7.1-cp39-cp39-macosx_10_16_x86_64.whl (82.3 kB view details)

Uploaded CPython 3.9 macOS 10.16+ x86-64

textnets-0.7.1-cp38-cp38-win_amd64.whl (107.2 kB view details)

Uploaded CPython 3.8 Windows x86-64

textnets-0.7.1-cp38-cp38-manylinux_2_31_x86_64.whl (103.9 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.31+ x86-64

textnets-0.7.1-cp38-cp38-macosx_10_16_x86_64.whl (82.1 kB view details)

Uploaded CPython 3.8 macOS 10.16+ x86-64

textnets-0.7.1-cp37-cp37m-win_amd64.whl (107.2 kB view details)

Uploaded CPython 3.7m Windows x86-64

textnets-0.7.1-cp37-cp37m-manylinux_2_31_x86_64.whl (103.5 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.31+ x86-64

textnets-0.7.1-cp37-cp37m-macosx_10_16_x86_64.whl (82.1 kB view details)

Uploaded CPython 3.7m macOS 10.16+ x86-64

File details

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

File metadata

  • Download URL: textnets-0.7.1.tar.gz
  • Upload date:
  • Size: 118.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for textnets-0.7.1.tar.gz
Algorithm Hash digest
SHA256 5ec5ffdc79ff10add124c0238f1a91709fb0ce02f6d186a2946106f3b7817ad3
MD5 ad14c977dc905deff8457aca7a7a5e25
BLAKE2b-256 353b96a11eeb9721cb0b81f2ccf011436aedd789b5c29665d2c75584bb957ca2

See more details on using hashes here.

File details

Details for the file textnets-0.7.1-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: textnets-0.7.1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 107.2 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for textnets-0.7.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2db53f5ac03255ad946765accdca0b84cdfe3cdc44efd7394123f0860419e92f
MD5 c16219025e5c184fe1c59886a388128a
BLAKE2b-256 3bca38e14338c26e4f905fff4679bf5456357626b5692b5cbaf27938b2eddfbb

See more details on using hashes here.

File details

Details for the file textnets-0.7.1-cp39-cp39-manylinux_2_31_x86_64.whl.

File metadata

  • Download URL: textnets-0.7.1-cp39-cp39-manylinux_2_31_x86_64.whl
  • Upload date:
  • Size: 103.0 kB
  • Tags: CPython 3.9, manylinux: glibc 2.31+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for textnets-0.7.1-cp39-cp39-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 7799dd7e298b860a28a6b9bfbb24ddf4b90bf2179198a43a95dffe23ee00fcb4
MD5 0ab8698d6a41ee3796b722c908fd4098
BLAKE2b-256 18819d565a1b14fad042b65f2bab96388b757675552e4804b82575680001fd29

See more details on using hashes here.

File details

Details for the file textnets-0.7.1-cp39-cp39-macosx_10_16_x86_64.whl.

File metadata

  • Download URL: textnets-0.7.1-cp39-cp39-macosx_10_16_x86_64.whl
  • Upload date:
  • Size: 82.3 kB
  • Tags: CPython 3.9, macOS 10.16+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for textnets-0.7.1-cp39-cp39-macosx_10_16_x86_64.whl
Algorithm Hash digest
SHA256 a7a0e085af70622c0834e790d5c7ad642d4998a6de74089cd20f2fbbdae48d53
MD5 42ceee42b08d19e36e30f1270a2d4535
BLAKE2b-256 e8b13d028ffbdb0e5481652833044c8d811bd468df69bb761273693f2627989f

See more details on using hashes here.

File details

Details for the file textnets-0.7.1-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: textnets-0.7.1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 107.2 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for textnets-0.7.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 81cf0550588fa90d614fd7d13737f64a155e177ade40fcc27985ab1679014902
MD5 5c1c86e8127338ae7888a224e7c47c8f
BLAKE2b-256 bdf3801fb368047327c788d10df59b2fc5f32121607ab2d2e1c3ddfb2b9870c4

See more details on using hashes here.

File details

Details for the file textnets-0.7.1-cp38-cp38-manylinux_2_31_x86_64.whl.

File metadata

  • Download URL: textnets-0.7.1-cp38-cp38-manylinux_2_31_x86_64.whl
  • Upload date:
  • Size: 103.9 kB
  • Tags: CPython 3.8, manylinux: glibc 2.31+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for textnets-0.7.1-cp38-cp38-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 de52daf7cdfdcf406aa14e823cdcce3e8f32fccbf255f78b2f37ae365a407a29
MD5 202f023c65eb69f1e008e1a3449a2b2c
BLAKE2b-256 cf3d373feef65cd0f4fed0cb74d7b876092b9fbcd969fe88bf94088eba86e38e

See more details on using hashes here.

File details

Details for the file textnets-0.7.1-cp38-cp38-macosx_10_16_x86_64.whl.

File metadata

  • Download URL: textnets-0.7.1-cp38-cp38-macosx_10_16_x86_64.whl
  • Upload date:
  • Size: 82.1 kB
  • Tags: CPython 3.8, macOS 10.16+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for textnets-0.7.1-cp38-cp38-macosx_10_16_x86_64.whl
Algorithm Hash digest
SHA256 88036170c91aa8fce5cde5f406a2515bc964c774877b2b1483edd09aebf70421
MD5 7b094afe03fcfc25890f1a4b74950680
BLAKE2b-256 d32d996c9d2557e0798d164ed73535c990ab2f2f981ed9f9926b9d4078ced306

See more details on using hashes here.

File details

Details for the file textnets-0.7.1-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: textnets-0.7.1-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 107.2 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for textnets-0.7.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 8d98ae56ff7df927923c67ceb7c6883aef3669328c12e85eb1b50dbad612f8ec
MD5 b969bbaaedc4652d1c3d8018c592d2f3
BLAKE2b-256 d8824e154c5f31bceb18f4689fc49ff27b4e12db1df4ad5c305ccaa820b6f486

See more details on using hashes here.

File details

Details for the file textnets-0.7.1-cp37-cp37m-manylinux_2_31_x86_64.whl.

File metadata

  • Download URL: textnets-0.7.1-cp37-cp37m-manylinux_2_31_x86_64.whl
  • Upload date:
  • Size: 103.5 kB
  • Tags: CPython 3.7m, manylinux: glibc 2.31+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for textnets-0.7.1-cp37-cp37m-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 6337fcd0d71906171851c6945ef2305376805f6c1d791e3304e0255753dd0e75
MD5 7a79fa65bc49953fa1d45baa961bb56d
BLAKE2b-256 aff3d9942b2061a577a3b305dfc84b85d18566e860bb2b6ffe37eab27b0e5acc

See more details on using hashes here.

File details

Details for the file textnets-0.7.1-cp37-cp37m-macosx_10_16_x86_64.whl.

File metadata

  • Download URL: textnets-0.7.1-cp37-cp37m-macosx_10_16_x86_64.whl
  • Upload date:
  • Size: 82.1 kB
  • Tags: CPython 3.7m, macOS 10.16+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for textnets-0.7.1-cp37-cp37m-macosx_10_16_x86_64.whl
Algorithm Hash digest
SHA256 9e41e183dbb0ef64febc3740554e028eb4d8481c8fd9e03bc9922ab6e2f04332
MD5 2f44b4a3ab87c6c0bd07e7ae0d7c0257
BLAKE2b-256 a0d570ed6c8fa407a6941f5d363176978d227747627557d542791f89cbb422c2

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