首次推送
This commit is contained in:
222
TencentCloud/Ecc/V20181213/EccClient.cs
Normal file
222
TencentCloud/Ecc/V20181213/EccClient.cs
Normal file
@@ -0,0 +1,222 @@
|
||||
/*
|
||||
* Copyright (c) 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.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Ecc.V20181213
|
||||
{
|
||||
|
||||
using Newtonsoft.Json;
|
||||
using System.Threading.Tasks;
|
||||
using TencentCloud.Common;
|
||||
using TencentCloud.Common.Profile;
|
||||
using TencentCloud.Ecc.V20181213.Models;
|
||||
|
||||
public class EccClient : AbstractClient{
|
||||
|
||||
private const string endpoint = "ecc.tencentcloudapi.com";
|
||||
private const string version = "2018-12-13";
|
||||
|
||||
/// <summary>
|
||||
/// Client constructor.
|
||||
/// </summary>
|
||||
/// <param name="credential">Credentials.</param>
|
||||
/// <param name="region">Region name, such as "ap-guangzhou".</param>
|
||||
public EccClient(Credential credential, string region)
|
||||
: this(credential, region, new ClientProfile())
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Client Constructor.
|
||||
/// </summary>
|
||||
/// <param name="credential">Credentials.</param>
|
||||
/// <param name="region">Region name, such as "ap-guangzhou".</param>
|
||||
/// <param name="profile">Client profiles.</param>
|
||||
public EccClient(Credential credential, string region, ClientProfile profile)
|
||||
: base(endpoint, version, credential, region, profile)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// https://ecc.tencentcloudapi.com/?Action=CorrectMultiImage
|
||||
/// 多图像识别批改接口
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="CorrectMultiImageRequest"/></param>
|
||||
/// <returns><see cref="CorrectMultiImageResponse"/></returns>
|
||||
public async Task<CorrectMultiImageResponse> CorrectMultiImage(CorrectMultiImageRequest req)
|
||||
{
|
||||
JsonResponseModel<CorrectMultiImageResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "CorrectMultiImage");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<CorrectMultiImageResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// https://ecc.tencentcloudapi.com/?Action=CorrectMultiImage
|
||||
/// 多图像识别批改接口
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="CorrectMultiImageRequest"/></param>
|
||||
/// <returns><see cref="CorrectMultiImageResponse"/></returns>
|
||||
public CorrectMultiImageResponse CorrectMultiImageSync(CorrectMultiImageRequest req)
|
||||
{
|
||||
JsonResponseModel<CorrectMultiImageResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "CorrectMultiImage");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<CorrectMultiImageResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 异步任务结果查询接口
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DescribeTaskRequest"/></param>
|
||||
/// <returns><see cref="DescribeTaskResponse"/></returns>
|
||||
public async Task<DescribeTaskResponse> DescribeTask(DescribeTaskRequest req)
|
||||
{
|
||||
JsonResponseModel<DescribeTaskResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "DescribeTask");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeTaskResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 异步任务结果查询接口
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DescribeTaskRequest"/></param>
|
||||
/// <returns><see cref="DescribeTaskResponse"/></returns>
|
||||
public DescribeTaskResponse DescribeTaskSync(DescribeTaskRequest req)
|
||||
{
|
||||
JsonResponseModel<DescribeTaskResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "DescribeTask");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeTaskResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 接口请求域名: ecc.tencentcloudapi.com
|
||||
/// 纯文本英语作文批改
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="ECCRequest"/></param>
|
||||
/// <returns><see cref="ECCResponse"/></returns>
|
||||
public async Task<ECCResponse> ECC(ECCRequest req)
|
||||
{
|
||||
JsonResponseModel<ECCResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "ECC");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<ECCResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 接口请求域名: ecc.tencentcloudapi.com
|
||||
/// 纯文本英语作文批改
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="ECCRequest"/></param>
|
||||
/// <returns><see cref="ECCResponse"/></returns>
|
||||
public ECCResponse ECCSync(ECCRequest req)
|
||||
{
|
||||
JsonResponseModel<ECCResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "ECC");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<ECCResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// https://ecc.tencentcloudapi.com/?Action=EHOCR
|
||||
/// 图像识别批改接口
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="EHOCRRequest"/></param>
|
||||
/// <returns><see cref="EHOCRResponse"/></returns>
|
||||
public async Task<EHOCRResponse> EHOCR(EHOCRRequest req)
|
||||
{
|
||||
JsonResponseModel<EHOCRResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "EHOCR");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<EHOCRResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// https://ecc.tencentcloudapi.com/?Action=EHOCR
|
||||
/// 图像识别批改接口
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="EHOCRRequest"/></param>
|
||||
/// <returns><see cref="EHOCRResponse"/></returns>
|
||||
public EHOCRResponse EHOCRSync(EHOCRRequest req)
|
||||
{
|
||||
JsonResponseModel<EHOCRResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "EHOCR");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<EHOCRResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
57
TencentCloud/Ecc/V20181213/Models/Aspect.cs
Normal file
57
TencentCloud/Ecc/V20181213/Models/Aspect.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright (c) 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.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Ecc.V20181213.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class Aspect : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 维度名字
|
||||
/// </summary>
|
||||
[JsonProperty("Name")]
|
||||
public string Name{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 维度得分
|
||||
/// </summary>
|
||||
[JsonProperty("Score")]
|
||||
public float? Score{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 维度分数占比
|
||||
/// </summary>
|
||||
[JsonProperty("Percentage")]
|
||||
public float? Percentage{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Name", this.Name);
|
||||
this.SetParamSimple(map, prefix + "Score", this.Score);
|
||||
this.SetParamSimple(map, prefix + "Percentage", this.Percentage);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
67
TencentCloud/Ecc/V20181213/Models/CompostionContext.cs
Normal file
67
TencentCloud/Ecc/V20181213/Models/CompostionContext.cs
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* Copyright (c) 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.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Ecc.V20181213.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class CompostionContext : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 作文内容
|
||||
/// </summary>
|
||||
[JsonProperty("Content")]
|
||||
public string Content{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 批改结果
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("CorrectData")]
|
||||
public CorrectData CorrectData{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务 id,用于查询接口
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("TaskId")]
|
||||
public string TaskId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 图像识别唯一标识,一次识别一个 SessionId
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("SessionId")]
|
||||
public string SessionId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Content", this.Content);
|
||||
this.SetParamObj(map, prefix + "CorrectData.", this.CorrectData);
|
||||
this.SetParamSimple(map, prefix + "TaskId", this.TaskId);
|
||||
this.SetParamSimple(map, prefix + "SessionId", this.SessionId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
64
TencentCloud/Ecc/V20181213/Models/CorrectData.cs
Normal file
64
TencentCloud/Ecc/V20181213/Models/CorrectData.cs
Normal file
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright (c) 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.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Ecc.V20181213.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class CorrectData : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 总得分
|
||||
/// </summary>
|
||||
[JsonProperty("Score")]
|
||||
public float? Score{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 各项得分详情
|
||||
/// </summary>
|
||||
[JsonProperty("ScoreCat")]
|
||||
public ScoreCategory ScoreCat{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 综合评价
|
||||
/// </summary>
|
||||
[JsonProperty("Comment")]
|
||||
public string Comment{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 句子点评
|
||||
/// </summary>
|
||||
[JsonProperty("SentenceComments")]
|
||||
public SentenceCom[] SentenceComments{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Score", this.Score);
|
||||
this.SetParamObj(map, prefix + "ScoreCat.", this.ScoreCat);
|
||||
this.SetParamSimple(map, prefix + "Comment", this.Comment);
|
||||
this.SetParamArrayObj(map, prefix + "SentenceComments.", this.SentenceComments);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
113
TencentCloud/Ecc/V20181213/Models/CorrectMultiImageRequest.cs
Normal file
113
TencentCloud/Ecc/V20181213/Models/CorrectMultiImageRequest.cs
Normal file
@@ -0,0 +1,113 @@
|
||||
/*
|
||||
* Copyright (c) 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.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Ecc.V20181213.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class CorrectMultiImageRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 图片的url链接或base64数据。每张图片数据作为数组的一个元素,数组个数与图片个数保持一致。存放类别依据InputType而定,url与base64编码不能混合使用。
|
||||
/// </summary>
|
||||
[JsonProperty("Image")]
|
||||
public string[] Image{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 输出图片类型,0 表示 Image 字段是图片所在的 url,1 表示 Image 字段是 base64 编码后的图像数据。
|
||||
/// </summary>
|
||||
[JsonProperty("InputType")]
|
||||
public long? InputType{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 业务应用ID,与账号应用APPID无关,是用来方便客户管理服务的参数。
|
||||
/// </summary>
|
||||
[JsonProperty("EccAppid")]
|
||||
public string EccAppid{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 图像识别唯一标识,一次识别一个 SessionId,使用识别功能时 SessionId 可用于使用文本批改接口,此时按图像批改价格收费;如使用文本批改接口时没有传入 SessionId,则需要收取文本批改的费用。
|
||||
/// </summary>
|
||||
[JsonProperty("SessionId")]
|
||||
public string SessionId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 服务类型,0:“多图像识别”,只返回识别结果;1:“多图像批改”,同时返回识别结果与批改结果。默认为 0。
|
||||
/// </summary>
|
||||
[JsonProperty("ServerType")]
|
||||
public long? ServerType{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 作文题目,可选参数
|
||||
/// </summary>
|
||||
[JsonProperty("Title")]
|
||||
public string Title{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 年级标准, 默认以 cet4 为标准,取值与意义如下:elementary 小学,grade7 grade8 grade9分别对应初一,初二,初三。 grade10 grade11 grade12 分别对应高一,高二,高三,以及 cet4 和 cet6 分别表示 英语4级和6级。
|
||||
/// </summary>
|
||||
[JsonProperty("Grade")]
|
||||
public string Grade{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 作文提纲,可选参数,作文的写作要求。
|
||||
/// </summary>
|
||||
[JsonProperty("Requirement")]
|
||||
public string Requirement{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 范文标题,可选参数,本接口可以依据提供的范文对作文进行评分。
|
||||
/// </summary>
|
||||
[JsonProperty("ModelTitle")]
|
||||
public string ModelTitle{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 范文内容,可选参数,同上,范文的正文部分。
|
||||
/// </summary>
|
||||
[JsonProperty("ModelContent")]
|
||||
public string ModelContent{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 异步模式标识,0:同步模式,1:异步模式。默认为同步模式
|
||||
/// </summary>
|
||||
[JsonProperty("IsAsync")]
|
||||
public long? IsAsync{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamArraySimple(map, prefix + "Image.", this.Image);
|
||||
this.SetParamSimple(map, prefix + "InputType", this.InputType);
|
||||
this.SetParamSimple(map, prefix + "EccAppid", this.EccAppid);
|
||||
this.SetParamSimple(map, prefix + "SessionId", this.SessionId);
|
||||
this.SetParamSimple(map, prefix + "ServerType", this.ServerType);
|
||||
this.SetParamSimple(map, prefix + "Title", this.Title);
|
||||
this.SetParamSimple(map, prefix + "Grade", this.Grade);
|
||||
this.SetParamSimple(map, prefix + "Requirement", this.Requirement);
|
||||
this.SetParamSimple(map, prefix + "ModelTitle", this.ModelTitle);
|
||||
this.SetParamSimple(map, prefix + "ModelContent", this.ModelContent);
|
||||
this.SetParamSimple(map, prefix + "IsAsync", this.IsAsync);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Copyright (c) 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.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Ecc.V20181213.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class CorrectMultiImageResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 接口返回数据
|
||||
/// </summary>
|
||||
[JsonProperty("Data")]
|
||||
public CompostionContext Data{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamObj(map, prefix + "Data.", this.Data);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
50
TencentCloud/Ecc/V20181213/Models/DescribeTaskRequest.cs
Normal file
50
TencentCloud/Ecc/V20181213/Models/DescribeTaskRequest.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Copyright (c) 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.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Ecc.V20181213.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DescribeTaskRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 任务 ID
|
||||
/// </summary>
|
||||
[JsonProperty("TaskId")]
|
||||
public string TaskId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 业务应用ID,与账号应用APPID无关,是用来方便客户管理服务的参数(暂时无需传入)。
|
||||
/// </summary>
|
||||
[JsonProperty("EccAppid")]
|
||||
public string EccAppid{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "TaskId", this.TaskId);
|
||||
this.SetParamSimple(map, prefix + "EccAppid", this.EccAppid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
66
TencentCloud/Ecc/V20181213/Models/DescribeTaskResponse.cs
Normal file
66
TencentCloud/Ecc/V20181213/Models/DescribeTaskResponse.cs
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright (c) 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.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Ecc.V20181213.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DescribeTaskResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 作文识别文本
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("Content")]
|
||||
public string Content{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 整体的批改结果
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("CorrectData")]
|
||||
public CorrectData CorrectData{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务状态,“Progressing”: 处理中(此时无结果返回)、“Finished”: 处理完成
|
||||
/// </summary>
|
||||
[JsonProperty("Status")]
|
||||
public string Status{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Content", this.Content);
|
||||
this.SetParamObj(map, prefix + "CorrectData.", this.CorrectData);
|
||||
this.SetParamSimple(map, prefix + "Status", this.Status);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
99
TencentCloud/Ecc/V20181213/Models/ECCRequest.cs
Normal file
99
TencentCloud/Ecc/V20181213/Models/ECCRequest.cs
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright (c) 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.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Ecc.V20181213.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class ECCRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 作文文本,必填
|
||||
/// </summary>
|
||||
[JsonProperty("Content")]
|
||||
public string Content{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 作文题目,可选参数
|
||||
/// </summary>
|
||||
[JsonProperty("Title")]
|
||||
public string Title{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 年级标准, 默认以cet4为标准,取值与意义如下:elementary 小学,grade7 grade8 grade9分别对应初一,初二,初三。 grade10 grade11 grade12 分别对应高一,高二,高三,以及cet4和cet6 分别表示 英语4级和6级。
|
||||
/// </summary>
|
||||
[JsonProperty("Grade")]
|
||||
public string Grade{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 作文提纲,可选参数,作文的写作要求。
|
||||
/// </summary>
|
||||
[JsonProperty("Requirement")]
|
||||
public string Requirement{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 范文标题,可选参数,本接口可以依据提供的范文对作文进行评分。
|
||||
/// </summary>
|
||||
[JsonProperty("ModelTitle")]
|
||||
public string ModelTitle{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 范文内容,可选参数,同上,范文的正文部分。
|
||||
/// </summary>
|
||||
[JsonProperty("ModelContent")]
|
||||
public string ModelContent{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 业务应用ID,与账号应用APPID无关,是用来方便客户管理服务的参数(暂时无需传入)。
|
||||
/// </summary>
|
||||
[JsonProperty("EccAppid")]
|
||||
public string EccAppid{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 异步模式标识,0:同步模式,1:异步模式,默认为同步模式
|
||||
/// </summary>
|
||||
[JsonProperty("IsAsync")]
|
||||
public long? IsAsync{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 图像识别唯一标识,一次识别一个 SessionId。当传入此前识别接口使用过的 SessionId,则本次批改按图像批改价格收费;如使用了识别接口且本次没有传入 SessionId,则需要加取文本批改的费用;如果直接使用文本批改接口,则只收取文本批改的费用
|
||||
/// </summary>
|
||||
[JsonProperty("SessionId")]
|
||||
public string SessionId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Content", this.Content);
|
||||
this.SetParamSimple(map, prefix + "Title", this.Title);
|
||||
this.SetParamSimple(map, prefix + "Grade", this.Grade);
|
||||
this.SetParamSimple(map, prefix + "Requirement", this.Requirement);
|
||||
this.SetParamSimple(map, prefix + "ModelTitle", this.ModelTitle);
|
||||
this.SetParamSimple(map, prefix + "ModelContent", this.ModelContent);
|
||||
this.SetParamSimple(map, prefix + "EccAppid", this.EccAppid);
|
||||
this.SetParamSimple(map, prefix + "IsAsync", this.IsAsync);
|
||||
this.SetParamSimple(map, prefix + "SessionId", this.SessionId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
59
TencentCloud/Ecc/V20181213/Models/ECCResponse.cs
Normal file
59
TencentCloud/Ecc/V20181213/Models/ECCResponse.cs
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright (c) 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.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Ecc.V20181213.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class ECCResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 整体的批改结果
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("Data")]
|
||||
public CorrectData Data{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务 id,用于查询接口
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("TaskId")]
|
||||
public string TaskId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamObj(map, prefix + "Data.", this.Data);
|
||||
this.SetParamSimple(map, prefix + "TaskId", this.TaskId);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
113
TencentCloud/Ecc/V20181213/Models/EHOCRRequest.cs
Normal file
113
TencentCloud/Ecc/V20181213/Models/EHOCRRequest.cs
Normal file
@@ -0,0 +1,113 @@
|
||||
/*
|
||||
* Copyright (c) 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.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Ecc.V20181213.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class EHOCRRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 图片所在的url或base64编码后的图像数据,依据InputType而定
|
||||
/// </summary>
|
||||
[JsonProperty("Image")]
|
||||
public string Image{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 输出图片类型,0 表示 Image 字段是图片所在的 url,1 表示 Image 字段是 base64 编码后的图像数据
|
||||
/// </summary>
|
||||
[JsonProperty("InputType")]
|
||||
public long? InputType{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 业务应用ID,与账号应用APPID无关,是用来方便客户管理服务的参数(暂时无需传入)。
|
||||
/// </summary>
|
||||
[JsonProperty("EccAppid")]
|
||||
public string EccAppid{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 图像识别唯一标识,一次识别一个 SessionId,使用识别功能时 SessionId 可用于使用文本批改接口,此时按图像批改价格收费;如使用文本批改接口时没有传入 SessionId,则需要收取文本批改的费用
|
||||
/// </summary>
|
||||
[JsonProperty("SessionId")]
|
||||
public string SessionId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 服务类型,0:“图像识别”,只返回识别结果,1:“图像批改”,同时返回识别结果与批改结果。默认为 0
|
||||
/// </summary>
|
||||
[JsonProperty("ServerType")]
|
||||
public long? ServerType{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 作文题目,可选参数
|
||||
/// </summary>
|
||||
[JsonProperty("Title")]
|
||||
public string Title{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 年级标准, 默认以 cet4 为标准,取值与意义如下:elementary 小学,grade7 grade8 grade9分别对应初一,初二,初三。 grade10 grade11 grade12 分别对应高一,高二,高三,以及 cet4 和 cet6 分别表示 英语4级和6级。
|
||||
/// </summary>
|
||||
[JsonProperty("Grade")]
|
||||
public string Grade{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 作文提纲,可选参数,作文的写作要求。
|
||||
/// </summary>
|
||||
[JsonProperty("Requirement")]
|
||||
public string Requirement{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 范文标题,可选参数,本接口可以依据提供的范文对作文进行评分。
|
||||
/// </summary>
|
||||
[JsonProperty("ModelTitle")]
|
||||
public string ModelTitle{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 范文内容,可选参数,同上,范文的正文部分。
|
||||
/// </summary>
|
||||
[JsonProperty("ModelContent")]
|
||||
public string ModelContent{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 异步模式标识,0:同步模式,1:异步模式。默认为同步模式
|
||||
/// </summary>
|
||||
[JsonProperty("IsAsync")]
|
||||
public long? IsAsync{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Image", this.Image);
|
||||
this.SetParamSimple(map, prefix + "InputType", this.InputType);
|
||||
this.SetParamSimple(map, prefix + "EccAppid", this.EccAppid);
|
||||
this.SetParamSimple(map, prefix + "SessionId", this.SessionId);
|
||||
this.SetParamSimple(map, prefix + "ServerType", this.ServerType);
|
||||
this.SetParamSimple(map, prefix + "Title", this.Title);
|
||||
this.SetParamSimple(map, prefix + "Grade", this.Grade);
|
||||
this.SetParamSimple(map, prefix + "Requirement", this.Requirement);
|
||||
this.SetParamSimple(map, prefix + "ModelTitle", this.ModelTitle);
|
||||
this.SetParamSimple(map, prefix + "ModelContent", this.ModelContent);
|
||||
this.SetParamSimple(map, prefix + "IsAsync", this.IsAsync);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
50
TencentCloud/Ecc/V20181213/Models/EHOCRResponse.cs
Normal file
50
TencentCloud/Ecc/V20181213/Models/EHOCRResponse.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Copyright (c) 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.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Ecc.V20181213.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class EHOCRResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 接口返回数据
|
||||
/// </summary>
|
||||
[JsonProperty("Data")]
|
||||
public CompostionContext Data{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamObj(map, prefix + "Data.", this.Data);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
43
TencentCloud/Ecc/V20181213/Models/ErrorCoordinate.cs
Normal file
43
TencentCloud/Ecc/V20181213/Models/ErrorCoordinate.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
* Copyright (c) 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.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Ecc.V20181213.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class ErrorCoordinate : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 维度单词坐标
|
||||
/// </summary>
|
||||
[JsonProperty("Coordinate")]
|
||||
public long?[] Coordinate{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamArraySimple(map, prefix + "Coordinate.", this.Coordinate);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
78
TencentCloud/Ecc/V20181213/Models/ScoreCategory.cs
Normal file
78
TencentCloud/Ecc/V20181213/Models/ScoreCategory.cs
Normal file
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright (c) 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.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Ecc.V20181213.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class ScoreCategory : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 词汇维度
|
||||
/// </summary>
|
||||
[JsonProperty("Words")]
|
||||
public Aspect Words{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 句子维度
|
||||
/// </summary>
|
||||
[JsonProperty("Sentences")]
|
||||
public Aspect Sentences{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 篇章结构维度
|
||||
/// </summary>
|
||||
[JsonProperty("Structure")]
|
||||
public Aspect Structure{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 内容维度
|
||||
/// </summary>
|
||||
[JsonProperty("Content")]
|
||||
public Aspect Content{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 维度得分
|
||||
/// </summary>
|
||||
[JsonProperty("Score")]
|
||||
public float? Score{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 维度分数占比
|
||||
/// </summary>
|
||||
[JsonProperty("Percentage")]
|
||||
public float? Percentage{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamObj(map, prefix + "Words.", this.Words);
|
||||
this.SetParamObj(map, prefix + "Sentences.", this.Sentences);
|
||||
this.SetParamObj(map, prefix + "Structure.", this.Structure);
|
||||
this.SetParamObj(map, prefix + "Content.", this.Content);
|
||||
this.SetParamSimple(map, prefix + "Score", this.Score);
|
||||
this.SetParamSimple(map, prefix + "Percentage", this.Percentage);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
50
TencentCloud/Ecc/V20181213/Models/SentenceCom.cs
Normal file
50
TencentCloud/Ecc/V20181213/Models/SentenceCom.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Copyright (c) 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.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Ecc.V20181213.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class SentenceCom : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 句子错误纠正信息
|
||||
/// </summary>
|
||||
[JsonProperty("Suggestions")]
|
||||
public SentenceSuggest[] Suggestions{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 句子信息
|
||||
/// </summary>
|
||||
[JsonProperty("Sentence")]
|
||||
public SentenceItem Sentence{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamArrayObj(map, prefix + "Suggestions.", this.Suggestions);
|
||||
this.SetParamObj(map, prefix + "Sentence.", this.Sentence);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
57
TencentCloud/Ecc/V20181213/Models/SentenceItem.cs
Normal file
57
TencentCloud/Ecc/V20181213/Models/SentenceItem.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright (c) 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.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Ecc.V20181213.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class SentenceItem : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 英语句子
|
||||
/// </summary>
|
||||
[JsonProperty("Sentence")]
|
||||
public string Sentence{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 段落id
|
||||
/// </summary>
|
||||
[JsonProperty("ParaID")]
|
||||
public long? ParaID{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 句子id
|
||||
/// </summary>
|
||||
[JsonProperty("SentenceID")]
|
||||
public long? SentenceID{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Sentence", this.Sentence);
|
||||
this.SetParamSimple(map, prefix + "ParaID", this.ParaID);
|
||||
this.SetParamSimple(map, prefix + "SentenceID", this.SentenceID);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
85
TencentCloud/Ecc/V20181213/Models/SentenceSuggest.cs
Normal file
85
TencentCloud/Ecc/V20181213/Models/SentenceSuggest.cs
Normal file
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* Copyright (c) 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.
|
||||
*/
|
||||
|
||||
namespace TencentCloud.Ecc.V20181213.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class SentenceSuggest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 类型
|
||||
/// </summary>
|
||||
[JsonProperty("Type")]
|
||||
public string Type{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 错误类型
|
||||
/// </summary>
|
||||
[JsonProperty("ErrorType")]
|
||||
public string ErrorType{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 原始单词
|
||||
/// </summary>
|
||||
[JsonProperty("Origin")]
|
||||
public string Origin{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 替换成 的单词
|
||||
/// </summary>
|
||||
[JsonProperty("Replace")]
|
||||
public string Replace{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 提示信息
|
||||
/// </summary>
|
||||
[JsonProperty("Message")]
|
||||
public string Message{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 维度单词位置,在句子的第几个到第几个单词之间
|
||||
/// </summary>
|
||||
[JsonProperty("ErrorPosition")]
|
||||
public long?[] ErrorPosition{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 维度单词坐标,错误单词在图片中的坐标,只有传图片时正常返回,传文字时返回[ ]
|
||||
/// </summary>
|
||||
[JsonProperty("ErrorCoordinates")]
|
||||
public ErrorCoordinate[] ErrorCoordinates{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Type", this.Type);
|
||||
this.SetParamSimple(map, prefix + "ErrorType", this.ErrorType);
|
||||
this.SetParamSimple(map, prefix + "Origin", this.Origin);
|
||||
this.SetParamSimple(map, prefix + "Replace", this.Replace);
|
||||
this.SetParamSimple(map, prefix + "Message", this.Message);
|
||||
this.SetParamArraySimple(map, prefix + "ErrorPosition.", this.ErrorPosition);
|
||||
this.SetParamArrayObj(map, prefix + "ErrorCoordinates.", this.ErrorCoordinates);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user