프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$documentNormalizer | Camspiers\StatisticalClassifier\Normalizer\Document\NormalizerInterface | Takes document and makes it consistent | |
$tokenNormalizer | Camspiers\StatisticalClassifier\Normalizer\Token\NormalizerInterface | Takes tokenized data and makes it consistent or stem it | |
$tokenizer | Camspiers\StatisticalClassifier\Tokenizer\TokenizerInterface | Tokenizer (the way of breaking up documents) |
메소드 | 설명 | |
---|---|---|
__construct ( Camspiers\StatisticalClassifier\DataSource\DataSourceInterface $dataSource, Camspiers\StatisticalClassifier\Model\ModelInterface $model = null, Camspiers\StatisticalClassifier\Normalizer\Document\NormalizerInterface $documentNormalizer = null, Camspiers\StatisticalClassifier\Tokenizer\TokenizerInterface $tokenizer = null, Camspiers\StatisticalClassifier\Normalizer\Token\NormalizerInterface $tokenNormalizer = null ) | Create the Naive Bayes Classifier | |
classify ( $document ) | ||
prepareModel ( ) |
public __construct ( Camspiers\StatisticalClassifier\DataSource\DataSourceInterface $dataSource, Camspiers\StatisticalClassifier\Model\ModelInterface $model = null, Camspiers\StatisticalClassifier\Normalizer\Document\NormalizerInterface $documentNormalizer = null, Camspiers\StatisticalClassifier\Tokenizer\TokenizerInterface $tokenizer = null, Camspiers\StatisticalClassifier\Normalizer\Token\NormalizerInterface $tokenNormalizer = null ) | ||
$dataSource | Camspiers\StatisticalClassifier\DataSource\DataSourceInterface | |
$model | Camspiers\StatisticalClassifier\Model\ModelInterface | An model to store data in |
$documentNormalizer | Camspiers\StatisticalClassifier\Normalizer\Document\NormalizerInterface | The normalizer to make document consistent |
$tokenizer | Camspiers\StatisticalClassifier\Tokenizer\TokenizerInterface | The tokenizer to break up the documents |
$tokenNormalizer | Camspiers\StatisticalClassifier\Normalizer\Token\NormalizerInterface | The normaizer to make tokens consistent |
protected NormalizerInterface,Camspiers\StatisticalClassifier\Normalizer\Document $documentNormalizer | ||
리턴 | Camspiers\StatisticalClassifier\Normalizer\Document\NormalizerInterface |
protected NormalizerInterface,Camspiers\StatisticalClassifier\Normalizer\Token $tokenNormalizer | ||
리턴 | Camspiers\StatisticalClassifier\Normalizer\Token\NormalizerInterface |