
com.tencentcloudapi.tcex.v20200727.models.AlgorithmResult Maven / Gradle / Ivy
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.tcex.v20200727.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class AlgorithmResult extends AbstractModel{
/**
* 算法ID
*/
@SerializedName("AlgoId")
@Expose
private String AlgoId;
/**
* 算法名称
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("AlgoName")
@Expose
private String AlgoName;
/**
* 算法返回的结果。
- 当算法类型为“OCR(1)”时,结果为文本字符串
- 当算法类型为“文本分类(2)”时,结果字符串为json对象数组:
Class:分类结果
Confidence:置信度
- 算法类型为“情感分析(3)”时,结果字符串为json对象:
Positive:正面情感概率
Negative:负面情感概率
Neutral:中性情感概率
- 当算法类型为“合同要素抽取(4)”时,结果字符串为json对象数组:
NodeName:一级要素名称
ItemName:二级要素名称
Content:要素文本内容
- 当算法类型为“实体识别(5)”时,结果字符串为json对象数组:
- Entity:实体类型
- Content:实体文本内容
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("Result")
@Expose
private String Result;
/**
* 算法调用错误信息
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("Error")
@Expose
private String Error;
/**
* 算法类型:
1:OCR算法
2:文本分类算法
3:情感分析算法
4:合同要素抽取算法
5、实体识别算法
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("AlgoType")
@Expose
private Long AlgoType;
/**
* Get 算法ID
* @return AlgoId 算法ID
*/
public String getAlgoId() {
return this.AlgoId;
}
/**
* Set 算法ID
* @param AlgoId 算法ID
*/
public void setAlgoId(String AlgoId) {
this.AlgoId = AlgoId;
}
/**
* Get 算法名称
注意:此字段可能返回 null,表示取不到有效值。
* @return AlgoName 算法名称
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getAlgoName() {
return this.AlgoName;
}
/**
* Set 算法名称
注意:此字段可能返回 null,表示取不到有效值。
* @param AlgoName 算法名称
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setAlgoName(String AlgoName) {
this.AlgoName = AlgoName;
}
/**
* Get 算法返回的结果。
- 当算法类型为“OCR(1)”时,结果为文本字符串
- 当算法类型为“文本分类(2)”时,结果字符串为json对象数组:
Class:分类结果
Confidence:置信度
- 算法类型为“情感分析(3)”时,结果字符串为json对象:
Positive:正面情感概率
Negative:负面情感概率
Neutral:中性情感概率
- 当算法类型为“合同要素抽取(4)”时,结果字符串为json对象数组:
NodeName:一级要素名称
ItemName:二级要素名称
Content:要素文本内容
- 当算法类型为“实体识别(5)”时,结果字符串为json对象数组:
- Entity:实体类型
- Content:实体文本内容
注意:此字段可能返回 null,表示取不到有效值。
* @return Result 算法返回的结果。
- 当算法类型为“OCR(1)”时,结果为文本字符串
- 当算法类型为“文本分类(2)”时,结果字符串为json对象数组:
Class:分类结果
Confidence:置信度
- 算法类型为“情感分析(3)”时,结果字符串为json对象:
Positive:正面情感概率
Negative:负面情感概率
Neutral:中性情感概率
- 当算法类型为“合同要素抽取(4)”时,结果字符串为json对象数组:
NodeName:一级要素名称
ItemName:二级要素名称
Content:要素文本内容
- 当算法类型为“实体识别(5)”时,结果字符串为json对象数组:
- Entity:实体类型
- Content:实体文本内容
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getResult() {
return this.Result;
}
/**
* Set 算法返回的结果。
- 当算法类型为“OCR(1)”时,结果为文本字符串
- 当算法类型为“文本分类(2)”时,结果字符串为json对象数组:
Class:分类结果
Confidence:置信度
- 算法类型为“情感分析(3)”时,结果字符串为json对象:
Positive:正面情感概率
Negative:负面情感概率
Neutral:中性情感概率
- 当算法类型为“合同要素抽取(4)”时,结果字符串为json对象数组:
NodeName:一级要素名称
ItemName:二级要素名称
Content:要素文本内容
- 当算法类型为“实体识别(5)”时,结果字符串为json对象数组:
- Entity:实体类型
- Content:实体文本内容
注意:此字段可能返回 null,表示取不到有效值。
* @param Result 算法返回的结果。
- 当算法类型为“OCR(1)”时,结果为文本字符串
- 当算法类型为“文本分类(2)”时,结果字符串为json对象数组:
Class:分类结果
Confidence:置信度
- 算法类型为“情感分析(3)”时,结果字符串为json对象:
Positive:正面情感概率
Negative:负面情感概率
Neutral:中性情感概率
- 当算法类型为“合同要素抽取(4)”时,结果字符串为json对象数组:
NodeName:一级要素名称
ItemName:二级要素名称
Content:要素文本内容
- 当算法类型为“实体识别(5)”时,结果字符串为json对象数组:
- Entity:实体类型
- Content:实体文本内容
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setResult(String Result) {
this.Result = Result;
}
/**
* Get 算法调用错误信息
注意:此字段可能返回 null,表示取不到有效值。
* @return Error 算法调用错误信息
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getError() {
return this.Error;
}
/**
* Set 算法调用错误信息
注意:此字段可能返回 null,表示取不到有效值。
* @param Error 算法调用错误信息
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setError(String Error) {
this.Error = Error;
}
/**
* Get 算法类型:
1:OCR算法
2:文本分类算法
3:情感分析算法
4:合同要素抽取算法
5、实体识别算法
注意:此字段可能返回 null,表示取不到有效值。
* @return AlgoType 算法类型:
1:OCR算法
2:文本分类算法
3:情感分析算法
4:合同要素抽取算法
5、实体识别算法
注意:此字段可能返回 null,表示取不到有效值。
*/
public Long getAlgoType() {
return this.AlgoType;
}
/**
* Set 算法类型:
1:OCR算法
2:文本分类算法
3:情感分析算法
4:合同要素抽取算法
5、实体识别算法
注意:此字段可能返回 null,表示取不到有效值。
* @param AlgoType 算法类型:
1:OCR算法
2:文本分类算法
3:情感分析算法
4:合同要素抽取算法
5、实体识别算法
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setAlgoType(Long AlgoType) {
this.AlgoType = AlgoType;
}
public AlgorithmResult() {
}
/**
* 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.
*/
public AlgorithmResult(AlgorithmResult source) {
if (source.AlgoId != null) {
this.AlgoId = new String(source.AlgoId);
}
if (source.AlgoName != null) {
this.AlgoName = new String(source.AlgoName);
}
if (source.Result != null) {
this.Result = new String(source.Result);
}
if (source.Error != null) {
this.Error = new String(source.Error);
}
if (source.AlgoType != null) {
this.AlgoType = new Long(source.AlgoType);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "AlgoId", this.AlgoId);
this.setParamSimple(map, prefix + "AlgoName", this.AlgoName);
this.setParamSimple(map, prefix + "Result", this.Result);
this.setParamSimple(map, prefix + "Error", this.Error);
this.setParamSimple(map, prefix + "AlgoType", this.AlgoType);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy