Method | Description | |
---|---|---|
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 ) : |
||
GetWordFrequency ( string input, bool caseSensitive ) : |
||
GetWordFrequency ( string input, bool caseSensitive, ITokenizer tokenizer, IStopWordProvider stopWordProvider ) : |
Gets a Hashtable of words and integers representing the number of each word.
|
|
IsWord ( string word ) : bool |
public static CountWords ( string word, string words ) : int | ||
word | string | The word to count. |
words | string | A non-null array of words. |
return | int |
public static GetSentences ( string input ) : string[] | ||
input | string | A string that contains sentences. |
return | string[] |
public static GetUniqueWords ( string input ) : string[] | ||
input | string | An array of strings. |
return | string[] |
public static GetWordFrequency ( string input ) : |
||
input | string | |
return |
public static GetWordFrequency ( string input, bool caseSensitive ) : |
||
input | string | |
caseSensitive | bool | |
return |
public static GetWordFrequency ( string input, bool caseSensitive, ITokenizer tokenizer, IStopWordProvider stopWordProvider ) : |
||
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. |
return |