Class CorrectionItem
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.nlp.v20190408.models.CorrectionItem
-
public class CorrectionItem extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description CorrectionItem()CorrectionItem(CorrectionItem 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LonggetBeginOffset()Get 错误的起始位置,从0开始。LonggetConfidence()Get 纠错信息置信度。0:error;1:warning;error的置信度更高。(仅供参考)LonggetCorrectionType()Get 纠错类型。0:替换;1:插入;2:删除。String[]getCorrectWord()Get 纠错结果,当为删除类错误时,结果为null。 注意:此字段可能返回 null,表示取不到有效值。StringgetDescriptionEn()Get 纠错信息英文描述。 注意:此字段可能返回 null,表示取不到有效值。StringgetDescriptionZh()Get 纠错信息中文描述。 注意:此字段可能返回 null,表示取不到有效值。LonggetLen()Get 错误内容长度。LonggetOrder()Get 纠错句子的序号。StringgetWord()Get 错误内容。voidsetBeginOffset(Long BeginOffset)Set 错误的起始位置,从0开始。voidsetConfidence(Long Confidence)Set 纠错信息置信度。0:error;1:warning;error的置信度更高。(仅供参考)voidsetCorrectionType(Long CorrectionType)Set 纠错类型。0:替换;1:插入;2:删除。voidsetCorrectWord(String[] CorrectWord)Set 纠错结果,当为删除类错误时,结果为null。 注意:此字段可能返回 null,表示取不到有效值。voidsetDescriptionEn(String DescriptionEn)Set 纠错信息英文描述。 注意:此字段可能返回 null,表示取不到有效值。voidsetDescriptionZh(String DescriptionZh)Set 纠错信息中文描述。 注意:此字段可能返回 null,表示取不到有效值。voidsetLen(Long Len)Set 错误内容长度。voidsetOrder(Long Order)Set 纠错句子的序号。voidsetWord(String Word)Set 错误内容。voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
CorrectionItem
public CorrectionItem()
-
CorrectionItem
public CorrectionItem(CorrectionItem 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.
-
-
Method Detail
-
getOrder
public Long getOrder()
Get 纠错句子的序号。- Returns:
- Order 纠错句子的序号。
-
setOrder
public void setOrder(Long Order)
Set 纠错句子的序号。- Parameters:
Order- 纠错句子的序号。
-
getBeginOffset
public Long getBeginOffset()
Get 错误的起始位置,从0开始。- Returns:
- BeginOffset 错误的起始位置,从0开始。
-
setBeginOffset
public void setBeginOffset(Long BeginOffset)
Set 错误的起始位置,从0开始。- Parameters:
BeginOffset- 错误的起始位置,从0开始。
-
getLen
public Long getLen()
Get 错误内容长度。- Returns:
- Len 错误内容长度。
-
setLen
public void setLen(Long Len)
Set 错误内容长度。- Parameters:
Len- 错误内容长度。
-
getWord
public String getWord()
Get 错误内容。- Returns:
- Word 错误内容。
-
setWord
public void setWord(String Word)
Set 错误内容。- Parameters:
Word- 错误内容。
-
getCorrectWord
public String[] getCorrectWord()
Get 纠错结果,当为删除类错误时,结果为null。 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- CorrectWord 纠错结果,当为删除类错误时,结果为null。 注意:此字段可能返回 null,表示取不到有效值。
-
setCorrectWord
public void setCorrectWord(String[] CorrectWord)
Set 纠错结果,当为删除类错误时,结果为null。 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
CorrectWord- 纠错结果,当为删除类错误时,结果为null。 注意:此字段可能返回 null,表示取不到有效值。
-
getCorrectionType
public Long getCorrectionType()
Get 纠错类型。0:替换;1:插入;2:删除。- Returns:
- CorrectionType 纠错类型。0:替换;1:插入;2:删除。
-
setCorrectionType
public void setCorrectionType(Long CorrectionType)
Set 纠错类型。0:替换;1:插入;2:删除。- Parameters:
CorrectionType- 纠错类型。0:替换;1:插入;2:删除。
-
getConfidence
public Long getConfidence()
Get 纠错信息置信度。0:error;1:warning;error的置信度更高。(仅供参考)- Returns:
- Confidence 纠错信息置信度。0:error;1:warning;error的置信度更高。(仅供参考)
-
setConfidence
public void setConfidence(Long Confidence)
Set 纠错信息置信度。0:error;1:warning;error的置信度更高。(仅供参考)- Parameters:
Confidence- 纠错信息置信度。0:error;1:warning;error的置信度更高。(仅供参考)
-
getDescriptionZh
public String getDescriptionZh()
Get 纠错信息中文描述。 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- DescriptionZh 纠错信息中文描述。 注意:此字段可能返回 null,表示取不到有效值。
-
setDescriptionZh
public void setDescriptionZh(String DescriptionZh)
Set 纠错信息中文描述。 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
DescriptionZh- 纠错信息中文描述。 注意:此字段可能返回 null,表示取不到有效值。
-
getDescriptionEn
public String getDescriptionEn()
Get 纠错信息英文描述。 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- DescriptionEn 纠错信息英文描述。 注意:此字段可能返回 null,表示取不到有效值。
-
setDescriptionEn
public void setDescriptionEn(String DescriptionEn)
Set 纠错信息英文描述。 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
DescriptionEn- 纠错信息英文描述。 注意:此字段可能返回 null,表示取不到有效值。
-
-