Documentation ¶
Overview ¶
Package model include models for perceptron
Index ¶
- func FeatureClassKey(feat string, clas string) string
- type Class
- type Feature
- type KV
- type KVSlice
- type PerceptronJSONModel
- type Sentence
- type Weights
- func (w Weights) Features() <-chan string
- func (w Weights) GetFeatureLength(feat string) int
- func (w Weights) GetFeatureWeights(feat string) <-chan KV
- func (w Weights) GetWeight(feat string, clas string) float64
- func (w Weights) Map() map[string]map[string]float64
- func (w *Weights) SetWeight(feat string, clas string, value float64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FeatureClassKey ¶
Types ¶
type PerceptronJSONModel ¶
type Weights ¶
type Weights struct {
// contains filtered or unexported fields
}
Each feature gets its own weight vector, so weights is a dict-of-dicts
func (Weights) GetFeatureLength ¶
func (Weights) GetFeatureWeights ¶
GetFeatureWeights get a feat classes weights
Click to show internal directories.
Click to hide internal directories.