gse

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "gse"

Variables

This section is empty.

Functions

This section is empty.

Types

type GseTokenizer

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

func NewGseTokenizer

func NewGseTokenizer(dictPath, stopPath string, alpha bool) (*GseTokenizer, error)

NewGseTokenizer create a gse cut tokenizer

func (*GseTokenizer) Tokenize

func (g *GseTokenizer) Tokenize(text []byte) analysis.TokenStream

Tokenize cut the text to bleve token stream

Jump to

Keyboard shortcuts

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