pkg

package
v0.0.0-...-0158116 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalCosSim

func CalCosSim(map[string]float64)

Types

type TfIdf

type TfIdf struct {
	// contains filtered or unexported fields
}

func NewTfIdf

func NewTfIdf(docs [][]string) *TfIdf

func (*TfIdf) Df

func (tfidf *TfIdf) Df(term string) int

func (*TfIdf) Idf

func (tfidf *TfIdf) Idf(term string) float64

func (*TfIdf) Tf

func (tfidf *TfIdf) Tf(index int, term string) float64

func (*TfIdf) TfIdf

func (tfidf *TfIdf) TfIdf(index int, term string) float64

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL