mallet

Machine learning toolkit for natural language processing and topic modeling

brewmacoslinux
Try with needOr install directly
Source

About

MAchine Learning for LanguagE Toolkit

Commands

mallet

Examples

Import text documents for topic modeling$ mallet import-file --input documents.txt --output documents.mallet --keep-sequence
Train a topic model with 10 topics on imported documents$ mallet train-topics --input documents.mallet --num-topics 10 --output-state topic-state.gz
Extract top words for each topic from trained model$ mallet print-topics --input topic-state.gz --num-top-words 10