Sha256: 88ce197fd88ae6b04dd020a0374746f419664e16a26ec9ae02ef561435044922
Contents?: true
Size: 899 Bytes
Versions: 1
Compression:
Stored size: 899 Bytes
Contents
#include "model.h" void Model::Model::train(DataSet::Example *example) { } void Model::Model::train_text(string text) { } int Model::Model::classify(DataSet::Example *example) { return classifier->classify(example); } int Model::Model::classify_text(string text) { DataSet::SparseExample *example = text_pipeline->process_text((DataSet::SparseDataSet *)data_set, (char *)text.c_str(), false); int category = classifier->classify(example); delete example; return category; } vector<Classifier::Score> *Model::Model::rank(DataSet::Example *example) { return classifier->rank(example); } vector<Classifier::Score> *Model::Model::rank_text(string text) { DataSet::SparseExample *example = text_pipeline->process_text((DataSet::SparseDataSet *)data_set, (char *)text.c_str(), false); vector<Classifier::Score> *ranks = classifier->rank(example); delete example; return ranks; }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
thera-0.0.2 | lib/quarry/src/model/model.cpp |