Documentation ¶
Index ¶
- func Add(uint64 []int, int int) []int
- func Base64Encode(s string) string
- func Dimensionality(ins []int) []int
- func Int32StrToInts(ins string) []int
- func IntsToStr(ins []int) string
- func StrToStrs(s string, lenth int) []string
- func StrToStrs4(s string, lenth int) []string
- func StringToBytes(s string) (b []byte)
- type Compare
- type Cosine
- type DiceCoefficient
- type EditDistance
- type Hamming
- type Jaro
- type JaroWinkler
- type Match
- type MatchResult
- type Simhash
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64Encode ¶
Base64Encode encodes a byte slice to a base64 string.
func StringToBytes ¶
Types ¶
type Cosine ¶
type Cosine struct { }
Cosine similarity algorithm implementation.
func (Cosine) CompareAscii ¶
func (Cosine) CompareUtf8 ¶
type DiceCoefficient ¶
type DiceCoefficient struct { Ngram int // contains filtered or unexported fields }
func (*DiceCoefficient) CompareAscii ¶
func (d *DiceCoefficient) CompareAscii(s1, s2 string) float64
func (*DiceCoefficient) CompareUtf8 ¶
func (d *DiceCoefficient) CompareUtf8(s1, s2 string) float64
type EditDistance ¶
type EditDistance struct {
// contains filtered or unexported fields
}
func (*EditDistance) CompareAscii ¶
func (e *EditDistance) CompareAscii(s1, s2 string) float64
CompareAscii ascii
func (*EditDistance) CompareUtf8 ¶
func (e *EditDistance) CompareUtf8(utf8Str1, utf8Str2 string) float64
CompareUtf8 utf8
type Jaro ¶
type Jaro struct { MatchWindow int // contains filtered or unexported fields }
func (*Jaro) CompareAscii ¶
func (*Jaro) CompareUtf8 ¶
type JaroWinkler ¶
type JaroWinkler struct { MatchWindow int // contains filtered or unexported fields }
func (*JaroWinkler) CompareAscii ¶
func (j *JaroWinkler) CompareAscii(s1, s2 string) float64
func (*JaroWinkler) CompareUtf8 ¶
func (j *JaroWinkler) CompareUtf8(s1, s2 string) float64
type MatchResult ¶
Click to show internal directories.
Click to hide internal directories.