Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BayesWeights ¶
func BayesWeights() map[lang.Language]*bayes.NaiveBayes
func TagTokens ¶
func TagTokens( ts []token.TokenSN, d *dict.Dictionary, nb *bayes.NaiveBayes, thr float64, )
Types ¶
type BayesF ¶
type BayesF struct {
// contains filtered or unexported fields
}
BayesF implements bayes.Featurer
func (BayesF) Value ¶
func (b BayesF) Value() bayes.FeatureValue
Value is required by bayes.Featurer
type FeatureSet ¶
FeatureSet splits features into Uninomial, Species, Ifraspecies groups
func NewFeatureSet ¶
func NewFeatureSet(ts []token.TokenSN) FeatureSet
BayesFeatures creates slices of features for a token that might represent genus or other uninomial
func (*FeatureSet) Flatten ¶
func (fs *FeatureSet) Flatten() []bayes.Featurer
Click to show internal directories.
Click to hide internal directories.