C# Class NClassifier.Bayesian.BayesianClassifier

An implementation of IClassifer based on Bayes' algorithm.
Inheritance: AbstractClassifier, ITrainableClassifier
ファイルを表示 Open project: colin-dumitru/Proiect-AI-2012---GUI Class Usage Examples

Public Methods

Method Description
BayesianClassifier ( ) : System
BayesianClassifier ( IWordsDataSource wd ) : System
BayesianClassifier ( IWordsDataSource wd, ITokenizer tokenizer ) : System
BayesianClassifier ( IWordsDataSource wd, ITokenizer tokenizer, IStopWordProvider swp ) : System
CalculateOverallProbability ( WordProbability wps ) : double
Classify ( string input ) : double
Classify ( string category, string input ) : double
IsMatch ( string category, string input ) : bool
NormalizeSignificance ( double sig ) : double
TeachMatch ( string input ) : void
TeachMatch ( string category, string input ) : void
TeachNonMatch ( string input ) : void
TeachNonMatch ( string category, string input ) : void
TransformWord ( string word ) : string

Allows transformations to be done to the given word.

Private Methods

Method Description
CalcWordsProbability ( string category, string words ) : NClassifier.Bayesian.WordProbability[]
CheckCategoriesSupported ( string category ) : void
IsClassifiableWord ( string word ) : bool

Method Details

BayesianClassifier() public method

public BayesianClassifier ( ) : System
return System

BayesianClassifier() public method

public BayesianClassifier ( IWordsDataSource wd ) : System
wd IWordsDataSource
return System

BayesianClassifier() public method

public BayesianClassifier ( IWordsDataSource wd, ITokenizer tokenizer ) : System
wd IWordsDataSource
tokenizer ITokenizer
return System

BayesianClassifier() public method

public BayesianClassifier ( IWordsDataSource wd, ITokenizer tokenizer, IStopWordProvider swp ) : System
wd IWordsDataSource
tokenizer ITokenizer
swp IStopWordProvider
return System

CalculateOverallProbability() public method

public CalculateOverallProbability ( WordProbability wps ) : double
wps WordProbability
return double

Classify() public method

public Classify ( string input ) : double
input string
return double

Classify() public method

public Classify ( string category, string input ) : double
category string
input string
return double

IsMatch() public method

public IsMatch ( string category, string input ) : bool
category string
input string
return bool

NormalizeSignificance() public static method

public static NormalizeSignificance ( double sig ) : double
sig double
return double

TeachMatch() public method

public TeachMatch ( string input ) : void
input string
return void

TeachMatch() public method

public TeachMatch ( string category, string input ) : void
category string
input string
return void

TeachNonMatch() public method

public TeachNonMatch ( string input ) : void
input string
return void

TeachNonMatch() public method

public TeachNonMatch ( string category, string input ) : void
category string
input string
return void

TransformWord() public method

Allows transformations to be done to the given word.
public TransformWord ( string word ) : string
word string The word to transform.
return string