public class DetailResults extends AbstractModel
skipSign
Constructor and Description |
---|
DetailResults() |
DetailResults(DetailResults 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[] |
getKeywords()
Get Returns the information of keywords hit in the text.
|
String |
getLabel()
Get Result of the moderation.
|
String |
getLibId()
Get This field is **only valid when `Label` is `Custom`.
|
String |
getLibName()
Get This field is **only valid when `Label` is `Custom` (custom keyword)`.
|
Long |
getLibType()
Get It indicates the library type corresponding with the keyword.
|
Long |
getScore()
Get This field indicates the convincing level of the `Label`, ranging from `0` (lowest) to `100` (highest).
|
String |
getSubLabel()
Get The field returns the second-level labels under the current label.
|
String |
getSuggestion()
Get Recommended follow-up action.
|
Tag[] |
getTags()
Get Returns the keywords, label, sub-label and the score.
|
void |
setKeywords(String[] Keywords)
Set Returns the information of keywords hit in the text.
|
void |
setLabel(String Label)
Set Result of the moderation.
|
void |
setLibId(String LibId)
Set This field is **only valid when `Label` is `Custom`.
|
void |
setLibName(String LibName)
Set This field is **only valid when `Label` is `Custom` (custom keyword)`.
|
void |
setLibType(Long LibType)
Set It indicates the library type corresponding with the keyword.
|
void |
setScore(Long Score)
Set This field indicates the convincing level of the `Label`, ranging from `0` (lowest) to `100` (highest).
|
void |
setSubLabel(String SubLabel)
Set The field returns the second-level labels under the current label.
|
void |
setSuggestion(String Suggestion)
Set Recommended follow-up action.
|
void |
setTags(Tag[] Tags)
Set Returns the keywords, label, sub-label and the score.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, getSkipSign, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public DetailResults()
public DetailResults(DetailResults source)
public String getLabel()
public void setLabel(String Label)
Label
- Result of the moderation. public String getSuggestion()
public void setSuggestion(String Suggestion)
Suggestion
- Recommended follow-up action. public String[] getKeywords()
public void setKeywords(String[] Keywords)
Keywords
- Returns the information of keywords hit in the text. When no value is returned and `Score` is not empty, it means the `Label` is determined by the semantic-based detection model.
Note: This field may return null, indicating that no valid values can be obtained.public Long getScore()
public void setScore(Long Score)
Score
- This field indicates the convincing level of the `Label`, ranging from `0` (lowest) to `100` (highest).
Note: This field may return `null`, indicating that no valid value can be found.public Long getLibType()
public void setLibType(Long LibType)
LibType
- It indicates the library type corresponding with the keyword. Valid values: `1` (blocklist/allowlist library) and `2` (custom keyword library). If no custom keyword library is configured, the default value is 1.
Note: This field may return `null`, indicating that no valid value can be found.public String getLibId()
public void setLibId(String LibId)
LibId
- This field is **only valid when `Label` is `Custom`. It returns the custom library ID to facilitate the library management and configuration.
Note: This field may return `null`, indicating that no valid value can be found.public String getLibName()
public void setLibName(String LibName)
LibName
- This field is **only valid when `Label` is `Custom` (custom keyword)`. It returns the custom library name to facilitate the library management and configuration.
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 Tag[] getTags()
public void setTags(Tag[] Tags)
Tags
- Returns the keywords, label, sub-label and the score.
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.