Skip to content

Commit

Permalink
Merge pull request dakrone#16 from gnarmis/master
Browse files Browse the repository at this point in the history
Added instructions about loading an already saved doccat model
  • Loading branch information
dakrone committed Jul 30, 2012
2 parents e5cf991 + 6a693de commit 2206661
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions TRAINING.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,13 @@ You can then train a model with this file:
(doccat "I like to smile.")
=> "Happy"

If you already have a model trained and saved as a .bin file, just load it as follows:

(def doccat-model "models/en-doccat.bin"))
(def doccat (make-document-categorizer doccat-model))
(doccat "I like to smile.")
=> "Happy"

Notes
-----
If you get an Exception, you might just not have enough data.
Expand Down

0 comments on commit 2206661

Please sign in to comment.