Skip to main content

A toolkit for calculating sequence entropy and informantion flow quickly. With specific applications to tweets.

Project description

ProcessEntropy

A toolkit for calculating sequence entropy rates quickly. Especially useful for cross entropy rates and measuing information flow. Application is aimed at tweets but can be used on an text or sequence like data.

Example Usage

# Load in example tweets dataframe
import pandas as pd
example_tweet_data = pd.read_csv('example_data/example_tweet_data.csv')

import sys; sys.path.insert(0, 'ProcessEntropy')
from CrossEntropy import pairwise_information_flow

# Calculate information flow between users based on temporal text usage 
pairwise_information_flow(example_tweet_data, text_col = 'tweet', label_col = 'username', time_col = 'created_at')

Requirements

  • Python 3.x with packages:
    • numba
    • nltk (for tokenization)
    • numpy

Installation

pip install ProcessEntropy

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

ProcessEntropy-0.10.0.dev0.tar.gz (8.8 kB view hashes)

Uploaded Source

Built Distribution

ProcessEntropy-0.10.0.dev0-py3-none-any.whl (10.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