public class TaskLabel extends AbstractModel
| 构造器和说明 |
|---|
TaskLabel() |
TaskLabel(TaskLabel 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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getLabel()
Get This field is used to return the maliciousness tag in the detection result.
|
Long |
getScore()
Get This field is used to return the confidence under the current tag (Label).
|
String |
getSubLabel()
Get This field is used to return a subtag under the current tag (Lable).
|
String |
getSuggestion()
Get This field is used to return the operation suggestion for the current tag (Label).
|
void |
setLabel(String Label)
Set This field is used to return the maliciousness tag in the detection result.
|
void |
setScore(Long Score)
Set This field is used to return the confidence under the current tag (Label).
|
void |
setSubLabel(String SubLabel)
Set This field is used to return a subtag under the current tag (Lable).
|
void |
setSuggestion(String Suggestion)
Set This field is used to return the operation suggestion for the current tag (Label).
|
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, toJsonStringpublic TaskLabel()
public TaskLabel(TaskLabel source)
public String getLabel()
public void setLabel(String Label)
Label - This field is used to return the maliciousness tag in the detection result.public String getSuggestion()
public void setSuggestion(String Suggestion)
Suggestion - This field is used to return the operation suggestion for the current tag (Label). When you get the determination result, the returned value indicates the operation suggested by the system. We recommend you handle different types of violations and suggestions according to your business needs. public Long getScore()
public void setScore(Long Score)
Score - This field is used to return the confidence under the current tag (Label). Value range: 0 (**the lowest confidence**)–100 (**the highest confidence**), where a higher value indicates that the text is more likely to fall into the category of the current returned tag; for example, *Porn 99* indicates that the text is highly likely to be pornographic, while *Porn 0* indicates that the text is not pornographic.
Note: this field may return null, indicating that no valid values can be obtained.public String getSubLabel()
public void setSubLabel(String SubLabel)
SubLabel - This field is used to return a subtag under the current tag (Lable).
Note: this field may return null, indicating that no valid values can be obtained.Copyright © 2022. All rights reserved.