Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// Learning describes how to create and train models from data.
// Key: model name
// Value: model configuration
Learning map[string]ModelConfig
// Scrubbing describes how to clean up data.
Scrubbing *scrubbing.Policy
}
Config tells pipeclean how to learn from and scrub your data sets. It is generally read from a JSON file with a CLI parameter.
There is no overlap between CLI flags and this file. This file only changes when data structure changes substantially; but CLI flags are much more malleable and vary at the whim of the user and the use case.
func DefaultConfig ¶
func DefaultConfig() *Config
func NewConfigFile ¶
NewConfigFile loads a Config from disk.
type ModelConfig ¶
type ModelConfig struct {
Dict *nlp.DictDefinition
Markov *nlp.MarkovDefinition
Match *nlp.MatchDefinition
}
func (ModelConfig) Validate ¶
func (mc ModelConfig) Validate() error
Validate ensures that the model configuration is valid.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.