C# Class rosette_api.SentimentResponse.RosetteSentiment

Exibir arquivo Open project: rosette-api/csharp Class Usage Examples

Public Methods

Method Description
Equals ( object obj ) : bool

Equals override

GetHashCode ( ) : int

HashCode override

RosetteSentiment ( String sentiment, Nullable confidence ) : System

A constructor for creating RosetteSentiments

ToString ( ) : string

ToString override.

Method Details

Equals() public method

Equals override
public Equals ( object obj ) : bool
obj object The object to compare against
return bool

GetHashCode() public method

HashCode override
public GetHashCode ( ) : int
return int

RosetteSentiment() public method

A constructor for creating RosetteSentiments
public RosetteSentiment ( String sentiment, Nullable confidence ) : System
sentiment String The sentiment label: "pos", "neu", or "neg"
confidence Nullable An indicator of confidence in the label being correct. A range from 0-1.
return System

ToString() public method

ToString override.
public ToString ( ) : string
return string