cmd

package
v0.0.0-...-a56488b Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2016 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "NBClassify",
	Short: "A simple naive bayesian classifier",
	Long: `NBCassify can be used in two modes: "train" allows you to
	create classification sets; and "classify" matches text to one of 
	the giving classification sets.`,
}

This represents the base command when called without any subcommands

Functions

func Classify

func Classify(cmd *cobra.Command, args []string) error

func Entropy

func Entropy(cmd *cobra.Command, args []string) error

func Execute

func Execute()

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func Train

func Train(cmd *cobra.Command, args []string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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