public class SentencePair extends AbstractModel
header, skipSign
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
String |
getSourceText()
Get 需要与目标句子计算相似度的源句子。(仅支持UTF-8格式,不超过500字符)
|
String |
getTargetText()
Get 目标句子。(仅支持UTF-8格式,不超过500字符)
|
void |
setSourceText(String SourceText)
Set 需要与目标句子计算相似度的源句子。(仅支持UTF-8格式,不超过500字符)
|
void |
setTargetText(String TargetText)
Set 目标句子。(仅支持UTF-8格式,不超过500字符)
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public SentencePair()
public SentencePair(SentencePair source)
public String getSourceText()
public void setSourceText(String SourceText)
SourceText
- 需要与目标句子计算相似度的源句子。(仅支持UTF-8格式,不超过500字符)public String getTargetText()
public void setTargetText(String TargetText)
TargetText
- 目标句子。(仅支持UTF-8格式,不超过500字符)Copyright © 2024. All rights reserved.