public static enum CoreNLPProtos.Sentiment extends java.lang.Enum<CoreNLPProtos.Sentiment> implements com.google.protobuf.ProtocolMessageEnum
An enumeration of valid sentiment values for the sentiment classifier.Protobuf enum
edu.stanford.nlp.pipeline.Sentiment
Enum Constant and Description |
---|
NEUTRAL
NEUTRAL = 2; |
STRONG_NEGATIVE
STRONG_NEGATIVE = 0; |
STRONG_POSITIVE
STRONG_POSITIVE = 4; |
WEAK_NEGATIVE
WEAK_NEGATIVE = 1; |
WEAK_POSITIVE
WEAK_POSITIVE = 3; |
Modifier and Type | Field and Description |
---|---|
static int |
NEUTRAL_VALUE
NEUTRAL = 2; |
static int |
STRONG_NEGATIVE_VALUE
STRONG_NEGATIVE = 0; |
static int |
STRONG_POSITIVE_VALUE
STRONG_POSITIVE = 4; |
static int |
WEAK_NEGATIVE_VALUE
WEAK_NEGATIVE = 1; |
static int |
WEAK_POSITIVE_VALUE
WEAK_POSITIVE = 3; |
Modifier and Type | Method and Description |
---|---|
static CoreNLPProtos.Sentiment |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<CoreNLPProtos.Sentiment> |
internalGetValueMap() |
static CoreNLPProtos.Sentiment |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static CoreNLPProtos.Sentiment |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static CoreNLPProtos.Sentiment |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CoreNLPProtos.Sentiment[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CoreNLPProtos.Sentiment STRONG_NEGATIVE
STRONG_NEGATIVE = 0;
public static final CoreNLPProtos.Sentiment WEAK_NEGATIVE
WEAK_NEGATIVE = 1;
public static final CoreNLPProtos.Sentiment NEUTRAL
NEUTRAL = 2;
public static final CoreNLPProtos.Sentiment WEAK_POSITIVE
WEAK_POSITIVE = 3;
public static final CoreNLPProtos.Sentiment STRONG_POSITIVE
STRONG_POSITIVE = 4;
public static final int STRONG_NEGATIVE_VALUE
STRONG_NEGATIVE = 0;
public static final int WEAK_NEGATIVE_VALUE
WEAK_NEGATIVE = 1;
public static final int NEUTRAL_VALUE
NEUTRAL = 2;
public static final int WEAK_POSITIVE_VALUE
WEAK_POSITIVE = 3;
public static final int STRONG_POSITIVE_VALUE
STRONG_POSITIVE = 4;
public static CoreNLPProtos.Sentiment[] values()
for (CoreNLPProtos.Sentiment c : CoreNLPProtos.Sentiment.values()) System.out.println(c);
public static CoreNLPProtos.Sentiment valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static CoreNLPProtos.Sentiment valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static CoreNLPProtos.Sentiment forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<CoreNLPProtos.Sentiment> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static CoreNLPProtos.Sentiment valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)