Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Filter ¶
Filter removes elements from the input slice where the supplied predicate is satisfied
func IsNotStopWord ¶
IsNotStopWord is the inverse function of IsStopWord
func IsStopWord ¶
IsStopWord performs a binary search against a list of known english stop words returns true if v is a stop word; false otherwise
Types ¶
type Classifier ¶
type Classifier interface { // Train allows clients to train the classifier Train(doc string, category string) error // Classify performs a classification on the input corpus and assumes that // the underlying classifier has been trained. Classify(doc string) (string, error) }
Classifier provides a simple interface for different text classifiers
Click to show internal directories.
Click to hide internal directories.