C# Class SharpFinn.Sentiment

Exibir arquivo Open project: Cheesebaron/SharpFinn

Public Methods

Method Description
GetScore ( string input ) : Score

Calculates sentiment score of a sentence

InjectWords ( int>.IDictionary words ) : void

Add extra words for scoring

Private Methods

Method Description
Sentiment ( ) : System
Tokenize ( string input ) : IEnumerable

Tokenizes a string. This method first removes non-alpha characters, removes multiple spaces, and lowercases every word. Then splits the string into an array of words.

Method Details

GetScore() public method

Calculates sentiment score of a sentence
public GetScore ( string input ) : Score
input string Sentence
return Score

InjectWords() public method

Add extra words for scoring
public InjectWords ( int>.IDictionary words ) : void
words int>.IDictionary Dictionary of string keys and int values
return void