$tokenizer
$tokenizer : \Camspiers\StatisticalClassifier\Tokenizer\TokenizerInterface
Tokenizer (the way of breaking up documents)
Provides a text based SVM classifier which uses libsvm
$tokenizer : \Camspiers\StatisticalClassifier\Tokenizer\TokenizerInterface
Tokenizer (the way of breaking up documents)
$normalizer : \Camspiers\StatisticalClassifier\Normalizer\NormalizerInterface
Take tokenized data and make it consistent or stem it
$dataSource : \Camspiers\StatisticalClassifier\DataSource\DataSourceInterface
$model : \Camspiers\StatisticalClassifier\Model\ModelInterface
The model to apply the transforms to
__construct(\Camspiers\StatisticalClassifier\DataSource\DataSourceInterface $dataSource, \Camspiers\StatisticalClassifier\Model\SVMModel $model, \Camspiers\StatisticalClassifier\Tokenizer\TokenizerInterface $tokenizer, \Camspiers\StatisticalClassifier\Normalizer\NormalizerInterface $normalizer, \SVM $svm, null $threshold)
\Camspiers\StatisticalClassifier\DataSource\DataSourceInterface | $dataSource | |
\Camspiers\StatisticalClassifier\Model\SVMModel | $model | |
\Camspiers\StatisticalClassifier\Tokenizer\TokenizerInterface | $tokenizer | |
\Camspiers\StatisticalClassifier\Normalizer\NormalizerInterface | $normalizer | |
\SVM | $svm | |
null | $threshold |
setModel(\Camspiers\StatisticalClassifier\Model\ModelInterface $model)
\Camspiers\StatisticalClassifier\Model\ModelInterface | $model |
setDataSource(\Camspiers\StatisticalClassifier\DataSource\DataSourceInterface $dataSource)
\Camspiers\StatisticalClassifier\DataSource\DataSourceInterface | $dataSource |
prepareDocument(string $document, \Camspiers\StatisticalClassifier\Model\SVMModel $model) : array
Formats the document for use in \SVMModel
string | $document | |
\Camspiers\StatisticalClassifier\Model\SVMModel | $model |
preparedModel() : \Camspiers\StatisticalClassifier\Model\ModelInterface
Return an model which has been prepared for classification