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
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
Built Distribution
Close
Hashes for ProcessEntropy-0.10.0.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e4bfb2f3d964e7443a06427b3760e0eef66a252d6e7ae723668e46f6b137d5a |
|
MD5 | 21bc465a39ed53fa10900ff80b5bb331 |
|
BLAKE2b-256 | ffb58d670d985836711a6b2a93c9db1ca84f50e71ba257d28485f9036b7da38f |
Close
Hashes for ProcessEntropy-0.10.0.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33f7db2ab0d3e253ee0d16349551106864629425aee6ac02de29c3f19da03d23 |
|
MD5 | 0f9ed32f5780c9bcdcd4e09a6979e91d |
|
BLAKE2b-256 | 0c99dcea3f396f4b25ac73c853f07bea73da9473916789a363d6527336f5cbcf |