public class AudioResultDetailTextResult extends AbstractModel
Constructor and Description |
---|
AudioResultDetailTextResult() |
AudioResultDetailTextResult(AudioResultDetailTextResult 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 This field is used to return the keyword information hit by the text content recognized with ASR and indicate the specific cause of content non-compliance (such as "Friend me on WeChat").
|
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 |
getLibId()
Get This field is **valid only when `Label` is `Custom` (custom keyword)**.
|
String |
getLibName()
Get This field is **valid only when `Label` is `Custom` (custom keyword)**.
|
Long |
getLibType()
Get This field is used to return the dictionary type of a custom keyword.
|
Long |
getScore()
Get This field is used to return the confidence under the current tag.
|
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.
|
void |
setKeywords(String[] Keywords)
Set This field is used to return the keyword information hit by the text content recognized with ASR and indicate the specific cause of content non-compliance (such as "Friend me on WeChat").
|
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 |
setLibId(String LibId)
Set This field is **valid only when `Label` is `Custom` (custom keyword)**.
|
void |
setLibName(String LibName)
Set This field is **valid only when `Label` is `Custom` (custom keyword)**.
|
void |
setLibType(Long LibType)
Set This field is used to return the dictionary type of a custom keyword.
|
void |
setScore(Long Score)
Set This field is used to return the confidence under the current tag.
|
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.
|
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 AudioResultDetailTextResult()
public AudioResultDetailTextResult(AudioResultDetailTextResult 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[] getKeywords()
public void setKeywords(String[] Keywords)
Keywords
- This field is used to return the keyword information hit by the text content recognized with ASR and indicate the specific cause of content non-compliance (such as "Friend me on WeChat"). This parameter may have multiple returned values representing multiple hit keywords. If the returned value is empty, but `Score` is not empty, the maliciousness tag (Label) that corresponds to the recognition result derives from the returned value determined by the semantic model.
Note: This field may return null, indicating that no valid values can be obtained.public String getLibId()
public void setLibId(String LibId)
LibId
- This field is **valid only when `Label` is `Custom` (custom keyword)**. It is used to return the ID of the custom library for easier custom library management and configuration.
Note: This field may return null, indicating that no valid values can be obtained.public String getLibName()
public void setLibName(String LibName)
LibName
- This field is **valid only when `Label` is `Custom` (custom keyword)**. It is used to return the name of the custom library for easier custom library management and configuration.
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 is used to return the confidence under the current tag. 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.
Note: This field may return null, indicating that no valid values can be obtained.public Long getLibType()
public void setLibType(Long LibType)
LibType
- This field is used to return the dictionary type of a custom keyword. Valid values: **1** (blocklist/allowlist), **2** (custom keyword dictionary). If no custom keyword dictionary is configured, the default value will be 1 (blocklist/allowlist).
Note: This field may return null, indicating that no valid values can be obtained.public String getSuggestion()
public void setSuggestion(String Suggestion)
Suggestion
- This field is used to return the operation suggestion. When you get the determination result, the returned value indicates the suggested operation.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 © 2023. All rights reserved.