Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Vectorizer ¶
type Vectorizer struct {
// contains filtered or unexported fields
}
Vectorizer represents a TF-IDF vectorizer
func (*Vectorizer) Fit ¶
func (v *Vectorizer) Fit(docs []string)
Fit fits the vectorizer to the input documents
func (*Vectorizer) FitTransform ¶
func (v *Vectorizer) FitTransform(docs []string) [][]float64
FitTransform fits the vectorizer to the input documents and then transforms them
func (*Vectorizer) Transform ¶
func (v *Vectorizer) Transform(docs []string) [][]float64
Transform transforms the input documents to TF-IDF vectors
Click to show internal directories.
Click to hide internal directories.