Documentation ¶
Index ¶
Constants ¶
View Source
const (
Dummy = Algorithm("dummy")
)
View Source
const (
Rule = Algorithm("rule")
)
View Source
const (
Statistics = Algorithm("statistics")
)
Variables ¶
Functions ¶
This section is empty.
Types ¶
type DividedName ¶
type DividedName struct { FirstName FirstName LastName LastName Separator Separator Score float64 Algorithm Algorithm }
func (DividedName) IsZero ¶
func (n DividedName) IsZero() bool
func (DividedName) String ¶
func (n DividedName) String() string
type NameParser ¶
func NewNameParser ¶
func NewNameParser(separatorString Separator, m feature.KanjiFeatureManager) NameParser
func (NameParser) Parse ¶
func (n NameParser) Parse(fullname FullName) (DividedName, error)
type Parser ¶
type Parser interface {
Parse(fullname FullName, separator Separator) (DividedName, error)
}
type RuleBaseParser ¶
type RuleBaseParser struct {
// contains filtered or unexported fields
}
func NewRuleBaseParser ¶
func NewRuleBaseParser() RuleBaseParser
func (RuleBaseParser) Parse ¶
func (p RuleBaseParser) Parse(fullname FullName, separator Separator) (DividedName, error)
Parse referer: https://github.com/rskmoi/namedivider-python/blob/master/namedivider/name_divider.py#L238
type StatisticsParser ¶
type StatisticsParser struct { OrderCalculator feature.KanjiOrderFeatureCalculator LengthCalculator feature.KanjiLengthFeatureCalculator }
func NewStatisticsParser ¶
func NewStatisticsParser(m feature.KanjiFeatureManager) StatisticsParser
func (StatisticsParser) Parse ¶
func (s StatisticsParser) Parse(fullname FullName, separator Separator) (DividedName, error)
Click to show internal directories.
Click to hide internal directories.