Versions in this module Expand all Collapse all v0 v0.3.0 Jan 25, 2023 v0.2.0 Jan 25, 2023 v0.1.0 Jan 25, 2023 Changes in this version + var EndpointMap map[string]string + var EndpointType = "regional" + func GetEndpointMap() map[string]string + func GetEndpointType() string + func SetClientProperty(client *Client, propertyName string, propertyValue interface{}) + func SetEndpointDataToClient(client *Client) + type AddMTInterveneWordRequest struct + PackageId string + Product string + ProjectId string + SourceText string + TargetText string + TenantId requests.Integer + func CreateAddMTInterveneWordRequest() (request *AddMTInterveneWordRequest) + type AddMTInterveneWordResponse struct + Code int + Message int + RequestId string + WordId string + func CreateAddMTInterveneWordResponse() (response *AddMTInterveneWordResponse) + type AddMtIntervenePackageRequest struct + Category string + PackageName string + Product string + ProjectId requests.Integer + ProjectType string + SourceLanguage string + SourceType string + TargetLanguage string + TenantId requests.Integer + func CreateAddMtIntervenePackageRequest() (request *AddMtIntervenePackageRequest) + type AddMtIntervenePackageResponse struct + Code int + Message int + PackageId string + RequestId string + func CreateAddMtIntervenePackageResponse() (response *AddMtIntervenePackageResponse) + type BindIntervenePackageAndModelRequest struct + ModelId requests.Integer + ModelVersion string + PackageId requests.Integer + Product string + ProjectId requests.Integer + TenantId requests.Integer + func CreateBindIntervenePackageAndModelRequest() (request *BindIntervenePackageAndModelRequest) + type BindIntervenePackageAndModelResponse struct + Code int + Message int + RequestId string + Success string + func CreateBindIntervenePackageAndModelResponse() (response *BindIntervenePackageAndModelResponse) + type Client struct + func NewClient() (client *Client, err error) + func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) + func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) + func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error) + func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error) + func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) + func NewClientWithRamRoleArnAndPolicy(regionId string, ...) (client *Client, err error) + func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) + func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) + func (client *Client) AddMTInterveneWord(request *AddMTInterveneWordRequest) (response *AddMTInterveneWordResponse, err error) + func (client *Client) AddMTInterveneWordWithCallback(request *AddMTInterveneWordRequest, ...) <-chan int + func (client *Client) AddMTInterveneWordWithChan(request *AddMTInterveneWordRequest) (<-chan *AddMTInterveneWordResponse, <-chan error) + func (client *Client) AddMtIntervenePackage(request *AddMtIntervenePackageRequest) (response *AddMtIntervenePackageResponse, err error) + func (client *Client) AddMtIntervenePackageWithCallback(request *AddMtIntervenePackageRequest, ...) <-chan int + func (client *Client) AddMtIntervenePackageWithChan(request *AddMtIntervenePackageRequest) (<-chan *AddMtIntervenePackageResponse, <-chan error) + func (client *Client) BindIntervenePackageAndModel(request *BindIntervenePackageAndModelRequest) (response *BindIntervenePackageAndModelResponse, err error) + func (client *Client) BindIntervenePackageAndModelWithCallback(request *BindIntervenePackageAndModelRequest, ...) <-chan int + func (client *Client) BindIntervenePackageAndModelWithChan(request *BindIntervenePackageAndModelRequest) (<-chan *BindIntervenePackageAndModelResponse, <-chan error) + func (client *Client) CreateAsyncPredict(request *CreateAsyncPredictRequest) (response *CreateAsyncPredictResponse, err error) + func (client *Client) CreateAsyncPredictWithCallback(request *CreateAsyncPredictRequest, ...) <-chan int + func (client *Client) CreateAsyncPredictWithChan(request *CreateAsyncPredictRequest) (<-chan *CreateAsyncPredictResponse, <-chan error) + func (client *Client) CreateDataset(request *CreateDatasetRequest) (response *CreateDatasetResponse, err error) + func (client *Client) CreateDatasetRecord(request *CreateDatasetRecordRequest) (response *CreateDatasetRecordResponse, err error) + func (client *Client) CreateDatasetRecordWithCallback(request *CreateDatasetRecordRequest, ...) <-chan int + func (client *Client) CreateDatasetRecordWithChan(request *CreateDatasetRecordRequest) (<-chan *CreateDatasetRecordResponse, <-chan error) + func (client *Client) CreateDatasetWithCallback(request *CreateDatasetRequest, ...) <-chan int + func (client *Client) CreateDatasetWithChan(request *CreateDatasetRequest) (<-chan *CreateDatasetResponse, <-chan error) + func (client *Client) CreateModel(request *CreateModelRequest) (response *CreateModelResponse, err error) + func (client *Client) CreateModelWithCallback(request *CreateModelRequest, ...) <-chan int + func (client *Client) CreateModelWithChan(request *CreateModelRequest) (<-chan *CreateModelResponse, <-chan error) + func (client *Client) CreateProject(request *CreateProjectRequest) (response *CreateProjectResponse, err error) + func (client *Client) CreateProjectWithCallback(request *CreateProjectRequest, ...) <-chan int + func (client *Client) CreateProjectWithChan(request *CreateProjectRequest) (<-chan *CreateProjectResponse, <-chan error) + func (client *Client) DeleteModel(request *DeleteModelRequest) (response *DeleteModelResponse, err error) + func (client *Client) DeleteModelWithCallback(request *DeleteModelRequest, ...) <-chan int + func (client *Client) DeleteModelWithChan(request *DeleteModelRequest) (<-chan *DeleteModelResponse, <-chan error) + func (client *Client) DeployModel(request *DeployModelRequest) (response *DeployModelResponse, err error) + func (client *Client) DeployModelWithCallback(request *DeployModelRequest, ...) <-chan int + func (client *Client) DeployModelWithChan(request *DeployModelRequest) (<-chan *DeployModelResponse, <-chan error) + func (client *Client) GetAsyncPredict(request *GetAsyncPredictRequest) (response *GetAsyncPredictResponse, err error) + func (client *Client) GetAsyncPredictWithCallback(request *GetAsyncPredictRequest, ...) <-chan int + func (client *Client) GetAsyncPredictWithChan(request *GetAsyncPredictRequest) (<-chan *GetAsyncPredictResponse, <-chan error) + func (client *Client) GetModel(request *GetModelRequest) (response *GetModelResponse, err error) + func (client *Client) GetModelWithCallback(request *GetModelRequest, callback func(response *GetModelResponse, err error)) <-chan int + func (client *Client) GetModelWithChan(request *GetModelRequest) (<-chan *GetModelResponse, <-chan error) + func (client *Client) GetPredictDoc(request *GetPredictDocRequest) (response *GetPredictDocResponse, err error) + func (client *Client) GetPredictDocWithCallback(request *GetPredictDocRequest, ...) <-chan int + func (client *Client) GetPredictDocWithChan(request *GetPredictDocRequest) (<-chan *GetPredictDocResponse, <-chan error) + func (client *Client) GetPredictResult(request *GetPredictResultRequest) (response *GetPredictResultResponse, err error) + func (client *Client) GetPredictResultWithCallback(request *GetPredictResultRequest, ...) <-chan int + func (client *Client) GetPredictResultWithChan(request *GetPredictResultRequest) (<-chan *GetPredictResultResponse, <-chan error) + func (client *Client) InvokeAction(request *InvokeActionRequest) (response *InvokeActionResponse, err error) + func (client *Client) InvokeActionWithCallback(request *InvokeActionRequest, ...) <-chan int + func (client *Client) InvokeActionWithChan(request *InvokeActionRequest) (<-chan *InvokeActionResponse, <-chan error) + func (client *Client) ListDataset(request *ListDatasetRequest) (response *ListDatasetResponse, err error) + func (client *Client) ListDatasetWithCallback(request *ListDatasetRequest, ...) <-chan int + func (client *Client) ListDatasetWithChan(request *ListDatasetRequest) (<-chan *ListDatasetResponse, <-chan error) + func (client *Client) ListModels(request *ListModelsRequest) (response *ListModelsResponse, err error) + func (client *Client) ListModelsWithCallback(request *ListModelsRequest, ...) <-chan int + func (client *Client) ListModelsWithChan(request *ListModelsRequest) (<-chan *ListModelsResponse, <-chan error) + func (client *Client) PredictMTModel(request *PredictMTModelRequest) (response *PredictMTModelResponse, err error) + func (client *Client) PredictMTModelByDoc(request *PredictMTModelByDocRequest) (response *PredictMTModelByDocResponse, err error) + func (client *Client) PredictMTModelByDocWithCallback(request *PredictMTModelByDocRequest, ...) <-chan int + func (client *Client) PredictMTModelByDocWithChan(request *PredictMTModelByDocRequest) (<-chan *PredictMTModelByDocResponse, <-chan error) + func (client *Client) PredictMTModelWithCallback(request *PredictMTModelRequest, ...) <-chan int + func (client *Client) PredictMTModelWithChan(request *PredictMTModelRequest) (<-chan *PredictMTModelResponse, <-chan error) + func (client *Client) RunContactReview(request *RunContactReviewRequest) (response *RunContactReviewResponse, err error) + func (client *Client) RunContactReviewWithCallback(request *RunContactReviewRequest, ...) <-chan int + func (client *Client) RunContactReviewWithChan(request *RunContactReviewRequest) (<-chan *RunContactReviewResponse, <-chan error) + func (client *Client) RunPreTrainService(request *RunPreTrainServiceRequest) (response *RunPreTrainServiceResponse, err error) + func (client *Client) RunPreTrainServiceWithCallback(request *RunPreTrainServiceRequest, ...) <-chan int + func (client *Client) RunPreTrainServiceWithChan(request *RunPreTrainServiceRequest) (<-chan *RunPreTrainServiceResponse, <-chan error) + func (client *Client) RunSmartCallService(request *RunSmartCallServiceRequest) (response *RunSmartCallServiceResponse, err error) + func (client *Client) RunSmartCallServiceWithCallback(request *RunSmartCallServiceRequest, ...) <-chan int + func (client *Client) RunSmartCallServiceWithChan(request *RunSmartCallServiceRequest) (<-chan *RunSmartCallServiceResponse, <-chan error) + type ContactContent struct + ReviewResults []ReviewResult + StructureResults []StructureResult + type CreateAsyncPredictRequest struct + Content string + DetailTag string + FetchContent string + FileContent string + FileType string + FileUrl string + ModelId requests.Integer + ModelVersion string + Product string + TopK requests.Integer + func CreateCreateAsyncPredictRequest() (request *CreateAsyncPredictRequest) + type CreateAsyncPredictResponse struct + AsyncPredictId int64 + RequestId string + func CreateCreateAsyncPredictResponse() (response *CreateAsyncPredictResponse) + type CreateDatasetRecordRequest struct + DatasetId requests.Integer + DatasetRecord string + ProjectId requests.Integer + func CreateCreateDatasetRecordRequest() (request *CreateDatasetRecordRequest) + type CreateDatasetRecordResponse struct + Code int + DatasetRecordId map[string]interface{} + Message string + RequestId string + Success bool + func CreateCreateDatasetRecordResponse() (response *CreateDatasetRecordResponse) + type CreateDatasetRequest struct + DatasetName string + Product string + ProjectId requests.Integer + func CreateCreateDatasetRequest() (request *CreateDatasetRequest) + type CreateDatasetResponse struct + Code int + DatasetId map[string]interface{} + Message string + RequestId string + Success bool + func CreateCreateDatasetResponse() (response *CreateDatasetResponse) + type CreateModelRequest struct + DatasetIdList map[string]interface{} + IsIncrementalTrain string + ModelId requests.Integer + ModelName string + ModelType string + Product string + ProjectId requests.Integer + TestDatasetIdList map[string]interface{} + func CreateCreateModelRequest() (request *CreateModelRequest) + type CreateModelResponse struct + Code int + Data map[string]interface{} + Message string + RequestId string + Success bool + func CreateCreateModelResponse() (response *CreateModelResponse) + type CreateProjectRequest struct + Product string + ProjectDescription string + ProjectName string + ProjectType string + func CreateCreateProjectRequest() (request *CreateProjectRequest) + type CreateProjectResponse struct + Code int + Message string + ProjectId map[string]interface{} + RequestId string + Success bool + func CreateCreateProjectResponse() (response *CreateProjectResponse) + type DeleteModelRequest struct + ModelId requests.Integer + Product string + ProjectId requests.Integer + func CreateDeleteModelRequest() (request *DeleteModelRequest) + type DeleteModelResponse struct + Code int + Data map[string]interface{} + Message string + RequestId string + Success bool + func CreateDeleteModelResponse() (response *DeleteModelResponse) + type DeployModelRequest struct + ModelId requests.Integer + ModelVersion string + OptType string + Product string + ProjectId requests.Integer + func CreateDeployModelRequest() (request *DeployModelRequest) + type DeployModelResponse struct + Code int + Data map[string]interface{} + Message string + RequestId string + Success bool + func CreateDeployModelResponse() (response *DeployModelResponse) + type EndPositionInRunContactReview struct + EndPosition []string + type GetAsyncPredictRequest struct + AsyncPredictId requests.Integer + Product string + func CreateGetAsyncPredictRequest() (request *GetAsyncPredictRequest) + type GetAsyncPredictResponse struct + AsyncPredictId int + Content string + RequestId string + Status int + func CreateGetAsyncPredictResponse() (response *GetAsyncPredictResponse) + type GetModelRequest struct + ModelId requests.Integer + ModelVersion string + Product string + ProjectId requests.Integer + func CreateGetModelRequest() (request *GetModelRequest) + type GetModelResponse struct + Code int + Data map[string]interface{} + Message string + RequestId string + Success bool + func CreateGetModelResponse() (response *GetModelResponse) + type GetPredictDocRequest struct + DocId requests.Integer + Product string + func CreateGetPredictDocRequest() (request *GetPredictDocRequest) + type GetPredictDocResponse struct + RequestId string + ResultContent string + Status int + XLIFFInfo string + func CreateGetPredictDocResponse() (response *GetPredictDocResponse) + type GetPredictResultRequest struct + Content string + DetailTag string + ModelId requests.Integer + ModelVersion string + Product string + TopK requests.Integer + func CreateGetPredictResultRequest() (request *GetPredictResultRequest) + type GetPredictResultResponse struct + Content string + RequestId string + func CreateGetPredictResultResponse() (response *GetPredictResultResponse) + type InvokeActionRequest struct + InvokeAction string + InvokeParams string + InvokeProduct string + InvokeRegion string + func CreateInvokeActionRequest() (request *InvokeActionRequest) + type InvokeActionResponse struct + Code int + Data string + Message int + RequestId string + func CreateInvokeActionResponse() (response *InvokeActionResponse) + type ListDatasetRequest struct + PageNumber requests.Integer + PageSize requests.Integer + Product string + ProjectId requests.Integer + func CreateListDatasetRequest() (request *ListDatasetRequest) + type ListDatasetResponse struct + Code int + Data map[string]interface{} + Message string + RequestId string + Success bool + func CreateListDatasetResponse() (response *ListDatasetResponse) + type ListModelsRequest struct + PageNumber requests.Integer + PageSize requests.Integer + Product string + ProjectId requests.Integer + func CreateListModelsRequest() (request *ListModelsRequest) + type ListModelsResponse struct + Code int + Data map[string]interface{} + Message string + RequestId string + Success bool + func CreateListModelsResponse() (response *ListModelsResponse) + type PredictMTModelByDocRequest struct + FileContent string + FileType string + ModelId requests.Integer + ModelVersion string + NeedXLIFF requests.Boolean + Product string + func CreatePredictMTModelByDocRequest() (request *PredictMTModelByDocRequest) + type PredictMTModelByDocResponse struct + DocId string + RequestId string + func CreatePredictMTModelByDocResponse() (response *PredictMTModelByDocResponse) + type PredictMTModelRequest struct + Content string + ModelId string + ModelVersion string + Product string + func CreatePredictMTModelRequest() (request *PredictMTModelRequest) + type PredictMTModelResponse struct + Code int + Data string + Message int + RequestId string + func CreatePredictMTModelResponse() (response *PredictMTModelResponse) + type ReviewResult struct + EndPosition []string + ModificationSuggestion string + Reason string + RiskLevel string + StartPosition []string + Type string + Value []string + type ReviewResults struct + ReviewResult []ReviewResult + type RunContactReviewRequest struct + ContactPath string + ContactScene string + Product string + func CreateRunContactReviewRequest() (request *RunContactReviewRequest) + type RunContactReviewResponse struct + ContactContent ContactContent + RawContractContent string + RequestId string + func CreateRunContactReviewResponse() (response *RunContactReviewResponse) + type RunPreTrainServiceRequest struct + PredictContent string + Product string + ServiceName string + ServiceVersion string + func CreateRunPreTrainServiceRequest() (request *RunPreTrainServiceRequest) + type RunPreTrainServiceResponse struct + PredictResult string + RequestId string + func CreateRunPreTrainServiceResponse() (response *RunPreTrainServiceResponse) + type RunSmartCallServiceRequest struct + ParamContent string + Product string + RobotId requests.Integer + ServiceName string + SessionId string + func CreateRunSmartCallServiceRequest() (request *RunSmartCallServiceRequest) + type RunSmartCallServiceResponse struct + Code int + Data string + Message string + RequestId string + func CreateRunSmartCallServiceResponse() (response *RunSmartCallServiceResponse) + type StartPositionInRunContactReview struct + StartPosition []string + type StructureResult struct + EndPosition []string + Name string + StartPosition []string + Type string + Value []string + type StructureResults struct + StructureResult []StructureResult + type ValueInRunContactReview struct + Value []string