Skip to main content

A set of functions that process and create topic models from a sample of community-detected Twitter networks' tweets. It can process and visualize network data across periods and communities.

Project description

NTTC (Name That Twitter Community!): Process and analyze community-detected data

by Chris Lindgren chris.a.lindgren@gmail.com Distributed under the BSD 3-clause license. See LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause for details.

Documentation: https://nttc.readthedocs.io/en/latest/

Overview

A set of functions that process and create topic models from a sample of community-detected Twitter networks' tweets. It also analyzes if there are potential persistent community hubs (either/and by top mentioned or top RTers).

It assumes you seek an answer to the following questions:

  1. What communities persist or are ephemeral across periods in the corpora, and when?
  2. What can these communities be named, based on their top RTs and users, top mentioned users, as well as generated topic models?
  3. Of these communities, what are their topics over time?

Accordingly, it assumes you have a desire to investigate communities across periods and the tweets from each detected community across already defined periodic episodes with the goal of naming each community AND examining their respective topics over time in the corpus.

It functions only with Python 3.x and is not backwards-compatible (although one could probably branch off a 2.x port with minimal effort).

Warning: nttc performs no custom error-handling, so make sure your inputs are formatted properly! If you have questions, please let me know via email.

System requirements

  • arrow
  • tsm
  • nltk
  • networkx
  • matplot
  • pandas
  • numpy
  • emoji
  • pprint
  • gensim
  • spacy
  • tqdm
  • sklearn
  • joblib
  • MulticoreTSNE
  • hdbscan
  • seaborn
  • stop_words

Installation

pip install nttc

Known Issues or Limitations

  • Please contact me if you discover any issuess.

Example notebooks

  • See the assets/examples folder for example uses.

Distribution update terminal commands

# Create new distribution of code for archiving
sudo python3 setup.py sdist bdist_wheel

# Distribute to Python Package Index
python3 -m twine upload --repository-url https://upload.pypi.org/legacy/ dist/*

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

nttc-0.5.7.tar.gz (28.7 kB view details)

Uploaded Source

Built Distribution

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

nttc-0.5.7-py3-none-any.whl (29.2 kB view details)

Uploaded Python 3

File details

Details for the file nttc-0.5.7.tar.gz.

File metadata

  • Download URL: nttc-0.5.7.tar.gz
  • Upload date:
  • Size: 28.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.2

File hashes

Hashes for nttc-0.5.7.tar.gz
Algorithm Hash digest
SHA256 ad6b86db5f3e4f4394885514f67360046a0aec7892d37257b3ca7c4518213837
MD5 bdbb127cc4bb41fcfd7ccd4a8fdc8400
BLAKE2b-256 7b54e3b53c3a3ae3e7baff2dde85c9fbda65f2c6f35e90215007d54a7ef0f4ce

See more details on using hashes here.

File details

Details for the file nttc-0.5.7-py3-none-any.whl.

File metadata

  • Download URL: nttc-0.5.7-py3-none-any.whl
  • Upload date:
  • Size: 29.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.2

File hashes

Hashes for nttc-0.5.7-py3-none-any.whl
Algorithm Hash digest
SHA256 90883fb871441e7e94d871989ab451b12c3d1e686554708de75555ea57c2fc6a
MD5 082c6d0c40656b2e73f8f7eeea9deff8
BLAKE2b-256 464393c72c82eeab6ff24c1b84d5014121bb88b8244418ff0cdb2223e58ae865

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