types

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BM25Setting

type BM25Setting struct {
	// K1 calculation factors for the formula of bm25
	// this factors generally takes values in the range of 1.2 to 2
	// and we define K1 = 1.25 for defult value in `consts/dict_file.go`
	K1 float64

	// B calculation factors for the formula of bm25
	// this factors generally takes values 0.75
	// and we define B = 0.75 for defult value in `consts/dict_file.go`
	B float64
}

type LoadDictFile

type LoadDictFile struct {
	// file path to load dict
	FilePath string

	// file type to load, defind in file `consts/dict_file.go`
	FileType int
}

Jump to

Keyboard shortcuts

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