Skip to main content

InPhO Topic Explorer

Project description

Travis GitHub license PyPI

This interactive visualization displays information from the LDA topic models generated using the InPhO VSM module. Live demos trained on the Stanford Encyclopedia of Philosophy, a selection of books from the HathiTrust Digital Library, and the original LDA training set of Associated Press articles are available at http://inphodata.cogs.indiana.edu.

The color bands within each article’s row show the topic distribution within that article, and the relative sizes of each band indicates the weight of that topic in the article. The total width of each row indicates similarity to the focal topic or document, measured by the quantity sim(doc) = 1 – JSD(doc, focus entity), where JSD is the Jensen-Shannon distance between the word probability distributions of each item. Each topic’s label and color is arbitrarily assigned, but is consistent across articles in the browser.

Display options include topic normalization, alphabetical sort and topic sort. By normalizing topics, the combined width of each bar expands so that topic weights per document can be compared. By clicking a topic, the documents will reorder acoording to that topic’s weight and topic bars will reorder according to the topic weights in the highest weighted document. When a topic is selected, clicking “Top Documents for [Topic]” will take you to a new page showing the most similar documents to that topic’s word distribution. The original sort order can be restored with the “Reset Topic Sort” button.

Installation

There are two types of install: Default and Developer.

Default Install

  1. Install the Anaconda Python 2.7 Distribution.

  2. Open a terminal and run pip install --pre topicexplorer.

  3. Test installation by typing vsm -h to print usage instructions.

Developer Install

  1. Set up Git

  2. Install the Anaconda Python 2.7 Distribution.

  3. Open a terminal and run pip install --src . -e git+https://github.com/inpho/topic-explorer#egg=topicexplorer

  4. Test installation by typing vsm -h to print usage instructions.

Usage

Workflow

Workflow

  1. Initialize the Topic Explorer on a file, folder of text files, or folder of folders:

    vsm init PATH [CONFIG]

    This will generate a configuration file called CONFIG.

  2. Train LDA models using the on-screen instructions:

    vsm train CONFIG
  3. Launch the topic explorer:

    vsm launch CONFIG
  4. Press Ctrl+C to quit all servers.

See the sample configuration files in the config directory for examples of how to extend the topic explorer.

Bug Reports

Please report issues on the issue tracker or contact Jaimie directly (contact info at bottom of README).

In your report, please include the error message, the command you ran, your operating system, and the output of the command vsm --version. This will ensure that we can quickly diagnose your issue.

Note: When using a developer install vsm --version will print in the following format: 1.0b39-1-g7c834bf-dirty. * The first part is the most recent release tag. (1.0b39) * The second part is the number of commits since the tag. (1) * The next is the hash of the most recent commit. (g7c834bf) * The optional -dirty flag indicates that the local repository has uncommitted changes.

Alternate Installs

We highly recommend using the Anaconda Python 2.7 Distribution. Straightforward instructions are provided for Anaconda for both end users and developers. If you want to roll your own install, some notes on dependencies are included below.

  • Anaconda

  1. If using Miniconda, the necessary packages are: conda install numpy scipy nltk matplotplib ipython networkx

  • Debian/Ubuntu (non-Anaconda)

  1. sudo apt-get-install build-essential python-dev python-pip python-numpy python-matplotlib python-scipy python-ipython

  2. IPython Notebooks

  • Windows

  1. Install Microsoft Visual C++ Compiler for Python 2.7

  2. Install the Python packages below:

Licensing and Attribution

The project is released under an Open-Source Initiative-approved MIT License.

The InPhO Topic Explorer may be cited as:

  • Jaimie Murdock and Colin Allen. (2015) Visualization Techniques for Topic Model Checking in Proceedings of the 29th AAAI Conference on Artificial Intelligence (AAAI-15). Austin, Texas, USA, January 25-29, 2015. http://inphodata.cogs.indiana.edu/

A BibTeX file is included in the repository for easier attribution.

Collaboration and Maintenance

The InPhO Topic Explorer is maintained by Jaimie Murdock:

Please report issues on the issue tracker or contact Jaimie directly.

We are open to collaboration! If there’s a feature you’d like to see implemented, please contact us and we can lend advice and technical assistance.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

topicexplorer-1.0b49.tar.gz (700.8 kB view details)

Uploaded Source

Built Distribution

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

topicexplorer-1.0b49-py2.7.egg (759.1 kB view details)

Uploaded Egg

File details

Details for the file topicexplorer-1.0b49.tar.gz.

File metadata

  • Download URL: topicexplorer-1.0b49.tar.gz
  • Upload date:
  • Size: 700.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for topicexplorer-1.0b49.tar.gz
Algorithm Hash digest
SHA256 328bf08585d4ce78187fa112cfe8ecf3721f341f1a53da932a409fb9c3f3d89f
MD5 f34c91e092bcb908ab0b594967bbf31a
BLAKE2b-256 3c0413b29da7819191048b6b6d55376997e5b63485b83e19d8b3552bd7096b8b

See more details on using hashes here.

File details

Details for the file topicexplorer-1.0b49-py2.7.egg.

File metadata

File hashes

Hashes for topicexplorer-1.0b49-py2.7.egg
Algorithm Hash digest
SHA256 b72c5dacbd6fccd481cd6cad7fd523f77c599dde6bd38493fdff1f5c322bcb87
MD5 b57a2f4ff925a4a2c912643c2b4fc92e
BLAKE2b-256 56c5d7f7b457e35fc8ff5797c0090942aa67979c4372e02b3d206e68eab002d1

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