morphology

package
v0.0.0-...-e3ec724 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kagome

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

github.com/ikawaha/kagomeに直接依存しないようにラップする

func NewKagome

func NewKagome() (*Kagome, error)

func (*Kagome) Analyze

func (k *Kagome) Analyze(text string) []MorphologyToken

type Morphology

type Morphology interface {
	Analyze(string) []MorphologyToken
}

type MorphologyToken

type MorphologyToken struct {
	Term string
	Kana string
}

func NewMorphologyToken

func NewMorphologyToken(term, kana string) MorphologyToken

Jump to

Keyboard shortcuts

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