public class TextModerationResponse extends AbstractModel
Constructor and Description |
---|
TextModerationResponse() |
TextModerationResponse(TextModerationResponse 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 |
---|---|
String |
getBizType()
Get This field returns the BizType of the request parameters
|
String |
getContextText()
Get Returns the context text.
|
String |
getDataId()
Get This field returns the `DataId` in the request parameter corresponding to the moderated object
Note: This field may return `null`, indicating that no valid value can be found.
|
DetailResults[] |
getDetailResults()
Get This field returns the moderation results based on the text libraries.
|
String |
getExtra()
Get This field returns the extra information configured according to your needs.
|
String[] |
getKeywords()
Get This field returns the keywords matched with the libraries in the moderated text under the current label to mark the specific violations (for example, *Friend me*).
|
String |
getLabel()
Get This field returns the **negative label with the highest priority** in the moderation results (DetailResults), which indicates the moderation result recommended by the model.
|
String |
getRequestId()
Get The unique request ID, which is returned for each request.
|
RiskDetails[] |
getRiskDetails()
Get This field returns the detection results of violating accounts at risk, mainly including violation categories and risk levels.
|
Long |
getScore()
Get This field returns the confidence level under the current label.
|
String |
getSubLabel()
Get The field returns the second-level labels under the current label.
|
String |
getSuggestion()
Get This field returns the follow-up moderation suggestions.
|
void |
setBizType(String BizType)
Set This field returns the BizType of the request parameters
|
void |
setContextText(String ContextText)
Set Returns the context text.
|
void |
setDataId(String DataId)
Set This field returns the `DataId` in the request parameter corresponding to the moderated object
Note: This field may return `null`, indicating that no valid value can be found.
|
void |
setDetailResults(DetailResults[] DetailResults)
Set This field returns the moderation results based on the text libraries.
|
void |
setExtra(String Extra)
Set This field returns the extra information configured according to your needs.
|
void |
setKeywords(String[] Keywords)
Set This field returns the keywords matched with the libraries in the moderated text under the current label to mark the specific violations (for example, *Friend me*).
|
void |
setLabel(String Label)
Set This field returns the **negative label with the highest priority** in the moderation results (DetailResults), which indicates the moderation result recommended by the model.
|
void |
setRequestId(String RequestId)
Set The unique request ID, which is returned for each request.
|
void |
setRiskDetails(RiskDetails[] RiskDetails)
Set This field returns the detection results of violating accounts at risk, mainly including violation categories and risk levels.
|
void |
setScore(Long Score)
Set This field returns the confidence level under the current label.
|
void |
setSubLabel(String SubLabel)
Set The field returns the second-level labels under the current label.
|
void |
setSuggestion(String Suggestion)
Set This field returns the follow-up moderation suggestions.
|
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 TextModerationResponse()
public TextModerationResponse(TextModerationResponse source)
public String getBizType()
public void setBizType(String BizType)
BizType
- This field returns the BizType of the request parameterspublic String getLabel()
public void setLabel(String Label)
Label
- This field returns the **negative label with the highest priority** in the moderation results (DetailResults), which indicates the moderation result recommended by the model. It is recommended that you handle different violations with the suggested values according to your business needs. public String getSuggestion()
public void setSuggestion(String Suggestion)
Suggestion
- This field returns the follow-up moderation suggestions. The returned value indicates the recommended operation after obtaining the moderation result. It is recommended that you handle different violations with the suggested values according to your business needs. public String[] getKeywords()
public void setKeywords(String[] Keywords)
Keywords
- This field returns the keywords matched with the libraries in the moderated text under the current label to mark the specific violations (for example, *Friend me*). This parameter may have multiple returned values, indicating multiple keywords are matched. If the returned value is empty and the `Score` is not empty, it means that the negative label corresponding to the moderation result is a value returned from the semantic model judgment
Note: This field may return `null`, indicating that no valid value can be found.public Long getScore()
public void setScore(Long Score)
Score
- This field returns the confidence level under the current label. Value range: 0 (**the lowest confidence level**) - 100 (**the highest confidence level**). The higher the value, the more likely the text is to belong to the category indicated by the current label. For example, *pornographic 99* indicates that the text is very likely to be pornographic, and *pornographic 0* indicates that the text is not pornographicpublic DetailResults[] getDetailResults()
public void setDetailResults(DetailResults[] DetailResults)
DetailResults
- This field returns the moderation results based on the text libraries. For details, see `DetailResults` in the data structure
Note: This field may return `null`, indicating that no valid value can be found.public RiskDetails[] getRiskDetails()
public void setRiskDetails(RiskDetails[] RiskDetails)
RiskDetails
- This field returns the detection results of violating accounts at risk, mainly including violation categories and risk levels. For details, see `RiskDetails` in the data structure
Note: This field may return `null`, indicating that no valid value can be found.public String getExtra()
public void setExtra(String Extra)
Extra
- This field returns the extra information configured according to your needs. If it's not configured, the returned value is empty by default. public String getDataId()
public void setDataId(String DataId)
DataId
- This field returns the `DataId` in the request parameter corresponding to the moderated object
Note: This field may return `null`, indicating that no valid value can be found.public String getSubLabel()
public void setSubLabel(String SubLabel)
SubLabel
- The field returns the second-level labels under the current label.
Note: This field may return `null`, indicating that no valid value can be found.public String getContextText()
public void setContextText(String ContextText)
ContextText
- Returns the context text.
Note: This field may return null, indicating that no valid values can be obtained.public String getRequestId()
public void setRequestId(String RequestId)
RequestId
- The unique request ID, which is returned for each request. RequestId is required for locating a problem.Copyright © 2023. All rights reserved.