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.8.2.tar.gz
(17.0 kB
view details)
Built Distribution
File details
Details for the file textarium-0.1.8.2.tar.gz
.
File metadata
- Download URL: textarium-0.1.8.2.tar.gz
- Upload date:
- Size: 17.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40206ceab45d00c52f7732154ec72a2f1fc4ddd845188cb283e32436c475f714 |
|
MD5 | 2d7291467ee6ed060c4e9aef70c6b84a |
|
BLAKE2b-256 | 0a9e072525cbf560281cd05f143888d0b7f092c9dbbd6734821e5b5a67d751fb |
File details
Details for the file textarium-0.1.8.2-py3-none-any.whl
.
File metadata
- Download URL: textarium-0.1.8.2-py3-none-any.whl
- Upload date:
- Size: 21.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b780276ca2e5e85ff34d09dd5aecda1fa7cf10844e6c582fe7ea7ccdf125f23 |
|
MD5 | 8f834150bcb9dd240fe0e9154d529509 |
|
BLAKE2b-256 | 205faef11cce11d62800d0783b560d75ab29348fbb8dda9518b222985686368e |