GithubHelp home page GithubHelp logo

rwalk / gsdmm-rust Goto Github PK

View Code? Open in Web Editor NEW
22.0 2.0 10.0 28 KB

GSDMM: Short text clustering (Rust implementation)

License: MIT License

Rust 100.00%
short-text clustering-algorithm rust nlp gibbs-sampling

gsdmm-rust's People

Contributors

rwalk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gsdmm-rust's Issues

Output grades_out_label_probabilities.csv missing

@rwalk Dear Ryan, Thanks so much for sharing this code!

For my runs there seems to be a little deviation from the behavior described in the docs: The file examples/grades/grades_out_label_probabilities.csv is not produced. (The others mentioned are and everything seems to work fine.)

(Also, I suspect examples/grades_out_labels.csv is a typo and should be examples/grades/grades_out_labels.csv?)

Cheers,
Leo

Feature: Allow for non-binary vectorization

The Yin and Wang 2014 paper also specifies an implementation with non-binary term counts. The formulas are a bit more difficult and the benefit is uncertain so I've not implemented it in the first pass.

GSDMM class consumes the docs and vocab class

The constructor for GSDMM with signature:

pub fn new(alpha:f64, beta:f64, K: usize, maxit:isize, vocab:HashSet<String>, docs:Vec<Vec<String>>) -> GSDMM

consumes the docs and vocab objects. This means that user will need to make copies of the data if they wish to use either of these vectors in subsequent processing.

Should be simple to refactor the interface to borrow these instead.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.