tokenizer

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2014 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BOSEOS = -1
)

Variables

This section is empty.

Functions

func NewLattice added in v0.0.2

func NewLattice() *lattice

Types

type Morph

type Morph struct {
	Id         int
	Class      NodeClass
	Start, End int
	Surface    string
	// contains filtered or unexported fields
}

func (Morph) Content

func (this Morph) Content() (content dic.Content, err error)

func (Morph) String

func (this Morph) String() string

type Node

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

func (Node) String

func (this Node) String() string

type NodeClass added in v0.0.2

type NodeClass byte
const (
	KNOWN NodeClass = iota
	UNKNOWN
	INSERTED
	USER
	DUMMY
)

func (NodeClass) String added in v0.0.2

func (this NodeClass) String() string

type NodePool added in v0.0.2

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

func NewNodePool added in v0.0.2

func NewNodePool(a_size int) *NodePool

type Tokenizer added in v0.0.2

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

func NewTokenizer added in v0.0.2

func NewTokenizer() *Tokenizer

func (*Tokenizer) SetUserDic added in v0.0.2

func (this *Tokenizer) SetUserDic(a_udic *dic.UserDic)

func (*Tokenizer) Tokenize added in v0.0.2

func (this *Tokenizer) Tokenize(a_input string) (morphs []Morph, err error)

Jump to

Keyboard shortcuts

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