C# Класс NClassifier.Bayesian.OdbcWordsDataSource

Наследование: ICategorizedWordsDataSource
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
categoryColumn string
connectionManager IDbConnectionManager
matchCountColumn string
nonMatchCountColumn string
tableName string
wordColumn string

Открытые методы

Метод Описание
AddMatch ( string word ) : void
AddMatch ( string category, string word ) : void
AddNonMatch ( string word ) : void
AddNonMatch ( string category, string word ) : void
GetWordProbability ( string word ) : WordProbability
GetWordProbability ( string category, string word ) : WordProbability
OdbcWordsDataSource ( IDbConnectionManager conMgr ) : System
OdbcWordsDataSource ( IDbConnectionManager conMgr, string aTableName, string aWordColumn, string aCategoryColumn, string aMatchCountColumn, string aNonMatchCountColumn ) : System

Create a SqlWordsDataSource using the DEFAULT_CATEGORY ("DEFAULT")

Приватные методы

Метод Описание
CreateTable ( ) : void

Create the table if it does not already exist.

UpdateWordProbability ( string category, string word, bool isMatch ) : void

Описание методов

AddMatch() публичный Метод

public AddMatch ( string word ) : void
word string
Результат void

AddMatch() публичный Метод

public AddMatch ( string category, string word ) : void
category string
word string
Результат void

AddNonMatch() публичный Метод

public AddNonMatch ( string word ) : void
word string
Результат void

AddNonMatch() публичный Метод

public AddNonMatch ( string category, string word ) : void
category string
word string
Результат void

GetWordProbability() публичный Метод

public GetWordProbability ( string word ) : WordProbability
word string
Результат WordProbability

GetWordProbability() публичный Метод

public GetWordProbability ( string category, string word ) : WordProbability
category string
word string
Результат WordProbability

OdbcWordsDataSource() публичный Метод

public OdbcWordsDataSource ( IDbConnectionManager conMgr ) : System
conMgr IDbConnectionManager
Результат System

OdbcWordsDataSource() публичный Метод

Create a SqlWordsDataSource using the DEFAULT_CATEGORY ("DEFAULT")
public OdbcWordsDataSource ( IDbConnectionManager conMgr, string aTableName, string aWordColumn, string aCategoryColumn, string aMatchCountColumn, string aNonMatchCountColumn ) : System
conMgr IDbConnectionManager The connection manager to use.
aTableName string The name of the table storing word probabilities.
aWordColumn string The word column.
aCategoryColumn string The category column.
aMatchCountColumn string The match count column.
aNonMatchCountColumn string The non-match count column.
Результат System

Описание свойств

categoryColumn защищенное свойство

protected string categoryColumn
Результат string

connectionManager защищенное свойство

protected IDbConnectionManager connectionManager
Результат IDbConnectionManager

matchCountColumn защищенное свойство

protected string matchCountColumn
Результат string

nonMatchCountColumn защищенное свойство

protected string nonMatchCountColumn
Результат string

tableName защищенное свойство

protected string tableName
Результат string

wordColumn защищенное свойство

protected string wordColumn
Результат string