Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BaseTagger ¶
type PerceptronTagger ¶
type PerceptronTagger struct { FrequencyThreshold int AmbiguityThreshold float64 START_TOK []string END_TOK []string ModelPath string Model *ml.AveragedPerceptron TagMap map[string]string Classes map[string]struct{} // contains filtered or unexported fields }
func NewPerceptronTagger ¶
func NewPerceptronTagger(config TaggerConfig) (*PerceptronTagger, error)
func (*PerceptronTagger) LoadModel ¶
func (t *PerceptronTagger) LoadModel(filename string) error
func (*PerceptronTagger) SaveModel ¶
func (t *PerceptronTagger) SaveModel() error
type TaggerConfig ¶
Click to show internal directories.
Click to hide internal directories.