README.md in omnicat-0.2.0 vs README.md in omnicat-0.2.1
- old
+ new
@@ -33,10 +33,10 @@
...
# make some classification using Bayes
classifier.classify('I am happy :)')
...
# change strategy to Support Vector Machine (SVM) on runtime
- classifier = OmniCat::Classifier.new(OmniCat::Classifiers::SVM.new())
+ classifier.strategy = OmniCat::Classifiers::SVM.new
# now you do not need to re-train, add category and so on..
# just classify with new strategy
classifier.classify('I am happy :)')
## Classifier strategies