public class TextSimilarityRequest extends AbstractModel
Constructor and Description |
---|
TextSimilarityRequest() |
Modifier and Type | Method and Description |
---|---|
String |
getSrcText()
Get 需要与目标句子计算相似度的源句子(仅支持UTF-8格式,不超过500字)
|
String[] |
getTargetText()
Get 需要与源句子计算相似度的一个或多个目标句子(仅支持UTF-8格式,目标句子的数量不超过100个,每个句子不超过500字)
注意:每成功计算1个目标句子与源句子的相似度算1次调用
|
void |
setSrcText(String SrcText)
Set 需要与目标句子计算相似度的源句子(仅支持UTF-8格式,不超过500字)
|
void |
setTargetText(String[] TargetText)
Set 需要与源句子计算相似度的一个或多个目标句子(仅支持UTF-8格式,目标句子的数量不超过100个,每个句子不超过500字)
注意:每成功计算1个目标句子与源句子的相似度算1次调用
|
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 String getSrcText()
public void setSrcText(String SrcText)
SrcText
- 需要与目标句子计算相似度的源句子(仅支持UTF-8格式,不超过500字)public String[] getTargetText()
public void setTargetText(String[] TargetText)
TargetText
- 需要与源句子计算相似度的一个或多个目标句子(仅支持UTF-8格式,目标句子的数量不超过100个,每个句子不超过500字)
注意:每成功计算1个目标句子与源句子的相似度算1次调用Copyright © 2020. All rights reserved.