Coder Social home page Coder Social logo

yaotianzhang / textnets Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jboynyc/textnets

0.0 0.0 0.0 2.77 MB

Text analysis with networks.

Home Page: https://textnets.readthedocs.io/

License: Other

Makefile 2.68% Python 96.31% Nix 0.71% Cython 0.30%

textnets's Introduction

Textnets: text analysis with networks

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 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/
DOI 10.21105/joss.02594
Archive 10.5281/zenodo.3866676
textnets logo

textnets's People

Contributors

jboynyc avatar jdfoote avatar pyup-bot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.