public class LabelResult extends AbstractModel
Constructor and Description |
---|
LabelResult() |
LabelResult(LabelResult 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 |
---|---|
LabelDetailItem[] |
getDetails()
Get This field is used to return the details of the subtag hit by the categorization model, such as number, hit tag name, and score.
|
String |
getLabel()
Get This field is used to return the maliciousness tag in the detection result.
Returned values: **Normal**: normal; **Porn**: pornographic; **Abuse**: abusive; **Ad**: advertising; **Custom**: custom type of non-compliant content and other offensive, unsafe, or inappropriate types of content. |
String |
getScene()
Get This field is used to return the scenario result recognized by the model, such as advertising, pornographic, and harmful.
|
Long |
getScore()
Get Confidence score of the under the current label.
|
String |
getSubLabel()
Get This field is used to return the detection result for a subtag under the maliciousness tag, such as *Porn-SexBehavior*.
|
String |
getSuggestion()
Get This field is used to return the operation suggestion for the current maliciousness tag.
|
void |
setDetails(LabelDetailItem[] Details)
Set This field is used to return the details of the subtag hit by the categorization model, such as number, hit tag name, and score.
|
void |
setLabel(String Label)
Set This field is used to return the maliciousness tag in the detection result.
Returned values: **Normal**: normal; **Porn**: pornographic; **Abuse**: abusive; **Ad**: advertising; **Custom**: custom type of non-compliant content and other offensive, unsafe, or inappropriate types of content. |
void |
setScene(String Scene)
Set This field is used to return the scenario result recognized by the model, such as advertising, pornographic, and harmful.
|
void |
setScore(Long Score)
Set Confidence score of the under the current label.
|
void |
setSubLabel(String SubLabel)
Set This field is used to return the detection result for a subtag under the maliciousness tag, such as *Porn-SexBehavior*.
|
void |
setSuggestion(String Suggestion)
Set This field is used to return the operation suggestion for the current maliciousness tag.
|
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 LabelResult()
public LabelResult(LabelResult source)
public String getScene()
public void setScene(String Scene)
Scene
- This field is used to return the scenario result recognized by the model, such as advertising, pornographic, and harmful.public String getSuggestion()
public void setSuggestion(String Suggestion)
Suggestion
- This field is used to return the operation suggestion for the current maliciousness tag. 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 String getLabel()
public void setLabel(String Label)
Label
- This field is used to return the maliciousness tag in the detection result.public String getSubLabel()
public void setSubLabel(String SubLabel)
SubLabel
- This field is used to return the detection result for a subtag under the maliciousness tag, such as *Porn-SexBehavior*.public Long getScore()
public void setScore(Long Score)
Score
- Confidence score of the under the current label. Value range: 0 (**the lowest confidence**) to 100 (**the highest confidence**). For example, *Porn 99* indicates that the image is highly likely to be pornographic, while *Porn 0* indicates that the image is not pornographic.public LabelDetailItem[] getDetails()
public void setDetails(LabelDetailItem[] Details)
Details
- This field is used to return the details of the subtag hit by the categorization model, such as number, hit tag name, and score.
Note: this field may return null, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.