v20181213

package
v3.0.81+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const APIVersion = "2018-12-13"

Variables

This section is empty.

Functions

This section is empty.

Types

type Aspect

type Aspect struct {

	// 项目 名字
	Name *string `json:"Name,omitempty" name:"Name"`

	// 该项得分
	Score *float64 `json:"Score,omitempty" name:"Score"`
}

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)

func NewClientWithSecretId

func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error)

Deprecated

func (*Client) ECC

func (c *Client) ECC(request *ECCRequest) (response *ECCResponse, err error)

接口请求域名: ecc.tencentcloudapi.com 纯文本英语作文批改

func (*Client) EHOCR

func (c *Client) EHOCR(request *EHOCRRequest) (response *EHOCRResponse, err error)

https://ecc.tencentcloudapi.com/?Action=EHOCR 作文识别

type CompostionContext

type CompostionContext struct {

	// 作文内容
	Content *string `json:"Content,omitempty" name:"Content"`
}

type CorrectData

type CorrectData struct {

	// 总得分
	Score *float64 `json:"Score,omitempty" name:"Score"`

	// 各项得分详情
	ScoreCat *ScoreCategory `json:"ScoreCat,omitempty" name:"ScoreCat"`

	// 综合评价
	Comment *string `json:"Comment,omitempty" name:"Comment"`

	// 句子点评
	SentenceComments []*SentenceCom `json:"SentenceComments,omitempty" name:"SentenceComments" list`
}

type ECCRequest

type ECCRequest struct {
	*tchttp.BaseRequest

	// 作文文本,必填
	Content *string `json:"Content,omitempty" name:"Content"`

	// 作文题目,可选参数
	Title *string `json:"Title,omitempty" name:"Title"`

	// 年级标准, 默认以cet4为标准,取值与意义如下:elementary 小学,grade7 grade8 grade9分别对应初一,初二,初三。 grade10 grade11 grade12 分别对应高一,高二,高三,以及cet4和cet6 分别表示 英语4级和6级。
	Grade *string `json:"Grade,omitempty" name:"Grade"`

	// 作文提纲,可选参数,作文的写作要求。
	Outline *string `json:"Outline,omitempty" name:"Outline"`

	// 范文标题,可选参数,本接口可以依据提供的范文对作文进行评分。
	ModelSubject *string `json:"ModelSubject,omitempty" name:"ModelSubject"`

	// 范文内容,可选参数,同上,范文的正文部分。
	ModelContent *string `json:"ModelContent,omitempty" name:"ModelContent"`
}

func NewECCRequest

func NewECCRequest() (request *ECCRequest)

func (*ECCRequest) FromJsonString

func (r *ECCRequest) FromJsonString(s string) error

func (*ECCRequest) ToJsonString

func (r *ECCRequest) ToJsonString() string

type ECCResponse

type ECCResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 整体的批改结果
		Data *CorrectData `json:"Data,omitempty" name:"Data"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewECCResponse

func NewECCResponse() (response *ECCResponse)

func (*ECCResponse) FromJsonString

func (r *ECCResponse) FromJsonString(s string) error

func (*ECCResponse) ToJsonString

func (r *ECCResponse) ToJsonString() string

type EHOCRRequest

type EHOCRRequest struct {
	*tchttp.BaseRequest

	// 图片所在的url或base64编码后的图像数据,依据InputType而定
	Image *string `json:"Image,omitempty" name:"Image"`

	// 输出图片类型,0表示Image字段是图片所在的url,1表示Image字段是base64编码后的图像数据
	InputType *int64 `json:"InputType,omitempty" name:"InputType"`
}

func NewEHOCRRequest

func NewEHOCRRequest() (request *EHOCRRequest)

func (*EHOCRRequest) FromJsonString

func (r *EHOCRRequest) FromJsonString(s string) error

func (*EHOCRRequest) ToJsonString

func (r *EHOCRRequest) ToJsonString() string

type EHOCRResponse

type EHOCRResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 识别后的作文内容
		Data *CompostionContext `json:"Data,omitempty" name:"Data"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewEHOCRResponse

func NewEHOCRResponse() (response *EHOCRResponse)

func (*EHOCRResponse) FromJsonString

func (r *EHOCRResponse) FromJsonString(s string) error

func (*EHOCRResponse) ToJsonString

func (r *EHOCRResponse) ToJsonString() string

type ScoreCategory

type ScoreCategory struct {

	// 词汇项
	Words *Aspect `json:"Words,omitempty" name:"Words"`

	// 句子项
	Sentences *Aspect `json:"Sentences,omitempty" name:"Sentences"`

	// 篇章结构
	Structure *Aspect `json:"Structure,omitempty" name:"Structure"`

	// 内容
	Content *Aspect `json:"Content,omitempty" name:"Content"`
}

type SentenceCom

type SentenceCom struct {

	// 点评内容
	Suggestions []*SentenceSuggest `json:"Suggestions,omitempty" name:"Suggestions" list`

	// 点评的句子信息
	Sentence *SentenceItem `json:"Sentence,omitempty" name:"Sentence"`
}

type SentenceItem

type SentenceItem struct {

	// 英语句子
	Sentence *string `json:"Sentence,omitempty" name:"Sentence"`

	// 段落id
	ParaID *int64 `json:"ParaID,omitempty" name:"ParaID"`

	// 句子id
	SentenceID *int64 `json:"SentenceID,omitempty" name:"SentenceID"`
}

type SentenceSuggest

type SentenceSuggest struct {

	// 类型
	Type *string `json:"Type,omitempty" name:"Type"`

	// 错误类型
	ErrorType *string `json:"ErrorType,omitempty" name:"ErrorType"`

	// 原始单词
	Origin *string `json:"Origin,omitempty" name:"Origin"`

	// 替换成 的单词
	Replace *string `json:"Replace,omitempty" name:"Replace"`

	// 提示信息
	Message *string `json:"Message,omitempty" name:"Message"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL