Skip to main content

Textagon is a powerful tool for text data analysis, providing a means to visualize parallel representations of your data and gain insight into the impact of various lexicons on two classes of text data.

Project description

Python 3.11+ License: PSF

Textagon

Textagon is a powerful tool for text data analysis, providing a means to visualize parallel representations of your data and gain insight into the impact of various lexicons on two classes of text data.

  • Parallel Representations
  • Graph-based Feature Weighting

Run DEMO

https://colab.research.google.com/drive/115P0Psl49CQIp9InJXJxQKMoN9NmfDvt

Installation

Initial Setup

pip install textagon 

Upgrading Textagon

pip install --upgrade textagon 

Additional Considerations

Installation

  • Package versions needed (execution will stop via a check; will add requirements.txt in the future):
    • wn 0.0.23
  • For SpaCy, run the following to get the 'en_core_web_sm' model ('en' in SpaCy 2.3.5):
python -m spacy download en_core_web_sm
  • For the spellchecker (which defaults to aspell):

Running Textagon

import pandas as pd
from textagon.textagon import Textagon
from textagon.AFRN import AFRN

### Test cases ###

df = pd.read_csv('../examples/dvd.txt', sep='\t', header=None, names=["classLabels", "corpus"])

tgon = Textagon(
    df, "dvd", 0, 0, 4, 3, "Lexicons_v5.zip", 
    1, 5, "bB", 0, 1, 0, 3, 1, 1, 1, 1, 1, "upload/exclusions.txt", "full",
    False
)

tgon.RunFeatureConstruction()
tgon.RunPostFeatureConstruction()

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

textagon-0.1.24.tar.gz (18.2 MB view details)

Uploaded Source

Built Distribution

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

textagon-0.1.24-py3-none-any.whl (18.5 MB view details)

Uploaded Python 3

File details

Details for the file textagon-0.1.24.tar.gz.

File metadata

  • Download URL: textagon-0.1.24.tar.gz
  • Upload date:
  • Size: 18.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.8 Linux/6.11.0-19-generic

File hashes

Hashes for textagon-0.1.24.tar.gz
Algorithm Hash digest
SHA256 d1d482fb5d421bf6e2e16adec26e60fa80fd4e7b4227664cbfa1c1b6bea8e090
MD5 91b3ccc12ea6ee9091b02e3e31d5d6c3
BLAKE2b-256 ad0f1f331372d642ec90efe0391746edb1d1ae47139bc3dc702e0e9952bb094a

See more details on using hashes here.

File details

Details for the file textagon-0.1.24-py3-none-any.whl.

File metadata

  • Download URL: textagon-0.1.24-py3-none-any.whl
  • Upload date:
  • Size: 18.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.8 Linux/6.11.0-19-generic

File hashes

Hashes for textagon-0.1.24-py3-none-any.whl
Algorithm Hash digest
SHA256 7d2e18650aac6379916beced819eb353687d059bbacec6018064e75c33d96cda
MD5 078c4b34507efc5a58be8d00e896c3b6
BLAKE2b-256 07fde67145cd0e044dbb5d84cfe34130b2cb8dc245de2317b64c403c1102b7ce

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