Skip to content

Instantly share code, notes, and snippets.

@truncs
Created December 7, 2011 12:35
Show Gist options
  • Save truncs/1442642 to your computer and use it in GitHub Desktop.
Save truncs/1442642 to your computer and use it in GitHub Desktop.
Mallet MaxEnt
bin/mallet import-dir --input /opt/data/* --output ~/obama.mallet
bin/mallet train-classifier --input ~/media_elections.mallet --trainer MaxEnt --output-classifier ~/media_elections.classifier --training-portion 0.9
bin/mallet classify-dir --input /opt/data --output - --classifier ~/obama.classifier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment