textnets

textnets: A Python package for text analysis with networks - Published in JOSS (2020)

https://github.com/jboynyc/textnets

Science Score: 100.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 16 DOI reference(s) in README and JOSS metadata
  • Academic publication links
    Links to: joss.theoj.org
  • Committers with academic emails
    1 of 9 committers (11.1%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
    Published in Journal of Open Source Software

Keywords

computational-social-science network-analysis nlp sociology text-analysis text-as-data visualization

Scientific Fields

Mathematics Computer Science - 84% confidence
Last synced: 4 months ago · JSON representation ·

Repository

Text analysis with networks.

Basic Info
Statistics
  • Stars: 288
  • Watchers: 11
  • Forks: 24
  • Open Issues: 2
  • Releases: 39
Topics
computational-social-science network-analysis nlp sociology text-analysis text-as-data visualization
Created about 8 years ago · Last pushed 9 months ago
Metadata Files
Readme Changelog Contributing License Citation Authors

README.rst

=====================================
Textnets: text analysis with networks
=====================================

.. image:: https://mybinder.org/badge_logo.svg
   :target: https://mybinder.org/v2/gh/jboynyc/textnets-binder/trunk?filepath=Tutorial.ipynb
   :alt: Launch on Binder

.. image:: https://github.com/jboynyc/textnets/actions/workflows/ci.yml/badge.svg
   :target: https://github.com/jboynyc/textnets/actions/workflows/ci.yml
   :alt: CI Status

.. image:: https://readthedocs.org/projects/textnets/badge/?version=stable
   :target: https://textnets.readthedocs.io/en/stable/?badge=stable
   :alt: Documentation Status

.. image:: https://joss.theoj.org/papers/10.21105/joss.02594/status.svg
   :target: https://doi.org/10.21105/joss.02594
   :alt: 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.

.. figure:: https://textnets.readthedocs.io/en/dev/_static/impeachment-statements.svg
   :alt: 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
   `_).

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

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.

__ https://doi.org/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.

.. _`Chris Bail's textnets package for R`: https://github.com/cbail/textnets/

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.

.. _`igraph`: http://igraph.org/python/
.. _`Leiden algorithm`: https://doi.org/10.1038/s41598-019-41695-z
.. _`spaCy`: https://spacy.io/

**textnets** is installable using the ``pip`` and ``nix`` package managers. It
requires Python 3.9 or higher.

**textnets** integrates seamlessly with Python's excellent `scientific stack`_.
That means that you can use **textnets** to analyze and visualize your data in
Jupyter notebooks!

.. _`scientific stack`: https://scientific-python.org

Read `the documentation `_ to learn more about
the package's features.

Citation
--------

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

.. code-block:: bibtex

   @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
**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 `_
==================  =============================================

.. image:: https://textnets.readthedocs.io/en/dev/_static/textnets-logo.svg
   :alt: textnets logo
   :target: https://textnets.readthedocs.io
   :align: center
   :width: 140

Owner

  • Name: John Boy
  • Login: jboynyc
  • Kind: user
  • Location: Amsterdam ✖✖✖
  • Company: Leiden University

full-stack sociologist

JOSS Publication

textnets: A Python package for text analysis with networks
Published
October 15, 2020
Volume 5, Issue 54, Page 2594
Authors
John D. Boy ORCID
Assistant Professor, Faculty of Social Sciences, Leiden University
Editor
George K. Thiruvathukal ORCID
Tags
Python sociology text analysis network analysis visualization

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this package, please cite it as below."
authors:
- family-names: "Boy"
  given-names: "John"
  orcid: "https://orcid.org/0000-0003-2118-4702"
title: "textnets"
doi: "10.5281/zenodo.3866676"
url: "https://textnets.readthedocs.io"
preferred-citation:
  type: article
  authors:
  - family-names: "Boy"
    given-names: "John"
    orcid: "https://orcid.org/0000-0003-2118-4702"
  title: "textnets: A Python Package for Text Analysis with Networks"
  journal: "Journal of Open Source Software"
  volume: 5
  issue: 54
  year: 2020
  start: 2594
  doi: "10.21105/joss.02594"

Papers & Mentions

Total mentions: 1

Organizational Disaster Communication Ecology: Examining Interagency Coordination on Social Media During the Onset of the COVID-19 Pandemic
Last synced: 2 months ago

GitHub Events

Total
  • Create event: 5
  • Issues event: 3
  • Release event: 4
  • Watch event: 4
  • Delete event: 2
  • Issue comment event: 10
  • Push event: 25
  • Fork event: 2
Last Year
  • Create event: 5
  • Issues event: 3
  • Release event: 4
  • Watch event: 4
  • Delete event: 2
  • Issue comment event: 10
  • Push event: 25
  • Fork event: 2

Committers

Last synced: 5 months ago

All Time
  • Total Commits: 882
  • Total Committers: 9
  • Avg Commits per committer: 98.0
  • Development Distribution Score (DDS): 0.042
Past Year
  • Commits: 48
  • Committers: 1
  • Avg Commits per committer: 48.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
John D. Boy j****y@b****e 845
jdboy j****y@c****l 18
jdboy j****y@s****l 8
John Boy j****y@u****l 4
jdboy j****y@l****l 3
pyup-bot g****t@p****o 1
Jeremy Foote j****1@g****m 1
Jamal135 5****5 1
John Boy j****t@s****g 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 4 months ago

All Time
  • Total issues: 43
  • Total pull requests: 22
  • Average time to close issues: 2 months
  • Average time to close pull requests: 9 days
  • Total issue authors: 17
  • Total pull request authors: 7
  • Average comments per issue: 2.91
  • Average comments per pull request: 0.95
  • Merged pull requests: 7
  • Bot issues: 0
  • Bot pull requests: 9
Past Year
  • Issues: 1
  • Pull requests: 0
  • Average time to close issues: 11 days
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 9.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • jboynyc (20)
  • BrandonKMLee (4)
  • sara-02 (3)
  • clark874 (2)
  • segu239 (1)
  • henri-rq (1)
  • sarahec (1)
  • onigiricoco (1)
  • Jamal135 (1)
  • tresoldi (1)
  • ReichYang (1)
  • aswansyahputra (1)
  • cacostame (1)
  • ehsong (1)
  • yaotianzhang (1)
Pull Request Authors
  • dependabot[bot] (9)
  • jboynyc (4)
  • pyup-bot (4)
  • BytingBitz (2)
  • danielskatz (2)
  • BrandonKMLee (1)
  • jdfoote (1)
Top Labels
Issue Labels
enhancement (11) bug (7) documentation (5) question (4) good first issue (1)
Pull Request Labels
dependencies (9)

Packages

  • Total packages: 2
  • Total downloads:
    • pypi 403 last-month
  • Total dependent packages: 0
    (may contain duplicates)
  • Total dependent repositories: 1
    (may contain duplicates)
  • Total versions: 52
  • Total maintainers: 1
pypi.org: textnets

Automated text analysis with networks

  • Versions: 37
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 403 Last month
Rankings
Stargazers count: 3.9%
Downloads: 7.7%
Forks count: 8.6%
Dependent packages count: 10.0%
Average: 10.4%
Dependent repos count: 21.7%
Maintainers (1)
Last synced: 4 months ago
conda-forge.org: textnets

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

  • Versions: 15
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Stargazers count: 22.1%
Dependent repos count: 34.0%
Forks count: 35.4%
Average: 35.7%
Dependent packages count: 51.2%
Last synced: 4 months ago

Dependencies

.github/workflows/ci.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
.github/workflows/codeql-analysis.yml actions
  • actions/checkout v2 composite
  • github/codeql-action/analyze v2 composite
  • github/codeql-action/autobuild v2 composite
  • github/codeql-action/init v2 composite
.github/workflows/pypi.yml actions
  • actions/checkout v3 composite
  • actions/download-artifact v3 composite
  • actions/setup-python v4 composite
  • actions/upload-artifact v2 composite
  • pypa/gh-action-pypi-publish release/v1 composite
poetry.lock pypi
  • 146 dependencies
pyproject.toml pypi
  • coverage ^6.0.2 develop
  • flake8 ^5.0.4 develop
  • mypy ^0.991 develop
  • pandas-stubs ^1.5.2 develop
  • pytest ^7.1.2 develop
  • ufmt ^2.0.0 develop
  • Cython ^0.29.24
  • Sphinx ^5.0.2
  • cairocffi ^1.4.0
  • concepts ^0.9.2
  • igraph ^0.10.1
  • jupyter-sphinx ^0.4.0
  • leidenalg ^0.9.0
  • pandas ^1.5.0
  • pycairo ^1.22.0
  • pydata-sphinx-theme ^0.12.0
  • python >=3.8.0,<3.12
  • scipy ^1.9.1
  • spacy ^3.4.3
  • sphinxcontrib-bibtex ^2.3.0
  • toolz ^0.12.0
  • tqdm ^4.64.1
  • wasabi ^0.10.1