Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TFIDFInstance ¶
type TFIDFInstance struct {
Name string `json:"Name"`
Terms map[string]int `json:"Terms"`
TotalDocuments int `json:"TotalDocuments"`
}
func LoadInstance ¶
func LoadInstance(file os.File) (*TFIDFInstance, error)
func NewInstance ¶
func NewInstance(name string) TFIDFInstance
func (TFIDFInstance) AddToCorpus ¶
func (i TFIDFInstance) AddToCorpus(doc string, processed bool) error
func (TFIDFInstance) SaveToFile ¶
func (i TFIDFInstance) SaveToFile(file os.File) error
func (TFIDFInstance) TFIDFScores ¶
Click to show internal directories.
Click to hide internal directories.