public class SentimentAnalysisResponse extends AbstractModel
Constructor and Description |
---|
SentimentAnalysisResponse() |
SentimentAnalysisResponse(SentimentAnalysisResponse source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
Float |
getNegative()
Get 负面情感概率
|
Float |
getNeutral()
Get 中性情感概率,当输入参数Mode取值为3class时有效,否则值为空
注意:此字段可能返回 null,表示取不到有效值。
|
Float |
getPositive()
Get 正面情感概率
|
String |
getRequestId()
Get 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
String |
getSentiment()
Get 情感分类结果:
1、positive,表示正面情感
2、negative,表示负面情感
3、neutral,表示中性、无情感
|
void |
setNegative(Float Negative)
Set 负面情感概率
|
void |
setNeutral(Float Neutral)
Set 中性情感概率,当输入参数Mode取值为3class时有效,否则值为空
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setPositive(Float Positive)
Set 正面情感概率
|
void |
setRequestId(String RequestId)
Set 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
void |
setSentiment(String Sentiment)
Set 情感分类结果:
1、positive,表示正面情感
2、negative,表示负面情感
3、neutral,表示中性、无情感
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public SentimentAnalysisResponse()
public SentimentAnalysisResponse(SentimentAnalysisResponse source)
public Float getPositive()
public void setPositive(Float Positive)
Positive
- 正面情感概率public Float getNeutral()
public void setNeutral(Float Neutral)
Neutral
- 中性情感概率,当输入参数Mode取值为3class时有效,否则值为空
注意:此字段可能返回 null,表示取不到有效值。public Float getNegative()
public void setNegative(Float Negative)
Negative
- 负面情感概率public String getSentiment()
public void setSentiment(String Sentiment)
Sentiment
- 情感分类结果:
1、positive,表示正面情感
2、negative,表示负面情感
3、neutral,表示中性、无情感public String getRequestId()
public void setRequestId(String RequestId)
RequestId
- 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。Copyright © 2021. All rights reserved.