lda

Crates.iolda
lib.rslda
version0.1.0
sourcesrc
created_at2020-11-17 03:28:46.615486
updated_at2020-11-17 03:28:46.615486
descriptionTopic models via Latent Dirichlet Allocation
homepage
repository
max_upload_size
id313159
size1,919
Baxter Eaves (BaxterEaves)

documentation

README

LDA: Latent Dirichlet Allocation

Version 0.1.0 of this library is in development.

Proposed API.

use lda::{Library, StopWords, Lda, LdaArgs, LdaAlgorithm};

let library = Library::from_path("my-docs.txt")
    .stop_words(StopWords::English)
    .min_word_occurance(10)
    .build();

let lda_args = LdaArgs {
    alpha: 0.5,
    beta: 0.5,
    n_topics: 4
};

let mut lda = Lda::new(&library, lda_args);

let mut rng = rand::thread_rng();

lda.fit(1_000, LdaAlgorithm::Gibbs, &mut rng);
Commit count: 0

cargo fmt