Documentation ¶
Index ¶
- Variables
- func HandleError(msg string, err error)
- func IDF(word uint64, N int) float64
- func Init()
- func LoadWordIds(path string)
- func R(tf int) float64
- func ReadBytes(filename string) (data []byte, err error)
- func ReadCsv(filepath string) [][]string
- func RemovePunctuation(str string) string
- func RemoveSpace(str string) string
- func Set(ids []uint32) []uint32
- func Str2Uint64(str string) uint64
- func U32ToBytes(key uint32) []byte
- func U64ToBytes(key uint64) []byte
- func WordCut(q string) (res []string)
- func WordCutForInv(q string) []string
- func WriteBytes(data []byte, filename string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Seg jiebago.Segmenter WordIds map[uint64]int )
Functions ¶
func HandleError ¶
func LoadWordIds ¶
func LoadWordIds(path string)
func Str2Uint64 ¶
func U32ToBytes ¶
func U64ToBytes ¶
func WordCutForInv ¶
func WriteBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.