Giter Club home page Giter Club logo

lda-topic-modeling's Introduction

LDA Topic Modeling

LDA Topic Modeling

A PureScript, browser-based implementation of latent Dirichlet allocation (LDA) topic modeling. Able to take in two or more documents and soft cluster them by up to four topics.

Try it at lettier.com/lda-topic-modeling. Read more about LDA.

Build and Run

# Install Git.
git clone [email protected]:lettier/lda-topic-modeling.git
cd lda-topic-modeling
# Install nvm and npm.
nvm use
npm install -g bower
npm install
bower install
npm run build
cd build/
nohup python -m http.server &> /dev/null &
python -mwebbrowser http://localhost:8000

Copyright

(C) 2018 David Lettier
lettier.com

lda-topic-modeling's People

Contributors

lettier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar

lda-topic-modeling's Issues

error in 'npm run build'

Thanks so much for making your code available on github! I tried following your build instructions, and got the following errors while running 'npm run build':

> lettier-lda-topic-modeling@ modify-worker-0 /Users/<USERNAME>/lda-topic-modeling
> sed -i '/var PS = {};/a self.PS = PS;' output1/_worker.js

sed: 1: "output1/_worker.js": invalid command code o
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! lettier-lda-topic-modeling@ modify-worker-0: `sed -i '/var PS = {};/a self.PS = PS;' output1/_worker.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the lettier-lda-topic-modeling@ modify-worker-0 script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/<USERNAME>/.npm/_logs/2018-05-30T18_30_38_541Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! lettier-lda-topic-modeling@ build: `npm run make-dirs && npm run build-app && npm run copy-static && npm run copy-lda-src && npm run build-worker-0 && npm run modify-worker-0 && npm run build-worker`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the lettier-lda-topic-modeling@ build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Do you know what I can do to fix this? Thanks very much!

How to add documents once at the web screen ?

Hi David, thanks too for yr code and the nice setup to serve the web page locally in the browser.

  • I get a message that npm is deprecated and replaced on Arch Linux. It does not prevent me from installing and running install scripts though.
  • Most importantly, I'm missing something basic about how to add documents for analysis.
    Does one add them in txt format ? and whatever the format, "exactly" how ?
    I've added document using their local path-names, but results make no sense as txt doc contents do not seem to be parsed. Instead the path-names appear to be parsed. ???
  • Last what would be extra nice would be adding to yr README.md file, a path to uninstall everything (for people, who like me don't want to launch a VM) after trying 'lda-topic-modelling' engine out.
    Thanks.

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.