cmd

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() error

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

func NewConfigFile(filename string) (*Config, error)

NewConfigFile loads a Config from disk.

func (*Config) Validate

func (cfg *Config) Validate(models map[string]nlp.Model) []error

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL