Class SentencePair
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.nlp.v20190408.models.SentencePair
-
public class SentencePair extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description SentencePair()SentencePair(SentencePair 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 StringgetSourceText()Get 需要与目标句子计算相似度的源句子。(仅支持UTF-8格式,不超过500字符)StringgetTargetText()Get 目标句子。(仅支持UTF-8格式,不超过500字符)voidsetSourceText(String SourceText)Set 需要与目标句子计算相似度的源句子。(仅支持UTF-8格式,不超过500字符)voidsetTargetText(String TargetText)Set 目标句子。(仅支持UTF-8格式,不超过500字符)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
-
SentencePair
public SentencePair()
-
SentencePair
public SentencePair(SentencePair 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
-
getSourceText
public String getSourceText()
Get 需要与目标句子计算相似度的源句子。(仅支持UTF-8格式,不超过500字符)- Returns:
- SourceText 需要与目标句子计算相似度的源句子。(仅支持UTF-8格式,不超过500字符)
-
setSourceText
public void setSourceText(String SourceText)
Set 需要与目标句子计算相似度的源句子。(仅支持UTF-8格式,不超过500字符)- Parameters:
SourceText- 需要与目标句子计算相似度的源句子。(仅支持UTF-8格式,不超过500字符)
-
getTargetText
public String getTargetText()
Get 目标句子。(仅支持UTF-8格式,不超过500字符)- Returns:
- TargetText 目标句子。(仅支持UTF-8格式,不超过500字符)
-
setTargetText
public void setTargetText(String TargetText)
Set 目标句子。(仅支持UTF-8格式,不超过500字符)- Parameters:
TargetText- 目标句子。(仅支持UTF-8格式,不超过500字符)
-
-