/lda-test

🧪 Latent Dirichlet Allocation test (extract topics from text)

Primary LanguageJavaScript

lda-test

🧪 Latent Dirichlet Allocation test (extract topics from text)

Simple example project demonstrating Latent Dirichlet Allocation (LDA) for topic modeling on text documents.

Usage

Install dependencies:

npm ci

Run the script:

npm run example

The example will:

  1. Load sample text documents
  2. Apply LDA to extract the main topics
  3. Output the discovered topics and their key terms

About LDA

LDA is an unsupervised learning method that discovers topics in text documents. It views documents as random mixtures over latent topics, where each topic is characterized by a distribution over words.

References