Documentation ¶
Overview ¶
Package builder implements the dictionary builder.
Index ¶
Constants ¶
View Source
const MaxInt16 = 1<<15 - 1
MaxInt16 represents the int16 limit value.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CharClassDef ¶
type CharClassDef struct {
// contains filtered or unexported fields
}
CharClassDef represents char.def.
type Config ¶
type Config struct { MatrixDefFileName string CharDefFileName string UnkDefFileName string // contains filtered or unexported fields }
Config represents the configuration of dictionary builder.
func NewConfig ¶
func NewConfig(path string, other []string, enc encoding.Encoding, info *MorphRecordInfo, unk *UnkRecordInfo) *Config
NewConfig creates a configuration for dictionary builder.
func (*Config) AddDictInfo ¶ added in v1.1.0
type MatrixDef ¶
type MatrixDef struct {
// contains filtered or unexported fields
}
MatrixDef represents matrix.def.
type MorphRecordInfo ¶
type MorphRecordInfo struct { ColSize int SurfaceIndex int LeftIDIndex int RightIDIndex int WeightIndex int POSStartIndex int OtherContentsStartIndex int // extra info. Meta map[string]int8 }
MorphRecordInfo represents a format of CSV records.
Click to show internal directories.
Click to hide internal directories.