seg

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnTokenizer

type EnTokenizer struct {
}

func (*EnTokenizer) Free

func (s *EnTokenizer) Free()

func (*EnTokenizer) Seg

func (s *EnTokenizer) Seg(text string) []string

type JiebaTokenizer

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

func NewJieba

func NewJieba() *JiebaTokenizer

func (*JiebaTokenizer) Free

func (j *JiebaTokenizer) Free()

func (*JiebaTokenizer) Seg

func (j *JiebaTokenizer) Seg(text string) []string

type Tokenizer

type Tokenizer interface {
	Seg(text string) []string
	Free()
}

Jump to

Keyboard shortcuts

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