Textarium is a Python package for text analysis
Project description
textarium: easy-to-use Python package for text analysis.
What is it?
textarium is a Python package that provides flexible text analysis functions designed to make text analysis intuitive and easy. It aims to be the high-level tool for preparing text-data and complex analysis or NLP modeling.
Installation
Binary installer for the latest released version are available at the Python Package Index (PyPI).
# Type this in your command-line
pip install textarium
Getting started
from textarium import Text
import nltk
nltk.download('wordnet')
s = "This a text example. You can preprocess and analyze it with this package."
text = Text(s, lang='en')
text.prepare()
print(text.prepared_text)
from textarium import Corpus
import nltk
nltk.download('wordnet')
txts = [
"Hello! My name is Mr.Parker.",
"I have a website https://parker.com.",
"It has about 5000 visitors per day.",
"I track it with a simple html-block like this:",
"<div>Google.Analytics</div>",
]
c = Corpus(txts, lang='en')
c.info()
c = c.filter(condition=lambda x: len(x.split() > 5), attribute="raw_text")
c.info()
c.prepare()
print(c)
Documentation
The official documentation is hosted on Github.io: https://6b656b.github.io/textarium
License
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
textarium-0.1.7.tar.gz
(16.0 kB
view hashes)
Built Distribution
textarium-0.1.7-py3-none-any.whl
(20.2 kB
view hashes)
Close
Hashes for textarium-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb96a54ea21bca273f805cfc4d1b5ae25b31ca8e365cc4410375153bda4c9824 |
|
MD5 | d47780130897376ba1d9305b676f5efa |
|
BLAKE2b-256 | 7dd3a1216f4bb30048e28f6b5f2065463d2a1e4bf046136f166eff15f9b1514b |