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.9.tar.gz
(17.3 kB
view details)
Built Distribution
textarium-0.1.9-py3-none-any.whl
(21.7 kB
view details)
File details
Details for the file textarium-0.1.9.tar.gz
.
File metadata
- Download URL: textarium-0.1.9.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb42cee55884b5cfbaf275dd22dc9afe89d59a2f4ee8e81c6bb6070448e292d5 |
|
MD5 | 75a1429806ad215f9ad13b9b324a7f69 |
|
BLAKE2b-256 | 120e98a6e7ff818a60c131f3e201f521a979109b3de4304a8f5a618802f1a41c |
File details
Details for the file textarium-0.1.9-py3-none-any.whl
.
File metadata
- Download URL: textarium-0.1.9-py3-none-any.whl
- Upload date:
- Size: 21.7 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 | 93dd39bde88cc1bef65ab6306a9db7392b92d3bd3086ebe5338d7524bdbab40a |
|
MD5 | ffb571ef9dfcf96599a0991594515eda |
|
BLAKE2b-256 | 1d16b46f18e7966d24e4eb5ab74c390e1499c20520c23f6eddfe9d06661f8146 |