Class SentimentSample
java.lang.Object
opennlp.tools.sentiment.SentimentSample
- All Implemented Interfaces:
Serializable, Sample
-
Constructor Summary
ConstructorsConstructorDescriptionSentimentSample(String sentiment, String[] sentence) Instantiates aSentimentSampleobject.SentimentSample(String sentiment, String[] sentence, boolean clearAdaptiveData) -
Method Summary
-
Constructor Details
-
SentimentSample
Instantiates aSentimentSampleobject.- Parameters:
sentiment- training sentimentsentence- training sentence
-
SentimentSample
-
-
Method Details
-
getSentiment
- Returns:
- Returns the sentiment.
-
getSentence
- Returns:
- Returns the sentence.
-
isClearAdaptiveDataSet
public boolean isClearAdaptiveDataSet()- Returns:
- Returns the value of isClearAdaptiveData,
trueorfalse.
-
toString
-
equals
-
hashCode
-