ztext
This project is designed for NLP analysis eaily, event you don't have any background of NLP you still can use it for text insights. Functions:
- Text clean.
- Topic analysis
- SVO (Subject Verb and Object extraction)
- NER (Entity extraction)
- Topic and SVO visualization (for now Visualization only support run in Jupyter notebook and Colab)
install
In python3.6 or later environment
pip install ztext
In IPython, Jupyter notebook or Colab
!pip install ztext
from source:
pip3 install git+https://github.com/ZackAnalysis/ztext.git
Quick Start
Start a Jupyter notebook locally or a Colab notebook (https://colab.research.google.com/)
find a demo at
https://colab.research.google.com/drive/1W2mD6QHOGdVEfGShOR_tBnYHxz_D5ore?usp=sharing
install package:
!pip install ztext
import ztext
load sampledata
from sampledata:
df = ztext.sampledata()
zt = ztext.Ztext(df=df, textCol='content',nTopics=5, custom_stopwrods=['sell','home'], samplesize=200)
from file
!wget https://github.com/ZackAnalysis/ztext/blob/master/ztext/sampleData.xlsx?raw=true
filename = "sampleData.xlsx"
zt = ztext.Ztext()
zt.loadfile(filename, textCol='content')
zt.nTopics = 6
zt.custom_stopwords = ['text','not','emotion']
from pandas dataframe
zt.loaddf(df)
Functions
Sentiment analysis:
zt.sentiment()
Topic analysis:
zt.get_topics()
SVO and NER
zt.getSVO('topic2')
Visulzation
zt.getldaVis()
zt.getSVOvis('topic2',options="any")
save output
zt.df.to_excel('filename.xlsx)`
Metadata
Release files for ztext 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ztext-0.0.8.tar.gz | 7.1 kB | Without provenance | Details for ztext-0.0.8.tar.gz |
Release files / ztext-0.0.8.tar.gz
| Download URL | ztext-0.0.8.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c913694d4a643930619a28dc086a48bcc2b6c0d84b058b3b80b2710a1b14424e
|
|
BLAKE2b-256 checksum How to use checksums |
8697b6a20a9185079be832046976a59d1e823e04eb80ade499c0996b28fa9fdb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9
|
Security for ztext 0.0.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.