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.8 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.9.1.tar.gz (132.9 kB view details)

Uploaded Source

Built Distributions

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

textnets-0.9.1-pp39-pypy39_pp73-manylinux_2_35_x86_64.whl (85.0 kB view details)

Uploaded PyPymanylinux: glibc 2.35+ x86-64

textnets-0.9.1-cp311-cp311-win_amd64.whl (85.9 kB view details)

Uploaded CPython 3.11Windows x86-64

textnets-0.9.1-cp311-cp311-manylinux_2_35_x86_64.whl (85.0 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.35+ x86-64

textnets-0.9.1-cp311-cp311-macosx_12_0_x86_64.whl (85.0 kB view details)

Uploaded CPython 3.11macOS 12.0+ x86-64

textnets-0.9.1-cp310-cp310-win_amd64.whl (85.9 kB view details)

Uploaded CPython 3.10Windows x86-64

textnets-0.9.1-cp310-cp310-manylinux_2_35_x86_64.whl (85.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.35+ x86-64

textnets-0.9.1-cp310-cp310-macosx_12_0_x86_64.whl (85.0 kB view details)

Uploaded CPython 3.10macOS 12.0+ x86-64

textnets-0.9.1-cp39-cp39-win_amd64.whl (85.9 kB view details)

Uploaded CPython 3.9Windows x86-64

textnets-0.9.1-cp39-cp39-manylinux_2_35_x86_64.whl (85.0 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.35+ x86-64

textnets-0.9.1-cp39-cp39-macosx_12_0_x86_64.whl (85.0 kB view details)

Uploaded CPython 3.9macOS 12.0+ x86-64

textnets-0.9.1-cp38-cp38-win_amd64.whl (85.9 kB view details)

Uploaded CPython 3.8Windows x86-64

textnets-0.9.1-cp38-cp38-manylinux_2_35_x86_64.whl (85.0 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.35+ x86-64

textnets-0.9.1-cp38-cp38-macosx_12_0_x86_64.whl (85.0 kB view details)

Uploaded CPython 3.8macOS 12.0+ x86-64

File details

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

File metadata

  • Download URL: textnets-0.9.1.tar.gz
  • Upload date:
  • Size: 132.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for textnets-0.9.1.tar.gz
Algorithm Hash digest
SHA256 dfa4dd569f7041f70e501ed818750121065897508ef79d14cfa433b561c5a208
MD5 d0df1fc8f876b19a8816e3e0556354cb
BLAKE2b-256 31e757ad08dd6e9ae8b314bc82085ebf8fb14f0b30bf1d1a46edff7d59462f4b

See more details on using hashes here.

File details

Details for the file textnets-0.9.1-pp39-pypy39_pp73-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for textnets-0.9.1-pp39-pypy39_pp73-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 cc0c3a0d4f47cfd05705512a56cd70a774cd0db60d58935f914588fb29e378cf
MD5 6a6b54f70eaa852a05fd0b4aff8c89bd
BLAKE2b-256 db887129c838da9c2df522315873620f5650b5971cccd330576d6c0e22d7f873

See more details on using hashes here.

File details

Details for the file textnets-0.9.1-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: textnets-0.9.1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 85.9 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for textnets-0.9.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1185b246d31acdaa6e4909f80f8857274b6f3c36403fe5f0da6f4a3d5bafd4ef
MD5 2a56c06c1a7a6cfc96fa517109ddf124
BLAKE2b-256 cebcd32fcd16b94d9ff274dd7f0bb87d844478d97518a931d9d7498830903dfb

See more details on using hashes here.

File details

Details for the file textnets-0.9.1-cp311-cp311-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for textnets-0.9.1-cp311-cp311-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 0af492519ddbf83307f15d4438f97cb6e81ff3e325dbb4dcedc75092d97f0b4f
MD5 03ac0cf15f026f0d714b2df760841f58
BLAKE2b-256 2264625b4529a9aba54603e96c8849c25aa4afc0bc9a5aa564f0606dbf5c4971

See more details on using hashes here.

File details

Details for the file textnets-0.9.1-cp311-cp311-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for textnets-0.9.1-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 0e37795eebc7644e065724ed1171cdb3e46eb2334966e6687090ba1c683c208b
MD5 1568a40e74996309ba9ff4391c5cbac6
BLAKE2b-256 d9ad44258509f97973f21af551d9703d4fd9daa0a7d884fa26c4baae34f55079

See more details on using hashes here.

File details

Details for the file textnets-0.9.1-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: textnets-0.9.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 85.9 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for textnets-0.9.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d760deed39c07b80125eaea2a2f06d66cc0b4ad621d9c0ccc7570688dd217523
MD5 0761a153a45baded64f66e9c1dc13ae1
BLAKE2b-256 abd8b669b17daccc1711f7b9c47062705f90459cb49e04a51771118cbbce0062

See more details on using hashes here.

File details

Details for the file textnets-0.9.1-cp310-cp310-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for textnets-0.9.1-cp310-cp310-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 38d9924fb245cd2e0b6c717d7a664c73f035ea27521a694fd015806b19918e24
MD5 2da2e5c5e6050b75cbc86d5b6ff28d23
BLAKE2b-256 fc343d6f8861e93bfb9ea0631fbc68fc651b05726e5bc3cfd67a7fc2a07f2470

See more details on using hashes here.

File details

Details for the file textnets-0.9.1-cp310-cp310-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for textnets-0.9.1-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 b88029b41ef9498625b73d373d0778c081c4b6fd13e3ed3571ae7e06bcbdd0ed
MD5 5929a743e9ba229325742fba45799e92
BLAKE2b-256 cb2d6751fb7926a872d460bdea8cfec1b69fc2d83d0a378ea6d7e389c9382279

See more details on using hashes here.

File details

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

File metadata

  • Download URL: textnets-0.9.1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 85.9 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for textnets-0.9.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 57b26853e08ff9778f335ba70cebcde32ee51d6f3b7ce8dbd4a7e786b68d4b6d
MD5 70f34ee0e7cea2945ec9ca34b0ccb392
BLAKE2b-256 61b239599ddaf798ea7d8717403f646c208f8a5513bc9630759320e8f4d59fe4

See more details on using hashes here.

File details

Details for the file textnets-0.9.1-cp39-cp39-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for textnets-0.9.1-cp39-cp39-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 c4470911cbc9d138438a5ab6c7ddebb5a81f3f2a99c33f0300298d222c904de7
MD5 bd3f37a4dbc52b5359f918a3044c9090
BLAKE2b-256 5656f997c1db15776ed1973cfdc8d7b957473a1a8fddb1e11b6ba0d6d5a8e6ab

See more details on using hashes here.

File details

Details for the file textnets-0.9.1-cp39-cp39-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for textnets-0.9.1-cp39-cp39-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 fd7a0610b03ead07452e2c094b5af9927e2ab185d14c957aaa57f9ec574b04ca
MD5 aef206166dffa2fe072127e58ee55c3f
BLAKE2b-256 22b61e6b4e3f44a8a7b0570d93e817706a98df8957e81ebee42e240a7da16cc3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: textnets-0.9.1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 85.9 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for textnets-0.9.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 54e5352bee0b737fc3ca102f92d33e618fdc359e5a7fb134e2560a841ab14b7f
MD5 b068421ce0568086681ea654a8994977
BLAKE2b-256 07b8c02416efcdf2578844a1d693da2fa9460bfc94ae27e7ba4d0aca1bb3f489

See more details on using hashes here.

File details

Details for the file textnets-0.9.1-cp38-cp38-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for textnets-0.9.1-cp38-cp38-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 5b0b5f5ab30ec006f1f0274fa5c3752f8986d71b7b2781ac7904b8ade6aeb0e4
MD5 69683c15febc2408dacec42a3b890920
BLAKE2b-256 9a7aae601d57f9d8cb2e0f1d71531d19b99def4ea69579b7f20761ebe7f6a005

See more details on using hashes here.

File details

Details for the file textnets-0.9.1-cp38-cp38-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for textnets-0.9.1-cp38-cp38-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 2a75607d6c2471d5f923146927c8dbe2c916d85bd4f71f29df35433fef5687e1
MD5 7ccbb8a5b4e4ed06deda2aeea1011ffa
BLAKE2b-256 5680ada8b7d53c0979bc195061e21d35bad379bee8653a761ee7d0c89785eafb

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