Documentation ¶
Index ¶
- Constants
- type Aspect
- type Client
- func (c *Client) CorrectMultiImage(request *CorrectMultiImageRequest) (response *CorrectMultiImageResponse, err error)
- func (c *Client) CorrectMultiImageWithContext(ctx context.Context, request *CorrectMultiImageRequest) (response *CorrectMultiImageResponse, err error)
- func (c *Client) DescribeTask(request *DescribeTaskRequest) (response *DescribeTaskResponse, err error)
- func (c *Client) DescribeTaskWithContext(ctx context.Context, request *DescribeTaskRequest) (response *DescribeTaskResponse, err error)
- func (c *Client) ECC(request *ECCRequest) (response *ECCResponse, err error)
- func (c *Client) ECCWithContext(ctx context.Context, request *ECCRequest) (response *ECCResponse, err error)
- func (c *Client) EHOCR(request *EHOCRRequest) (response *EHOCRResponse, err error)
- func (c *Client) EHOCRWithContext(ctx context.Context, request *EHOCRRequest) (response *EHOCRResponse, err error)
- type CompositionContext
- type CompostionContext
- type CorrectData
- type CorrectMultiImageRequest
- type CorrectMultiImageRequestParams
- type CorrectMultiImageResponse
- type CorrectMultiImageResponseParams
- type DescribeTaskRequest
- type DescribeTaskRequestParams
- type DescribeTaskResponse
- type DescribeTaskResponseParams
- type ECCRequest
- type ECCRequestParams
- type ECCResponse
- type ECCResponseParams
- type EHOCRRequest
- type EHOCRRequestParams
- type EHOCRResponse
- type EHOCRResponseParams
- type ErrorCoordinate
- type ScoreCategory
- type SentenceCom
- type SentenceItem
- type SentenceSuggest
Constants ¶
const ( // 内部错误。 INTERNALERROR = "InternalError" // 批改错误。 INTERNALERROR_CORRECTERROR = "InternalError.CorrectError" // 数据格式错误。 INTERNALERROR_DATAFORMATABNORMALERROR = "InternalError.DataFormatAbnormalError" // 服务内部错误。 INTERNALERROR_DATABASESERVERINTERNALERROR = "InternalError.DatabaseServerInternalError" // 识别错误。 INTERNALERROR_OCRERROR = "InternalError.OcrError" // 服务器内部错误,初始化失败。 INTERNALERROR_OCRSERVERINTERNERROR = "InternalError.OcrServerInternError" // 其它错误。 INTERNALERROR_OTHERERROR = "InternalError.OtherError" // 服务器过载,请联系相关客服。 INTERNALERROR_OVERLOADERROR = "InternalError.OverLoadError" // 图片识别错误。 INTERNALERROR_RECOGNIZEERROR = "InternalError.RecognizeError" // 无法连接图像下载服务器。 INTERNALERROR_SERVERCONNECTDOWNLOADERROR = "InternalError.ServerConnectDownloadError" // 图片切割错误。 INTERNALERROR_SPLITERROR = "InternalError.SplitError" // 参数为空。 INVALIDPARAMETER_EMPTYPARAMETERERROR = "InvalidParameter.EmptyParameterError" // 传入的参数有误。 INVALIDPARAMETER_INPUTERROR = "InvalidParameter.InputError" // 任务不存在。 INVALIDPARAMETER_TASKNOTFOUND = "InvalidParameter.TaskNotFound" // Appid无效。 INVALIDPARAMETERVALUE_APPIDINVALIDERROR = "InvalidParameterValue.AppidInvalidError" // 图片解码失败,请核实输入信息。 INVALIDPARAMETERVALUE_DECODEIMAGEERROR = "InvalidParameterValue.DecodeImageError" // url图片下载失败。 INVALIDPARAMETERVALUE_DOWNLOADIMAGEFAILERROR = "InvalidParameterValue.DownloadImageFailError" // 图片数据为空。 INVALIDPARAMETERVALUE_EMPTYIMAGEERROR = "InvalidParameterValue.EmptyImageError" // 图片下载失败。 INVALIDPARAMETERVALUE_IMAGEDOWNLOADFAILERROR = "InvalidParameterValue.ImageDownloadFailError" // 图片超出下载限制。 INVALIDPARAMETERVALUE_IMAGESIZEEXCEEDERROR = "InvalidParameterValue.ImageSizeExceedError" // 图片尺寸太大。 INVALIDPARAMETERVALUE_IMAGETOOBIGERROR = "InvalidParameterValue.ImageTooBigError" // 输入错误,请核实InputType参数。 INVALIDPARAMETERVALUE_INPUTTYPEVALUEERROR = "InvalidParameterValue.InputTypeValueError" // SessionId无效。 INVALIDPARAMETERVALUE_SESSIONERROR = "InvalidParameterValue.SessionError" // 图像请求URL的格式错误。 INVALIDPARAMETERVALUE_URLFROMATIVADLIDERROR = "InvalidParameterValue.UrlFromatIvadlidError" // 频率限制。 LIMITEXCEEDED_FREQLIMITFORBIDDENACCESSERROR = "LimitExceeded.FreqLimitForbiddenAccessError" // 无法找到用户,请确认已在控制台开通服务并使用了正确的 ECCAPPID。 RESOURCENOTFOUND_CANNOTFINDUSER = "ResourceNotFound.CannotFindUser" // 无效的服务名称。 RESOURCENOTFOUND_SERVERNAMENOTEXISTINLICENSEERROR = "ResourceNotFound.ServerNameNotExistInLicenseError" // 服务未开通或已欠费。 RESOURCEUNAVAILABLE_AUTHORIZEERROR = "ResourceUnavailable.AuthorizeError" // license无效。 UNAUTHORIZEDOPERATION_LICENSEINVALIDFORBIDDENACCESSERROR = "UnauthorizedOperation.LicenseInvalidForbiddenAccessError" // license中未授权该服务。 UNAUTHORIZEDOPERATION_SERVERNAMEUNAUTHORIZEDINERROR = "UnauthorizedOperation.ServerNameUnauthorizedInError" )
const APIVersion = "2018-12-13"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) CorrectMultiImage ¶
func (c *Client) CorrectMultiImage(request *CorrectMultiImageRequest) (response *CorrectMultiImageResponse, err error)
CorrectMultiImage https://ecc.tencentcloudapi.com/?Action=CorrectMultiImage
多图像识别批改接口
可能返回的错误码:
INTERNALERROR = "InternalError" INTERNALERROR_CORRECTERROR = "InternalError.CorrectError" INTERNALERROR_DATABASESERVERINTERNALERROR = "InternalError.DatabaseServerInternalError" INTERNALERROR_OCRERROR = "InternalError.OcrError" INTERNALERROR_OCRSERVERINTERNERROR = "InternalError.OcrServerInternError" INTERNALERROR_OTHERERROR = "InternalError.OtherError" INTERNALERROR_OVERLOADERROR = "InternalError.OverLoadError" INTERNALERROR_RECOGNIZEERROR = "InternalError.RecognizeError" INTERNALERROR_SERVERCONNECTDOWNLOADERROR = "InternalError.ServerConnectDownloadError" INTERNALERROR_SPLITERROR = "InternalError.SplitError" INVALIDPARAMETER_EMPTYPARAMETERERROR = "InvalidParameter.EmptyParameterError" INVALIDPARAMETER_INPUTERROR = "InvalidParameter.InputError" INVALIDPARAMETERVALUE_APPIDINVALIDERROR = "InvalidParameterValue.AppidInvalidError" INVALIDPARAMETERVALUE_DECODEIMAGEERROR = "InvalidParameterValue.DecodeImageError" INVALIDPARAMETERVALUE_DOWNLOADIMAGEFAILERROR = "InvalidParameterValue.DownloadImageFailError" INVALIDPARAMETERVALUE_EMPTYIMAGEERROR = "InvalidParameterValue.EmptyImageError" INVALIDPARAMETERVALUE_IMAGEDOWNLOADFAILERROR = "InvalidParameterValue.ImageDownloadFailError" INVALIDPARAMETERVALUE_IMAGESIZEEXCEEDERROR = "InvalidParameterValue.ImageSizeExceedError" INVALIDPARAMETERVALUE_IMAGETOOBIGERROR = "InvalidParameterValue.ImageTooBigError" INVALIDPARAMETERVALUE_INPUTTYPEVALUEERROR = "InvalidParameterValue.InputTypeValueError" INVALIDPARAMETERVALUE_SESSIONERROR = "InvalidParameterValue.SessionError" INVALIDPARAMETERVALUE_URLFROMATIVADLIDERROR = "InvalidParameterValue.UrlFromatIvadlidError" LIMITEXCEEDED_FREQLIMITFORBIDDENACCESSERROR = "LimitExceeded.FreqLimitForbiddenAccessError" RESOURCENOTFOUND_CANNOTFINDUSER = "ResourceNotFound.CannotFindUser" RESOURCENOTFOUND_SERVERNAMENOTEXISTINLICENSEERROR = "ResourceNotFound.ServerNameNotExistInLicenseError" RESOURCEUNAVAILABLE_AUTHORIZEERROR = "ResourceUnavailable.AuthorizeError" UNAUTHORIZEDOPERATION_LICENSEINVALIDFORBIDDENACCESSERROR = "UnauthorizedOperation.LicenseInvalidForbiddenAccessError" UNAUTHORIZEDOPERATION_SERVERNAMEUNAUTHORIZEDINERROR = "UnauthorizedOperation.ServerNameUnauthorizedInError"
func (*Client) CorrectMultiImageWithContext ¶ added in v1.0.324
func (c *Client) CorrectMultiImageWithContext(ctx context.Context, request *CorrectMultiImageRequest) (response *CorrectMultiImageResponse, err error)
CorrectMultiImage https://ecc.tencentcloudapi.com/?Action=CorrectMultiImage
多图像识别批改接口
可能返回的错误码:
INTERNALERROR = "InternalError" INTERNALERROR_CORRECTERROR = "InternalError.CorrectError" INTERNALERROR_DATABASESERVERINTERNALERROR = "InternalError.DatabaseServerInternalError" INTERNALERROR_OCRERROR = "InternalError.OcrError" INTERNALERROR_OCRSERVERINTERNERROR = "InternalError.OcrServerInternError" INTERNALERROR_OTHERERROR = "InternalError.OtherError" INTERNALERROR_OVERLOADERROR = "InternalError.OverLoadError" INTERNALERROR_RECOGNIZEERROR = "InternalError.RecognizeError" INTERNALERROR_SERVERCONNECTDOWNLOADERROR = "InternalError.ServerConnectDownloadError" INTERNALERROR_SPLITERROR = "InternalError.SplitError" INVALIDPARAMETER_EMPTYPARAMETERERROR = "InvalidParameter.EmptyParameterError" INVALIDPARAMETER_INPUTERROR = "InvalidParameter.InputError" INVALIDPARAMETERVALUE_APPIDINVALIDERROR = "InvalidParameterValue.AppidInvalidError" INVALIDPARAMETERVALUE_DECODEIMAGEERROR = "InvalidParameterValue.DecodeImageError" INVALIDPARAMETERVALUE_DOWNLOADIMAGEFAILERROR = "InvalidParameterValue.DownloadImageFailError" INVALIDPARAMETERVALUE_EMPTYIMAGEERROR = "InvalidParameterValue.EmptyImageError" INVALIDPARAMETERVALUE_IMAGEDOWNLOADFAILERROR = "InvalidParameterValue.ImageDownloadFailError" INVALIDPARAMETERVALUE_IMAGESIZEEXCEEDERROR = "InvalidParameterValue.ImageSizeExceedError" INVALIDPARAMETERVALUE_IMAGETOOBIGERROR = "InvalidParameterValue.ImageTooBigError" INVALIDPARAMETERVALUE_INPUTTYPEVALUEERROR = "InvalidParameterValue.InputTypeValueError" INVALIDPARAMETERVALUE_SESSIONERROR = "InvalidParameterValue.SessionError" INVALIDPARAMETERVALUE_URLFROMATIVADLIDERROR = "InvalidParameterValue.UrlFromatIvadlidError" LIMITEXCEEDED_FREQLIMITFORBIDDENACCESSERROR = "LimitExceeded.FreqLimitForbiddenAccessError" RESOURCENOTFOUND_CANNOTFINDUSER = "ResourceNotFound.CannotFindUser" RESOURCENOTFOUND_SERVERNAMENOTEXISTINLICENSEERROR = "ResourceNotFound.ServerNameNotExistInLicenseError" RESOURCEUNAVAILABLE_AUTHORIZEERROR = "ResourceUnavailable.AuthorizeError" UNAUTHORIZEDOPERATION_LICENSEINVALIDFORBIDDENACCESSERROR = "UnauthorizedOperation.LicenseInvalidForbiddenAccessError" UNAUTHORIZEDOPERATION_SERVERNAMEUNAUTHORIZEDINERROR = "UnauthorizedOperation.ServerNameUnauthorizedInError"
func (*Client) DescribeTask ¶
func (c *Client) DescribeTask(request *DescribeTaskRequest) (response *DescribeTaskResponse, err error)
DescribeTask 异步任务结果查询接口
可能返回的错误码:
INTERNALERROR = "InternalError" INTERNALERROR_CORRECTERROR = "InternalError.CorrectError" INTERNALERROR_DATAFORMATABNORMALERROR = "InternalError.DataFormatAbnormalError" INTERNALERROR_DATABASESERVERINTERNALERROR = "InternalError.DatabaseServerInternalError" INTERNALERROR_OCRERROR = "InternalError.OcrError" INTERNALERROR_OCRSERVERINTERNERROR = "InternalError.OcrServerInternError" INTERNALERROR_OTHERERROR = "InternalError.OtherError" INTERNALERROR_OVERLOADERROR = "InternalError.OverLoadError" INTERNALERROR_RECOGNIZEERROR = "InternalError.RecognizeError" INTERNALERROR_SERVERCONNECTDOWNLOADERROR = "InternalError.ServerConnectDownloadError" INTERNALERROR_SPLITERROR = "InternalError.SplitError" INVALIDPARAMETER_EMPTYPARAMETERERROR = "InvalidParameter.EmptyParameterError" INVALIDPARAMETER_INPUTERROR = "InvalidParameter.InputError" INVALIDPARAMETER_TASKNOTFOUND = "InvalidParameter.TaskNotFound" INVALIDPARAMETERVALUE_APPIDINVALIDERROR = "InvalidParameterValue.AppidInvalidError" INVALIDPARAMETERVALUE_DECODEIMAGEERROR = "InvalidParameterValue.DecodeImageError" INVALIDPARAMETERVALUE_DOWNLOADIMAGEFAILERROR = "InvalidParameterValue.DownloadImageFailError" INVALIDPARAMETERVALUE_IMAGEDOWNLOADFAILERROR = "InvalidParameterValue.ImageDownloadFailError" INVALIDPARAMETERVALUE_IMAGESIZEEXCEEDERROR = "InvalidParameterValue.ImageSizeExceedError" INVALIDPARAMETERVALUE_URLFROMATIVADLIDERROR = "InvalidParameterValue.UrlFromatIvadlidError" LIMITEXCEEDED_FREQLIMITFORBIDDENACCESSERROR = "LimitExceeded.FreqLimitForbiddenAccessError" RESOURCENOTFOUND_CANNOTFINDUSER = "ResourceNotFound.CannotFindUser" RESOURCENOTFOUND_SERVERNAMENOTEXISTINLICENSEERROR = "ResourceNotFound.ServerNameNotExistInLicenseError" RESOURCEUNAVAILABLE_AUTHORIZEERROR = "ResourceUnavailable.AuthorizeError" UNAUTHORIZEDOPERATION_LICENSEINVALIDFORBIDDENACCESSERROR = "UnauthorizedOperation.LicenseInvalidForbiddenAccessError" UNAUTHORIZEDOPERATION_SERVERNAMEUNAUTHORIZEDINERROR = "UnauthorizedOperation.ServerNameUnauthorizedInError"
func (*Client) DescribeTaskWithContext ¶ added in v1.0.324
func (c *Client) DescribeTaskWithContext(ctx context.Context, request *DescribeTaskRequest) (response *DescribeTaskResponse, err error)
DescribeTask 异步任务结果查询接口
可能返回的错误码:
INTERNALERROR = "InternalError" INTERNALERROR_CORRECTERROR = "InternalError.CorrectError" INTERNALERROR_DATAFORMATABNORMALERROR = "InternalError.DataFormatAbnormalError" INTERNALERROR_DATABASESERVERINTERNALERROR = "InternalError.DatabaseServerInternalError" INTERNALERROR_OCRERROR = "InternalError.OcrError" INTERNALERROR_OCRSERVERINTERNERROR = "InternalError.OcrServerInternError" INTERNALERROR_OTHERERROR = "InternalError.OtherError" INTERNALERROR_OVERLOADERROR = "InternalError.OverLoadError" INTERNALERROR_RECOGNIZEERROR = "InternalError.RecognizeError" INTERNALERROR_SERVERCONNECTDOWNLOADERROR = "InternalError.ServerConnectDownloadError" INTERNALERROR_SPLITERROR = "InternalError.SplitError" INVALIDPARAMETER_EMPTYPARAMETERERROR = "InvalidParameter.EmptyParameterError" INVALIDPARAMETER_INPUTERROR = "InvalidParameter.InputError" INVALIDPARAMETER_TASKNOTFOUND = "InvalidParameter.TaskNotFound" INVALIDPARAMETERVALUE_APPIDINVALIDERROR = "InvalidParameterValue.AppidInvalidError" INVALIDPARAMETERVALUE_DECODEIMAGEERROR = "InvalidParameterValue.DecodeImageError" INVALIDPARAMETERVALUE_DOWNLOADIMAGEFAILERROR = "InvalidParameterValue.DownloadImageFailError" INVALIDPARAMETERVALUE_IMAGEDOWNLOADFAILERROR = "InvalidParameterValue.ImageDownloadFailError" INVALIDPARAMETERVALUE_IMAGESIZEEXCEEDERROR = "InvalidParameterValue.ImageSizeExceedError" INVALIDPARAMETERVALUE_URLFROMATIVADLIDERROR = "InvalidParameterValue.UrlFromatIvadlidError" LIMITEXCEEDED_FREQLIMITFORBIDDENACCESSERROR = "LimitExceeded.FreqLimitForbiddenAccessError" RESOURCENOTFOUND_CANNOTFINDUSER = "ResourceNotFound.CannotFindUser" RESOURCENOTFOUND_SERVERNAMENOTEXISTINLICENSEERROR = "ResourceNotFound.ServerNameNotExistInLicenseError" RESOURCEUNAVAILABLE_AUTHORIZEERROR = "ResourceUnavailable.AuthorizeError" UNAUTHORIZEDOPERATION_LICENSEINVALIDFORBIDDENACCESSERROR = "UnauthorizedOperation.LicenseInvalidForbiddenAccessError" UNAUTHORIZEDOPERATION_SERVERNAMEUNAUTHORIZEDINERROR = "UnauthorizedOperation.ServerNameUnauthorizedInError"
func (*Client) ECC ¶
func (c *Client) ECC(request *ECCRequest) (response *ECCResponse, err error)
ECC 接口请求域名: ecc.tencentcloudapi.com
纯文本英语作文批改
可能返回的错误码:
INTERNALERROR_CORRECTERROR = "InternalError.CorrectError" INTERNALERROR_DATABASESERVERINTERNALERROR = "InternalError.DatabaseServerInternalError" INVALIDPARAMETER_INPUTERROR = "InvalidParameter.InputError" INVALIDPARAMETERVALUE_SESSIONERROR = "InvalidParameterValue.SessionError" RESOURCENOTFOUND_CANNOTFINDUSER = "ResourceNotFound.CannotFindUser"
func (*Client) ECCWithContext ¶ added in v1.0.324
func (c *Client) ECCWithContext(ctx context.Context, request *ECCRequest) (response *ECCResponse, err error)
ECC 接口请求域名: ecc.tencentcloudapi.com
纯文本英语作文批改
可能返回的错误码:
INTERNALERROR_CORRECTERROR = "InternalError.CorrectError" INTERNALERROR_DATABASESERVERINTERNALERROR = "InternalError.DatabaseServerInternalError" INVALIDPARAMETER_INPUTERROR = "InvalidParameter.InputError" INVALIDPARAMETERVALUE_SESSIONERROR = "InvalidParameterValue.SessionError" RESOURCENOTFOUND_CANNOTFINDUSER = "ResourceNotFound.CannotFindUser"
func (*Client) EHOCR ¶
func (c *Client) EHOCR(request *EHOCRRequest) (response *EHOCRResponse, err error)
EHOCR https://ecc.tencentcloudapi.com/?Action=EHOCR
图像识别批改接口
可能返回的错误码:
INTERNALERROR = "InternalError" INTERNALERROR_CORRECTERROR = "InternalError.CorrectError" INTERNALERROR_DATABASESERVERINTERNALERROR = "InternalError.DatabaseServerInternalError" INTERNALERROR_OCRERROR = "InternalError.OcrError" INTERNALERROR_OCRSERVERINTERNERROR = "InternalError.OcrServerInternError" INTERNALERROR_OTHERERROR = "InternalError.OtherError" INTERNALERROR_OVERLOADERROR = "InternalError.OverLoadError" INTERNALERROR_RECOGNIZEERROR = "InternalError.RecognizeError" INTERNALERROR_SERVERCONNECTDOWNLOADERROR = "InternalError.ServerConnectDownloadError" INTERNALERROR_SPLITERROR = "InternalError.SplitError" INVALIDPARAMETER_EMPTYPARAMETERERROR = "InvalidParameter.EmptyParameterError" INVALIDPARAMETER_INPUTERROR = "InvalidParameter.InputError" INVALIDPARAMETERVALUE_APPIDINVALIDERROR = "InvalidParameterValue.AppidInvalidError" INVALIDPARAMETERVALUE_DECODEIMAGEERROR = "InvalidParameterValue.DecodeImageError" INVALIDPARAMETERVALUE_DOWNLOADIMAGEFAILERROR = "InvalidParameterValue.DownloadImageFailError" INVALIDPARAMETERVALUE_EMPTYIMAGEERROR = "InvalidParameterValue.EmptyImageError" INVALIDPARAMETERVALUE_IMAGEDOWNLOADFAILERROR = "InvalidParameterValue.ImageDownloadFailError" INVALIDPARAMETERVALUE_IMAGESIZEEXCEEDERROR = "InvalidParameterValue.ImageSizeExceedError" INVALIDPARAMETERVALUE_IMAGETOOBIGERROR = "InvalidParameterValue.ImageTooBigError" INVALIDPARAMETERVALUE_INPUTTYPEVALUEERROR = "InvalidParameterValue.InputTypeValueError" INVALIDPARAMETERVALUE_SESSIONERROR = "InvalidParameterValue.SessionError" INVALIDPARAMETERVALUE_URLFROMATIVADLIDERROR = "InvalidParameterValue.UrlFromatIvadlidError" LIMITEXCEEDED_FREQLIMITFORBIDDENACCESSERROR = "LimitExceeded.FreqLimitForbiddenAccessError" RESOURCENOTFOUND_CANNOTFINDUSER = "ResourceNotFound.CannotFindUser" RESOURCENOTFOUND_SERVERNAMENOTEXISTINLICENSEERROR = "ResourceNotFound.ServerNameNotExistInLicenseError" RESOURCEUNAVAILABLE_AUTHORIZEERROR = "ResourceUnavailable.AuthorizeError" UNAUTHORIZEDOPERATION_LICENSEINVALIDFORBIDDENACCESSERROR = "UnauthorizedOperation.LicenseInvalidForbiddenAccessError" UNAUTHORIZEDOPERATION_SERVERNAMEUNAUTHORIZEDINERROR = "UnauthorizedOperation.ServerNameUnauthorizedInError"
func (*Client) EHOCRWithContext ¶ added in v1.0.324
func (c *Client) EHOCRWithContext(ctx context.Context, request *EHOCRRequest) (response *EHOCRResponse, err error)
EHOCR https://ecc.tencentcloudapi.com/?Action=EHOCR
图像识别批改接口
可能返回的错误码:
INTERNALERROR = "InternalError" INTERNALERROR_CORRECTERROR = "InternalError.CorrectError" INTERNALERROR_DATABASESERVERINTERNALERROR = "InternalError.DatabaseServerInternalError" INTERNALERROR_OCRERROR = "InternalError.OcrError" INTERNALERROR_OCRSERVERINTERNERROR = "InternalError.OcrServerInternError" INTERNALERROR_OTHERERROR = "InternalError.OtherError" INTERNALERROR_OVERLOADERROR = "InternalError.OverLoadError" INTERNALERROR_RECOGNIZEERROR = "InternalError.RecognizeError" INTERNALERROR_SERVERCONNECTDOWNLOADERROR = "InternalError.ServerConnectDownloadError" INTERNALERROR_SPLITERROR = "InternalError.SplitError" INVALIDPARAMETER_EMPTYPARAMETERERROR = "InvalidParameter.EmptyParameterError" INVALIDPARAMETER_INPUTERROR = "InvalidParameter.InputError" INVALIDPARAMETERVALUE_APPIDINVALIDERROR = "InvalidParameterValue.AppidInvalidError" INVALIDPARAMETERVALUE_DECODEIMAGEERROR = "InvalidParameterValue.DecodeImageError" INVALIDPARAMETERVALUE_DOWNLOADIMAGEFAILERROR = "InvalidParameterValue.DownloadImageFailError" INVALIDPARAMETERVALUE_EMPTYIMAGEERROR = "InvalidParameterValue.EmptyImageError" INVALIDPARAMETERVALUE_IMAGEDOWNLOADFAILERROR = "InvalidParameterValue.ImageDownloadFailError" INVALIDPARAMETERVALUE_IMAGESIZEEXCEEDERROR = "InvalidParameterValue.ImageSizeExceedError" INVALIDPARAMETERVALUE_IMAGETOOBIGERROR = "InvalidParameterValue.ImageTooBigError" INVALIDPARAMETERVALUE_INPUTTYPEVALUEERROR = "InvalidParameterValue.InputTypeValueError" INVALIDPARAMETERVALUE_SESSIONERROR = "InvalidParameterValue.SessionError" INVALIDPARAMETERVALUE_URLFROMATIVADLIDERROR = "InvalidParameterValue.UrlFromatIvadlidError" LIMITEXCEEDED_FREQLIMITFORBIDDENACCESSERROR = "LimitExceeded.FreqLimitForbiddenAccessError" RESOURCENOTFOUND_CANNOTFINDUSER = "ResourceNotFound.CannotFindUser" RESOURCENOTFOUND_SERVERNAMENOTEXISTINLICENSEERROR = "ResourceNotFound.ServerNameNotExistInLicenseError" RESOURCEUNAVAILABLE_AUTHORIZEERROR = "ResourceUnavailable.AuthorizeError" UNAUTHORIZEDOPERATION_LICENSEINVALIDFORBIDDENACCESSERROR = "UnauthorizedOperation.LicenseInvalidForbiddenAccessError" UNAUTHORIZEDOPERATION_SERVERNAMEUNAUTHORIZEDINERROR = "UnauthorizedOperation.ServerNameUnauthorizedInError"
type CompositionContext ¶ added in v1.0.747
type CompositionContext struct { // 作文内容 Content *string `json:"Content,omitnil,omitempty" name:"Content"` // 批改结果 // 注意:此字段可能返回 null,表示取不到有效值。 CorrectData *CorrectData `json:"CorrectData,omitnil,omitempty" name:"CorrectData"` // 任务 id,用于查询接口 // 注意:此字段可能返回 null,表示取不到有效值。 TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` // 图像识别唯一标识,一次识别一个 SessionId // 注意:此字段可能返回 null,表示取不到有效值。 SessionId *string `json:"SessionId,omitnil,omitempty" name:"SessionId"` }
type CompostionContext ¶
type CompostionContext struct { // 作文内容 Content *string `json:"Content,omitnil,omitempty" name:"Content"` // 批改结果 // 注意:此字段可能返回 null,表示取不到有效值。 CorrectData *CorrectData `json:"CorrectData,omitnil,omitempty" name:"CorrectData"` // 任务 id,用于查询接口 // 注意:此字段可能返回 null,表示取不到有效值。 TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` // 图像识别唯一标识,一次识别一个 SessionId // 注意:此字段可能返回 null,表示取不到有效值。 SessionId *string `json:"SessionId,omitnil,omitempty" name:"SessionId"` }
type CorrectData ¶
type CorrectData struct { // 总得分 Score *float64 `json:"Score,omitnil,omitempty" name:"Score"` // 各项得分详情 ScoreCat *ScoreCategory `json:"ScoreCat,omitnil,omitempty" name:"ScoreCat"` // 综合评价 Comment *string `json:"Comment,omitnil,omitempty" name:"Comment"` // 句子点评 SentenceComments []*SentenceCom `json:"SentenceComments,omitnil,omitempty" name:"SentenceComments"` }
type CorrectMultiImageRequest ¶
type CorrectMultiImageRequest struct { *tchttp.BaseRequest // 图片的url链接或base64数据。每张图片数据作为数组的一个元素,数组个数与图片个数保持一致。存放类别依据InputType而定,url与base64编码不能混合使用。 Image []*string `json:"Image,omitnil,omitempty" name:"Image"` // 输出图片类型,0 表示 Image 字段是图片所在的 url,1 表示 Image 字段是 base64 编码后的图像数据。 InputType *int64 `json:"InputType,omitnil,omitempty" name:"InputType"` // 业务应用ID,与账号应用APPID无关,是用来方便客户管理服务的参数。 EccAppid *string `json:"EccAppid,omitnil,omitempty" name:"EccAppid"` // 图像识别唯一标识,一次识别一个 SessionId,使用识别功能时 SessionId 可用于使用文本批改接口,此时按图像批改价格收费;如使用文本批改接口时没有传入 SessionId,则需要收取文本批改的费用。 SessionId *string `json:"SessionId,omitnil,omitempty" name:"SessionId"` // 服务类型,0:“多图像识别”,只返回识别结果;1:“多图像批改”,同时返回识别结果与批改结果。默认为 0。 ServerType *int64 `json:"ServerType,omitnil,omitempty" name:"ServerType"` // 作文题目,可选参数 Title *string `json:"Title,omitnil,omitempty" name:"Title"` // 年级标准, 默认以 cet4 为标准,取值与意义如下:elementary 小学,grade7 grade8 grade9分别对应初一,初二,初三。 grade10 grade11 grade12 分别对应高一,高二,高三,以及 cet4 和 cet6 分别表示 英语4级和6级。 Grade *string `json:"Grade,omitnil,omitempty" name:"Grade"` // 作文提纲,可选参数,作文的写作要求。 Requirement *string `json:"Requirement,omitnil,omitempty" name:"Requirement"` // 范文标题,可选参数,本接口可以依据提供的范文对作文进行评分。 ModelTitle *string `json:"ModelTitle,omitnil,omitempty" name:"ModelTitle"` // 范文内容,可选参数,同上,范文的正文部分。 ModelContent *string `json:"ModelContent,omitnil,omitempty" name:"ModelContent"` // 异步模式标识,0:同步模式,1:异步模式。默认为同步模式 IsAsync *int64 `json:"IsAsync,omitnil,omitempty" name:"IsAsync"` }
func NewCorrectMultiImageRequest ¶
func NewCorrectMultiImageRequest() (request *CorrectMultiImageRequest)
func (*CorrectMultiImageRequest) FromJsonString ¶
func (r *CorrectMultiImageRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CorrectMultiImageRequest) ToJsonString ¶
func (r *CorrectMultiImageRequest) ToJsonString() string
type CorrectMultiImageRequestParams ¶ added in v1.0.426
type CorrectMultiImageRequestParams struct { // 图片的url链接或base64数据。每张图片数据作为数组的一个元素,数组个数与图片个数保持一致。存放类别依据InputType而定,url与base64编码不能混合使用。 Image []*string `json:"Image,omitnil,omitempty" name:"Image"` // 输出图片类型,0 表示 Image 字段是图片所在的 url,1 表示 Image 字段是 base64 编码后的图像数据。 InputType *int64 `json:"InputType,omitnil,omitempty" name:"InputType"` // 业务应用ID,与账号应用APPID无关,是用来方便客户管理服务的参数。 EccAppid *string `json:"EccAppid,omitnil,omitempty" name:"EccAppid"` // 图像识别唯一标识,一次识别一个 SessionId,使用识别功能时 SessionId 可用于使用文本批改接口,此时按图像批改价格收费;如使用文本批改接口时没有传入 SessionId,则需要收取文本批改的费用。 SessionId *string `json:"SessionId,omitnil,omitempty" name:"SessionId"` // 服务类型,0:“多图像识别”,只返回识别结果;1:“多图像批改”,同时返回识别结果与批改结果。默认为 0。 ServerType *int64 `json:"ServerType,omitnil,omitempty" name:"ServerType"` // 作文题目,可选参数 Title *string `json:"Title,omitnil,omitempty" name:"Title"` // 年级标准, 默认以 cet4 为标准,取值与意义如下:elementary 小学,grade7 grade8 grade9分别对应初一,初二,初三。 grade10 grade11 grade12 分别对应高一,高二,高三,以及 cet4 和 cet6 分别表示 英语4级和6级。 Grade *string `json:"Grade,omitnil,omitempty" name:"Grade"` // 作文提纲,可选参数,作文的写作要求。 Requirement *string `json:"Requirement,omitnil,omitempty" name:"Requirement"` // 范文标题,可选参数,本接口可以依据提供的范文对作文进行评分。 ModelTitle *string `json:"ModelTitle,omitnil,omitempty" name:"ModelTitle"` // 范文内容,可选参数,同上,范文的正文部分。 ModelContent *string `json:"ModelContent,omitnil,omitempty" name:"ModelContent"` // 异步模式标识,0:同步模式,1:异步模式。默认为同步模式 IsAsync *int64 `json:"IsAsync,omitnil,omitempty" name:"IsAsync"` }
Predefined struct for user
type CorrectMultiImageResponse ¶
type CorrectMultiImageResponse struct { *tchttp.BaseResponse Response *CorrectMultiImageResponseParams `json:"Response"` }
func NewCorrectMultiImageResponse ¶
func NewCorrectMultiImageResponse() (response *CorrectMultiImageResponse)
func (*CorrectMultiImageResponse) FromJsonString ¶
func (r *CorrectMultiImageResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CorrectMultiImageResponse) ToJsonString ¶
func (r *CorrectMultiImageResponse) ToJsonString() string
type CorrectMultiImageResponseParams ¶ added in v1.0.426
type CorrectMultiImageResponseParams struct { // 接口返回数据 // // Deprecated: Data is deprecated. Data *CompostionContext `json:"Data,omitnil,omitempty" name:"Data"` // 接口返回数据 ResultData *CompositionContext `json:"ResultData,omitnil,omitempty" name:"ResultData"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeTaskRequest ¶
type DescribeTaskRequest struct { *tchttp.BaseRequest // 任务 ID TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` // 业务应用ID,与账号应用APPID无关,是用来方便客户管理服务的参数(暂时无需传入)。 EccAppid *string `json:"EccAppid,omitnil,omitempty" name:"EccAppid"` }
func NewDescribeTaskRequest ¶
func NewDescribeTaskRequest() (request *DescribeTaskRequest)
func (*DescribeTaskRequest) FromJsonString ¶
func (r *DescribeTaskRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTaskRequest) ToJsonString ¶
func (r *DescribeTaskRequest) ToJsonString() string
type DescribeTaskRequestParams ¶ added in v1.0.426
type DescribeTaskRequestParams struct { // 任务 ID TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` // 业务应用ID,与账号应用APPID无关,是用来方便客户管理服务的参数(暂时无需传入)。 EccAppid *string `json:"EccAppid,omitnil,omitempty" name:"EccAppid"` }
Predefined struct for user
type DescribeTaskResponse ¶
type DescribeTaskResponse struct { *tchttp.BaseResponse Response *DescribeTaskResponseParams `json:"Response"` }
func NewDescribeTaskResponse ¶
func NewDescribeTaskResponse() (response *DescribeTaskResponse)
func (*DescribeTaskResponse) FromJsonString ¶
func (r *DescribeTaskResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTaskResponse) ToJsonString ¶
func (r *DescribeTaskResponse) ToJsonString() string
type DescribeTaskResponseParams ¶ added in v1.0.426
type DescribeTaskResponseParams struct { // 作文识别文本 // 注意:此字段可能返回 null,表示取不到有效值。 Content *string `json:"Content,omitnil,omitempty" name:"Content"` // 整体的批改结果 // 注意:此字段可能返回 null,表示取不到有效值。 CorrectData *CorrectData `json:"CorrectData,omitnil,omitempty" name:"CorrectData"` // 任务状态,“Progressing”: 处理中(此时无结果返回)、“Finished”: 处理完成 Status *string `json:"Status,omitnil,omitempty" name:"Status"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type ECCRequest ¶
type ECCRequest struct { *tchttp.BaseRequest // 作文文本,必填 Content *string `json:"Content,omitnil,omitempty" name:"Content"` // 作文题目,可选参数 Title *string `json:"Title,omitnil,omitempty" name:"Title"` // 年级标准, 默认以cet4为标准,取值与意义如下:elementary 小学,grade7 grade8 grade9分别对应初一,初二,初三。 grade10 grade11 grade12 分别对应高一,高二,高三,以及cet4和cet6 分别表示 英语4级和6级。 Grade *string `json:"Grade,omitnil,omitempty" name:"Grade"` // 作文提纲,可选参数,作文的写作要求。 Requirement *string `json:"Requirement,omitnil,omitempty" name:"Requirement"` // 范文标题,可选参数,本接口可以依据提供的范文对作文进行评分。 ModelTitle *string `json:"ModelTitle,omitnil,omitempty" name:"ModelTitle"` // 范文内容,可选参数,同上,范文的正文部分。 ModelContent *string `json:"ModelContent,omitnil,omitempty" name:"ModelContent"` // 业务应用ID,与账号应用APPID无关,是用来方便客户管理服务的参数(暂时无需传入)。 EccAppid *string `json:"EccAppid,omitnil,omitempty" name:"EccAppid"` // 异步模式标识,0:同步模式,1:异步模式,默认为同步模式 IsAsync *int64 `json:"IsAsync,omitnil,omitempty" name:"IsAsync"` // 图像识别唯一标识,一次识别一个 SessionId。当传入此前识别接口使用过的 SessionId,则本次批改按图像批改价格收费;如使用了识别接口且本次没有传入 SessionId,则需要加取文本批改的费用;如果直接使用文本批改接口,则只收取文本批改的费用 SessionId *string `json:"SessionId,omitnil,omitempty" name:"SessionId"` }
func NewECCRequest ¶
func NewECCRequest() (request *ECCRequest)
func (*ECCRequest) FromJsonString ¶
func (r *ECCRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ECCRequest) ToJsonString ¶
func (r *ECCRequest) ToJsonString() string
type ECCRequestParams ¶ added in v1.0.426
type ECCRequestParams struct { // 作文文本,必填 Content *string `json:"Content,omitnil,omitempty" name:"Content"` // 作文题目,可选参数 Title *string `json:"Title,omitnil,omitempty" name:"Title"` // 年级标准, 默认以cet4为标准,取值与意义如下:elementary 小学,grade7 grade8 grade9分别对应初一,初二,初三。 grade10 grade11 grade12 分别对应高一,高二,高三,以及cet4和cet6 分别表示 英语4级和6级。 Grade *string `json:"Grade,omitnil,omitempty" name:"Grade"` // 作文提纲,可选参数,作文的写作要求。 Requirement *string `json:"Requirement,omitnil,omitempty" name:"Requirement"` // 范文标题,可选参数,本接口可以依据提供的范文对作文进行评分。 ModelTitle *string `json:"ModelTitle,omitnil,omitempty" name:"ModelTitle"` // 范文内容,可选参数,同上,范文的正文部分。 ModelContent *string `json:"ModelContent,omitnil,omitempty" name:"ModelContent"` // 业务应用ID,与账号应用APPID无关,是用来方便客户管理服务的参数(暂时无需传入)。 EccAppid *string `json:"EccAppid,omitnil,omitempty" name:"EccAppid"` // 异步模式标识,0:同步模式,1:异步模式,默认为同步模式 IsAsync *int64 `json:"IsAsync,omitnil,omitempty" name:"IsAsync"` // 图像识别唯一标识,一次识别一个 SessionId。当传入此前识别接口使用过的 SessionId,则本次批改按图像批改价格收费;如使用了识别接口且本次没有传入 SessionId,则需要加取文本批改的费用;如果直接使用文本批改接口,则只收取文本批改的费用 SessionId *string `json:"SessionId,omitnil,omitempty" name:"SessionId"` }
Predefined struct for user
type ECCResponse ¶
type ECCResponse struct { *tchttp.BaseResponse Response *ECCResponseParams `json:"Response"` }
func NewECCResponse ¶
func NewECCResponse() (response *ECCResponse)
func (*ECCResponse) FromJsonString ¶
func (r *ECCResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ECCResponse) ToJsonString ¶
func (r *ECCResponse) ToJsonString() string
type ECCResponseParams ¶ added in v1.0.426
type ECCResponseParams struct { // 整体的批改结果 // 注意:此字段可能返回 null,表示取不到有效值。 Data *CorrectData `json:"Data,omitnil,omitempty" name:"Data"` // 任务 id,用于查询接口 // 注意:此字段可能返回 null,表示取不到有效值。 TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type EHOCRRequest ¶
type EHOCRRequest struct { *tchttp.BaseRequest // 图片所在的url或base64编码后的图像数据,依据InputType而定 Image *string `json:"Image,omitnil,omitempty" name:"Image"` // 输出图片类型,0 表示 Image 字段是图片所在的 url,1 表示 Image 字段是 base64 编码后的图像数据 InputType *int64 `json:"InputType,omitnil,omitempty" name:"InputType"` // 业务应用ID,与账号应用APPID无关,是用来方便客户管理服务的参数(暂时无需传入)。 EccAppid *string `json:"EccAppid,omitnil,omitempty" name:"EccAppid"` // 图像识别唯一标识,一次识别一个 SessionId,使用识别功能时 SessionId 可用于使用文本批改接口,此时按图像批改价格收费;如使用文本批改接口时没有传入 SessionId,则需要收取文本批改的费用 SessionId *string `json:"SessionId,omitnil,omitempty" name:"SessionId"` // 服务类型,0:“图像识别”,只返回识别结果,1:“图像批改”,同时返回识别结果与批改结果。默认为 0 ServerType *int64 `json:"ServerType,omitnil,omitempty" name:"ServerType"` // 作文题目,可选参数 Title *string `json:"Title,omitnil,omitempty" name:"Title"` // 年级标准, 默认以 cet4 为标准,取值与意义如下:elementary 小学,grade7 grade8 grade9分别对应初一,初二,初三。 grade10 grade11 grade12 分别对应高一,高二,高三,以及 cet4 和 cet6 分别表示 英语4级和6级。 Grade *string `json:"Grade,omitnil,omitempty" name:"Grade"` // 作文提纲,可选参数,作文的写作要求。 Requirement *string `json:"Requirement,omitnil,omitempty" name:"Requirement"` // 范文标题,可选参数,本接口可以依据提供的范文对作文进行评分。 ModelTitle *string `json:"ModelTitle,omitnil,omitempty" name:"ModelTitle"` // 范文内容,可选参数,同上,范文的正文部分。 ModelContent *string `json:"ModelContent,omitnil,omitempty" name:"ModelContent"` // 异步模式标识,0:同步模式,1:异步模式。默认为同步模式 IsAsync *int64 `json:"IsAsync,omitnil,omitempty" name:"IsAsync"` }
func NewEHOCRRequest ¶
func NewEHOCRRequest() (request *EHOCRRequest)
func (*EHOCRRequest) FromJsonString ¶
func (r *EHOCRRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*EHOCRRequest) ToJsonString ¶
func (r *EHOCRRequest) ToJsonString() string
type EHOCRRequestParams ¶ added in v1.0.426
type EHOCRRequestParams struct { // 图片所在的url或base64编码后的图像数据,依据InputType而定 Image *string `json:"Image,omitnil,omitempty" name:"Image"` // 输出图片类型,0 表示 Image 字段是图片所在的 url,1 表示 Image 字段是 base64 编码后的图像数据 InputType *int64 `json:"InputType,omitnil,omitempty" name:"InputType"` // 业务应用ID,与账号应用APPID无关,是用来方便客户管理服务的参数(暂时无需传入)。 EccAppid *string `json:"EccAppid,omitnil,omitempty" name:"EccAppid"` // 图像识别唯一标识,一次识别一个 SessionId,使用识别功能时 SessionId 可用于使用文本批改接口,此时按图像批改价格收费;如使用文本批改接口时没有传入 SessionId,则需要收取文本批改的费用 SessionId *string `json:"SessionId,omitnil,omitempty" name:"SessionId"` // 服务类型,0:“图像识别”,只返回识别结果,1:“图像批改”,同时返回识别结果与批改结果。默认为 0 ServerType *int64 `json:"ServerType,omitnil,omitempty" name:"ServerType"` // 作文题目,可选参数 Title *string `json:"Title,omitnil,omitempty" name:"Title"` // 年级标准, 默认以 cet4 为标准,取值与意义如下:elementary 小学,grade7 grade8 grade9分别对应初一,初二,初三。 grade10 grade11 grade12 分别对应高一,高二,高三,以及 cet4 和 cet6 分别表示 英语4级和6级。 Grade *string `json:"Grade,omitnil,omitempty" name:"Grade"` // 作文提纲,可选参数,作文的写作要求。 Requirement *string `json:"Requirement,omitnil,omitempty" name:"Requirement"` // 范文标题,可选参数,本接口可以依据提供的范文对作文进行评分。 ModelTitle *string `json:"ModelTitle,omitnil,omitempty" name:"ModelTitle"` // 范文内容,可选参数,同上,范文的正文部分。 ModelContent *string `json:"ModelContent,omitnil,omitempty" name:"ModelContent"` // 异步模式标识,0:同步模式,1:异步模式。默认为同步模式 IsAsync *int64 `json:"IsAsync,omitnil,omitempty" name:"IsAsync"` }
Predefined struct for user
type EHOCRResponse ¶
type EHOCRResponse struct { *tchttp.BaseResponse Response *EHOCRResponseParams `json:"Response"` }
func NewEHOCRResponse ¶
func NewEHOCRResponse() (response *EHOCRResponse)
func (*EHOCRResponse) FromJsonString ¶
func (r *EHOCRResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*EHOCRResponse) ToJsonString ¶
func (r *EHOCRResponse) ToJsonString() string
type EHOCRResponseParams ¶ added in v1.0.426
type EHOCRResponseParams struct { // 接口返回数据 // // Deprecated: Data is deprecated. Data *CompostionContext `json:"Data,omitnil,omitempty" name:"Data"` // 接口返回数据 ResultData *CompositionContext `json:"ResultData,omitnil,omitempty" name:"ResultData"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type ErrorCoordinate ¶
type ErrorCoordinate struct { // 维度单词坐标 Coordinate []*int64 `json:"Coordinate,omitnil,omitempty" name:"Coordinate"` }
type ScoreCategory ¶
type ScoreCategory struct { // 词汇维度 Words *Aspect `json:"Words,omitnil,omitempty" name:"Words"` // 句子维度 Sentences *Aspect `json:"Sentences,omitnil,omitempty" name:"Sentences"` // 篇章结构维度 Structure *Aspect `json:"Structure,omitnil,omitempty" name:"Structure"` // 内容维度 Content *Aspect `json:"Content,omitnil,omitempty" name:"Content"` // 维度得分 Score *float64 `json:"Score,omitnil,omitempty" name:"Score"` // 维度分数占比 Percentage *float64 `json:"Percentage,omitnil,omitempty" name:"Percentage"` }
type SentenceCom ¶
type SentenceCom struct { // 句子错误纠正信息 Suggestions []*SentenceSuggest `json:"Suggestions,omitnil,omitempty" name:"Suggestions"` // 句子信息 Sentence *SentenceItem `json:"Sentence,omitnil,omitempty" name:"Sentence"` }
type SentenceItem ¶
type SentenceSuggest ¶
type SentenceSuggest struct { // 类型 Type *string `json:"Type,omitnil,omitempty" name:"Type"` // 错误类型 ErrorType *string `json:"ErrorType,omitnil,omitempty" name:"ErrorType"` // 原始单词 Origin *string `json:"Origin,omitnil,omitempty" name:"Origin"` // 替换成 的单词 Replace *string `json:"Replace,omitnil,omitempty" name:"Replace"` // 提示信息 Message *string `json:"Message,omitnil,omitempty" name:"Message"` // 维度单词位置,在句子的第几个到第几个单词之间 ErrorPosition []*int64 `json:"ErrorPosition,omitnil,omitempty" name:"ErrorPosition"` // 维度单词坐标,错误单词在图片中的坐标,只有传图片时正常返回,传文字时返回[ ] ErrorCoordinates []*ErrorCoordinate `json:"ErrorCoordinates,omitnil,omitempty" name:"ErrorCoordinates"` }