PHP Interface Camspiers\StatisticalClassifier\Classifier\ClassifierInterface

Implementing classes are classifiers capable of classifying documents into categories
Author: Cam Spiers ([email protected])
Afficher le fichier Open project: camspiers/statistical-classifier

Méthodes publiques

Méthode Description
classify ( string $document ) : string | boolean Classify the document and return its category
is ( string $category, string $document ) : boolean Returns whether or not the document is of the category

Method Details

classify() public méthode

Classify the document and return its category
public classify ( string $document ) : string | boolean
$document string The document to classify
Résultat string | boolean The category of the document

is() public méthode

Returns whether or not the document is of the category
public is ( string $category, string $document ) : boolean
$category string The category in question
$document string The document to check
Résultat boolean Whether or not the document is in the category