C# 클래스 NClassifier.Utilities

파일 보기 프로젝트 열기: colin-dumitru/Proiect-AI-2012---GUI

공개 메소드들

메소드 설명
CountWords ( string word, string words ) : int

Count how many times a word appears in an array of words.

GetSentences ( string input ) : string[]

Gets an array of sentences.

GetUniqueWords ( string input ) : string[]

Find all unique words in an array of words.

GetWordFrequency ( string input ) : Hashtable
GetWordFrequency ( string input, bool caseSensitive ) : Hashtable
GetWordFrequency ( string input, bool caseSensitive, ITokenizer tokenizer, IStopWordProvider stopWordProvider ) : Hashtable

Gets a Hashtable of words and integers representing the number of each word.

IsWord ( string word ) : bool

메소드 상세

CountWords() 공개 정적인 메소드

Count how many times a word appears in an array of words.
public static CountWords ( string word, string words ) : int
word string The word to count.
words string A non-null array of words.
리턴 int

GetSentences() 공개 정적인 메소드

Gets an array of sentences.
public static GetSentences ( string input ) : string[]
input string A string that contains sentences.
리턴 string[]

GetUniqueWords() 공개 정적인 메소드

Find all unique words in an array of words.
public static GetUniqueWords ( string input ) : string[]
input string An array of strings.
리턴 string[]

GetWordFrequency() 공개 정적인 메소드

public static GetWordFrequency ( string input ) : Hashtable
input string
리턴 System.Collections.Hashtable

GetWordFrequency() 공개 정적인 메소드

public static GetWordFrequency ( string input, bool caseSensitive ) : Hashtable
input string
caseSensitive bool
리턴 System.Collections.Hashtable

GetWordFrequency() 공개 정적인 메소드

Gets a Hashtable of words and integers representing the number of each word.
public static GetWordFrequency ( string input, bool caseSensitive, ITokenizer tokenizer, IStopWordProvider stopWordProvider ) : Hashtable
input string The string to get the word frequency of.
caseSensitive bool True if words should be treated as separate if they have different casing.
tokenizer ITokenizer A instance of ITokenizer.
stopWordProvider IStopWordProvider An instance of IStopWordProvider.
리턴 System.Collections.Hashtable

IsWord() 공개 정적인 메소드

public static IsWord ( string word ) : bool
word string
리턴 bool