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 Distributed under the BSD 3-clause license. See LICENSE.txt or for details.



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


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 python sdist bdist_wheel

# Distribute to Python Package Index
python -m twine upload --repository-url 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.6.1.tar.gz (29.3 kB view hashes)

Uploaded Source

Built Distribution

nttc-0.6.1-py3-none-any.whl (29.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page