analyzer

package
v0.0.0-...-25b019d Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analyzer

type Analyzer interface {
	Tokenize(input []byte) []Token
}

func NewChineseAnalyzer

func NewChineseAnalyzer() Analyzer

type ChineseAnalyzer

type ChineseAnalyzer struct {
	Analyzer
	// contains filtered or unexported fields
}

func (*ChineseAnalyzer) Tokenize

func (a *ChineseAnalyzer) Tokenize(input []byte) []Token

type Token

type Token struct {
	Value string `json:"value"`
	TF    uint   `json:"tf"`
	// contains filtered or unexported fields
}

func NewToken

func NewToken(value string, offsets []uint) Token

Jump to

Keyboard shortcuts

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