A semantic topic generator with sentiment score
Project description
KPTopic
- No more Topic Modeling
- No need Training
- No more Machine Learning but Human-like Reading
- Get the Insights of Text Big and Small
KPTopic: a graph-based approach to represent perception (text in general) by key parts of speech. KPTopic solved the coherence crux that current topic modeling algorithms are trying to deal with but failed. KPTopic extracts the topics from text corpus syntactically, semantically and pragmatically instead of a meaningless combination of words from topic modeling.
Key Parts: Noun, Adjective, Verb and Emoji
KPTopic Vs Topic Modeling results from the following text:
“Thai food was great we loved it. Thiland also has beautiful beach resorts, we will come to Thailand again👍”
- KPTopic Result
- Topic Modeling Result
['food','thailand','resort','great','love', 'beautiful']
Installation
if need coreferee:
pip install kptopic[coreferee_spacy]
#!pip install kptopic[crosslingual-coreference_spacy] # a alternative coreference package
python3 -m coreferee install en
python -m spacy download en_core_web_lg
else:
pip install spacy
pip install kptopic
python -m spacy download en_core_web_lg
Getting Started
For an in-depth overview of the features of KPTopic you can check the Documents or you can follow along with one of the examples as follows:
| Name | Link |
|---|---|
| KPTopic Quick Start | |
| KPTopic with Real Example | |
| KPTopic VS Topic Modelling | |
| KPTopic Network Comparison |
Visualization Examples
- 1 NLP Target
Original sentence: """Thai food was great,delicousr and not expensive, we loved it. We visited 3 beach resorts, they are higly recommened... We had "Fire-Vodka" !!!"""
- 2 Keyparts Wordclouds
The following wordclouds are generated from a real example of corpus comprised of reviews by those who visit Thailand.
- 3 Community and Gray Perceptual Unit Networks
Citation
To cite the KPTopic paper, please use the following bibtex reference:
@article{pengyang,
title={KPTopic},
author={Peng, Yang},
journal={a1},
year={202}
}
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kptopic-0.0.8.tar.gz.
File metadata
- Download URL: kptopic-0.0.8.tar.gz
- Upload date:
- Size: 36.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bccd9b9b9f291c159a2f777815da9aebf5a98bee4e53e7b12d41e9d10c43b95
|
|
| MD5 |
c8a837c675c96a3c19004a828925ad02
|
|
| BLAKE2b-256 |
8e734f66d29260b4e29dcb88ad5973b03da3fc9cb1f1373662e4d25ece601d38
|
Provenance
The following attestation bundles were made for kptopic-0.0.8.tar.gz:
Publisher:
gpt.yml on Atsaniik/kptopic
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kptopic-0.0.8.tar.gz -
Subject digest:
9bccd9b9b9f291c159a2f777815da9aebf5a98bee4e53e7b12d41e9d10c43b95 - Sigstore transparency entry: 797111965
- Sigstore integration time:
-
Permalink:
Atsaniik/kptopic@d5dd12eef3ab3edbf755cdd8accbdded620243a8 -
Branch / Tag:
refs/tags/v0.0.8 - Owner: https://github.com/Atsaniik
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
gpt.yml@d5dd12eef3ab3edbf755cdd8accbdded620243a8 -
Trigger Event:
push
-
Statement type:
File details
Details for the file kptopic-0.0.8-py3-none-any.whl.
File metadata
- Download URL: kptopic-0.0.8-py3-none-any.whl
- Upload date:
- Size: 36.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e53f83c824154534398e9c3123752c95228627be872f244eb5b248b38c47e740
|
|
| MD5 |
eee1c766cab1af79eac0e5b78abbe2df
|
|
| BLAKE2b-256 |
231c3a736255b8a5ffc6b7396c5a4b09da5ad888c4d8a0a084eb173ddcd3b29c
|
Provenance
The following attestation bundles were made for kptopic-0.0.8-py3-none-any.whl:
Publisher:
gpt.yml on Atsaniik/kptopic
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kptopic-0.0.8-py3-none-any.whl -
Subject digest:
e53f83c824154534398e9c3123752c95228627be872f244eb5b248b38c47e740 - Sigstore transparency entry: 797112031
- Sigstore integration time:
-
Permalink:
Atsaniik/kptopic@d5dd12eef3ab3edbf755cdd8accbdded620243a8 -
Branch / Tag:
refs/tags/v0.0.8 - Owner: https://github.com/Atsaniik
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
gpt.yml@d5dd12eef3ab3edbf755cdd8accbdded620243a8 -
Trigger Event:
push
-
Statement type: