C# 클래스 NClassifier.Bayesian.BayesianClassifier

An implementation of IClassifer based on Bayes' algorithm.
상속: AbstractClassifier, ITrainableClassifier
파일 보기 프로젝트 열기: colin-dumitru/Proiect-AI-2012---GUI 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
CalcWordsProbability ( string category, string words ) : NClassifier.Bayesian.WordProbability[]
CheckCategoriesSupported ( string category ) : void
IsClassifiableWord ( string word ) : bool

메소드 상세

BayesianClassifier() 공개 메소드

public BayesianClassifier ( ) : System
리턴 System

BayesianClassifier() 공개 메소드

public BayesianClassifier ( IWordsDataSource wd ) : System
wd IWordsDataSource
리턴 System

BayesianClassifier() 공개 메소드

public BayesianClassifier ( IWordsDataSource wd, ITokenizer tokenizer ) : System
wd IWordsDataSource
tokenizer ITokenizer
리턴 System

BayesianClassifier() 공개 메소드

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

CalculateOverallProbability() 공개 메소드

public CalculateOverallProbability ( WordProbability wps ) : double
wps WordProbability
리턴 double

Classify() 공개 메소드

public Classify ( string input ) : double
input string
리턴 double

Classify() 공개 메소드

public Classify ( string category, string input ) : double
category string
input string
리턴 double

IsMatch() 공개 메소드

public IsMatch ( string category, string input ) : bool
category string
input string
리턴 bool

NormalizeSignificance() 공개 정적인 메소드

public static NormalizeSignificance ( double sig ) : double
sig double
리턴 double

TeachMatch() 공개 메소드

public TeachMatch ( string input ) : void
input string
리턴 void

TeachMatch() 공개 메소드

public TeachMatch ( string category, string input ) : void
category string
input string
리턴 void

TeachNonMatch() 공개 메소드

public TeachNonMatch ( string input ) : void
input string
리턴 void

TeachNonMatch() 공개 메소드

public TeachNonMatch ( string category, string input ) : void
category string
input string
리턴 void

TransformWord() 공개 메소드

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