C# 클래스 BayesClassifier.Classifier

파일 보기 프로젝트 열기: ArdaXi/Bayes.NET

공개 메소드들

메소드 설명
Add ( string category, IEnumerable phrases ) : void

Adds phrases to a category.

Add ( string category, string phrase ) : void

Adds a phrase to a category.

AddCategory ( string name, int>.Dictionary phrases ) : void

Adds a new category, replacing an existing one if necessary.

Classify ( IEnumerable phrases ) : double>.Dictionary

Classifies the given list, and returns the probability scores.

비공개 메소드들

메소드 설명
GetCategory ( string name ) : Category
TotalCount ( ) : int

메소드 상세

Add() 공개 메소드

Adds phrases to a category.
public Add ( string category, IEnumerable phrases ) : void
category string The category to add the phrases to. Will be created if necessary.
phrases IEnumerable The phrases to add.
리턴 void

Add() 공개 메소드

Adds a phrase to a category.
public Add ( string category, string phrase ) : void
category string The category to add the phrase to. Will be created if necessary.
phrase string The phrase to add.
리턴 void

AddCategory() 공개 메소드

Adds a new category, replacing an existing one if necessary.
public AddCategory ( string name, int>.Dictionary phrases ) : void
name string The name of the category.
phrases int>.Dictionary The phrases to add to it.
리턴 void

Classify() 공개 메소드

Classifies the given list, and returns the probability scores.
public Classify ( IEnumerable phrases ) : double>.Dictionary
phrases IEnumerable The phrases to classify.
리턴 double>.Dictionary