Skip to main content

A simple topic modeling tool using LDA

Project description

topic_modeling_tool

topic_modeling_toolは、テキストデータのトピックモデリングを行うためのシンプルなツールです。このパッケージを使用すると、与えられたテキストデータからトピックを抽出し、それらのトピックに関連する単語を表示することができます。

特徴

  • テキストデータからトピックを抽出するための簡潔なインターフェース
  • Latent Dirichlet Allocation(LDA)を使用したトピックモデリングのサポート
  • ユーザーフレンドリーなトピック表示オプション

インストール

パッケージをインストールするには、次のコマンドを実行します

pip install topic_modeling_tool

サンプル

from topic_modeling_tool import TopicModeler

documents = [
    "I love programming in Python",
    "Python and Java are popular programming languages",
    "Machine learning and data science are exciting",
    "I enjoy learning new things in tech",
    "Artificial intelligence is the future"
]

modeler = TopicModeler(n_topics=2)
topic_distribution = modeler.fit_transform(documents)
modeler.print_topics(n_top_words=5)

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

topic_modeling_tool-0.1.1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

topic_modeling_tool-0.1.1-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file topic_modeling_tool-0.1.1.tar.gz.

File metadata

  • Download URL: topic_modeling_tool-0.1.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.6

File hashes

Hashes for topic_modeling_tool-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6861cb913d75cf6469c5a6e0f19acf892ab0f9eebe9bd5872b3beaea055711b9
MD5 698569a5eb4abf2e411992db7a07e702
BLAKE2b-256 14c1beacd9da26630b038b11ec594f6a3e3e5d50b44287415bf3a7b135eeb8a5

See more details on using hashes here.

File details

Details for the file topic_modeling_tool-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for topic_modeling_tool-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 06e092594b4a01e54c8418cb694656d378f823231a79d09097dddff156f9c2fe
MD5 4521dca8b325045ee26ec655df81480a
BLAKE2b-256 aeb504929360fa4e34a407447731d0e55832266187222005788601073f6460a2

See more details on using hashes here.

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