dic

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CharacterCategoryList []CharacterClass
	InvokeList            []bool
	GroupList             []bool
)
View Source
var (
	Counts map[int]int
	Index  *da.DoubleArray
)
View Source
var (
	UnkContents []Content
	UnkCosts    []Cost
	UnkIndex    map[CharacterClass][2]int
)
View Source
var Contents []Content
View Source
var Costs []Cost

Functions

This section is empty.

Types

type CharacterClass

type CharacterClass byte
const (
	DEFAULT      CharacterClass = 0
	SPACE        CharacterClass = 1
	NUMERIC      CharacterClass = 4
	HIRAGANA     CharacterClass = 6
	KATAKANA     CharacterClass = 7
	KANJINUMERIC CharacterClass = 8
	GREEK        CharacterClass = 9
	KANJI        CharacterClass = 2
	SYMBOL       CharacterClass = 3
	ALPHA        CharacterClass = 5
	CYRILLIC     CharacterClass = 10
)

func (CharacterClass) String

func (this CharacterClass) String() string

type ConnectionTable

type ConnectionTable struct {
	RowSize, ColSize int16
	Vec              []int16
}
var Connection *ConnectionTable

func (*ConnectionTable) At

func (this *ConnectionTable) At(a_row, a_col int) (cost int16, err error)

type Content

type Content struct {
	Pos, Pos1, Pos2, Pos3,
	Katuyougata, Katuyoukei, Kihonkei,
	Yomi, Pronunciation string
}

func ReferUnkContent

func ReferUnkContent(a_id int) (content Content, err error)

func (Content) String

func (this Content) String() string

type Cost

type Cost struct {
	Left, Right, Weight int16
}

func GetUnkCost

func GetUnkCost(a_id int) (cost Cost, err error)

type UserDic

type UserDic struct {
	Index    *da.DoubleArray
	Contents []UserDicContent
}

func NewUserDic

func NewUserDic(a_file *os.File) (dic *UserDic, err error)

type UserDicContent

type UserDicContent struct {
	Surface, Yomi []string
	Pos           string
}

Jump to

Keyboard shortcuts

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