gojieba

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() Segment

func SetDictDir

func SetDictDir(dictDir string)

Types

type Jieba

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

func (*Jieba) Close

func (s *Jieba) Close() error

func (*Jieba) LoadDict

func (s *Jieba) LoadDict(dictFile string, dictType ...string) error

func (*Jieba) Segment

func (s *Jieba) Segment(text string, args ...string) []string

func (*Jieba) SegmentBy

func (s *Jieba) SegmentBy(text string, mode string, args ...string) []string

Jump to

Keyboard shortcuts

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