Skip to main content

A short description of my package

Project description

PyPI - Python docs PyPI - PyPi PyPI - License

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 Open In Colab
KPTopic with Real Example Open In Colab
KPTopic VS Topic Modelling Open In Colab
KPTopic Network Comparison Open In Colab

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kptopic-0.0.4.tar.gz (29.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kptopic-0.0.4-py3-none-any.whl (27.7 kB view details)

Uploaded Python 3

File details

Details for the file kptopic-0.0.4.tar.gz.

File metadata

  • Download URL: kptopic-0.0.4.tar.gz
  • Upload date:
  • Size: 29.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for kptopic-0.0.4.tar.gz
Algorithm Hash digest
SHA256 9a7e59bddeb022f2863f670558228263a02b5f7a00215a0bbe063da7f045973d
MD5 c0dc4b38ff83b8d310391c231f33c5bc
BLAKE2b-256 1847299011a2c988cfc89884330d14a3f38f12085c2b253f43972702dae45b87

See more details on using hashes here.

Provenance

The following attestation bundles were made for kptopic-0.0.4.tar.gz:

Publisher: gpt.yml on Atsaniik/kptopic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kptopic-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: kptopic-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 27.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for kptopic-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a2a15decf2567d928b501d2e93b806aede5dcc70646862cd1bbabf32a022ab9b
MD5 73e532cf0c82cc7e00558034d9c31fbd
BLAKE2b-256 1e6ebc8fd3247f236b10e279ec1369a55388f4fcdf092f55aaf8cb9d98df0d5d

See more details on using hashes here.

Provenance

The following attestation bundles were made for kptopic-0.0.4-py3-none-any.whl:

Publisher: gpt.yml on Atsaniik/kptopic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page