nlp_automl

package
v1.63.8 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EndpointMap map[string]string

EndpointMap Endpoint Data

View Source
var EndpointType = "regional"

EndpointType regional or central

Functions

func GetEndpointMap

func GetEndpointMap() map[string]string

GetEndpointMap Get Endpoint Data Map

func GetEndpointType

func GetEndpointType() string

GetEndpointType Get Endpoint Type Value

func SetClientProperty

func SetClientProperty(client *Client, propertyName string, propertyValue interface{})

SetClientProperty Set Property by Reflect

func SetEndpointDataToClient

func SetEndpointDataToClient(client *Client)

SetEndpointDataToClient Set EndpointMap and ENdpointType

Types

type Client

type Client struct {
	sdk.Client
}

Client is the sdk client struct, each func corresponds to an OpenAPI

func NewClient

func NewClient() (client *Client, err error)

NewClient creates a sdk client with environment variables

func NewClientWithAccessKey

func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error)

NewClientWithAccessKey is a shortcut to create sdk client with accesskey usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithEcsRamRole

func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error)

NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithOptions

func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error)

NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential this is the common api to create a sdk client

func NewClientWithProvider

func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error)

NewClientWithProvider creates a sdk client with providers usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithRamRoleArn

func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error)

NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithRamRoleArnAndPolicy

func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error)

NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn and policy usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithRsaKeyPair

func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error)

NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithStsToken

func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error)

NewClientWithStsToken is a shortcut to create sdk client with sts token usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func (*Client) CreateAsyncPredict

func (client *Client) CreateAsyncPredict(request *CreateAsyncPredictRequest) (response *CreateAsyncPredictResponse, err error)

CreateAsyncPredict invokes the nlp_automl.CreateAsyncPredict API synchronously

func (*Client) CreateAsyncPredictWithCallback

func (client *Client) CreateAsyncPredictWithCallback(request *CreateAsyncPredictRequest, callback func(response *CreateAsyncPredictResponse, err error)) <-chan int

CreateAsyncPredictWithCallback invokes the nlp_automl.CreateAsyncPredict API asynchronously

func (*Client) CreateAsyncPredictWithChan

func (client *Client) CreateAsyncPredictWithChan(request *CreateAsyncPredictRequest) (<-chan *CreateAsyncPredictResponse, <-chan error)

CreateAsyncPredictWithChan invokes the nlp_automl.CreateAsyncPredict API asynchronously

func (*Client) FindUserReport4Alinlp added in v1.62.231

func (client *Client) FindUserReport4Alinlp(request *FindUserReport4AlinlpRequest) (response *FindUserReport4AlinlpResponse, err error)

FindUserReport4Alinlp invokes the nlp_automl.FindUserReport4Alinlp API synchronously

func (*Client) FindUserReport4AlinlpWithCallback added in v1.62.231

func (client *Client) FindUserReport4AlinlpWithCallback(request *FindUserReport4AlinlpRequest, callback func(response *FindUserReport4AlinlpResponse, err error)) <-chan int

FindUserReport4AlinlpWithCallback invokes the nlp_automl.FindUserReport4Alinlp API asynchronously

func (*Client) FindUserReport4AlinlpWithChan added in v1.62.231

func (client *Client) FindUserReport4AlinlpWithChan(request *FindUserReport4AlinlpRequest) (<-chan *FindUserReport4AlinlpResponse, <-chan error)

FindUserReport4AlinlpWithChan invokes the nlp_automl.FindUserReport4Alinlp API asynchronously

func (*Client) GetAsyncPredict

func (client *Client) GetAsyncPredict(request *GetAsyncPredictRequest) (response *GetAsyncPredictResponse, err error)

GetAsyncPredict invokes the nlp_automl.GetAsyncPredict API synchronously

func (*Client) GetAsyncPredictWithCallback

func (client *Client) GetAsyncPredictWithCallback(request *GetAsyncPredictRequest, callback func(response *GetAsyncPredictResponse, err error)) <-chan int

GetAsyncPredictWithCallback invokes the nlp_automl.GetAsyncPredict API asynchronously

func (*Client) GetAsyncPredictWithChan

func (client *Client) GetAsyncPredictWithChan(request *GetAsyncPredictRequest) (<-chan *GetAsyncPredictResponse, <-chan error)

GetAsyncPredictWithChan invokes the nlp_automl.GetAsyncPredict API asynchronously

func (*Client) GetPredictResult

func (client *Client) GetPredictResult(request *GetPredictResultRequest) (response *GetPredictResultResponse, err error)

GetPredictResult invokes the nlp_automl.GetPredictResult API synchronously

func (*Client) GetPredictResultHigh added in v1.62.412

func (client *Client) GetPredictResultHigh(request *GetPredictResultHighRequest) (response *GetPredictResultHighResponse, err error)

GetPredictResultHigh invokes the nlp_automl.GetPredictResultHigh API synchronously

func (*Client) GetPredictResultHighWithCallback added in v1.62.412

func (client *Client) GetPredictResultHighWithCallback(request *GetPredictResultHighRequest, callback func(response *GetPredictResultHighResponse, err error)) <-chan int

GetPredictResultHighWithCallback invokes the nlp_automl.GetPredictResultHigh API asynchronously

func (*Client) GetPredictResultHighWithChan added in v1.62.412

func (client *Client) GetPredictResultHighWithChan(request *GetPredictResultHighRequest) (<-chan *GetPredictResultHighResponse, <-chan error)

GetPredictResultHighWithChan invokes the nlp_automl.GetPredictResultHigh API asynchronously

func (*Client) GetPredictResultWithCallback

func (client *Client) GetPredictResultWithCallback(request *GetPredictResultRequest, callback func(response *GetPredictResultResponse, err error)) <-chan int

GetPredictResultWithCallback invokes the nlp_automl.GetPredictResult API asynchronously

func (*Client) GetPredictResultWithChan

func (client *Client) GetPredictResultWithChan(request *GetPredictResultRequest) (<-chan *GetPredictResultResponse, <-chan error)

GetPredictResultWithChan invokes the nlp_automl.GetPredictResult API asynchronously

func (*Client) RunPreTrainService added in v1.61.116

func (client *Client) RunPreTrainService(request *RunPreTrainServiceRequest) (response *RunPreTrainServiceResponse, err error)

RunPreTrainService invokes the nlp_automl.RunPreTrainService API synchronously

func (*Client) RunPreTrainServiceNew added in v1.62.407

func (client *Client) RunPreTrainServiceNew(request *RunPreTrainServiceNewRequest) (response *RunPreTrainServiceNewResponse, err error)

RunPreTrainServiceNew invokes the nlp_automl.RunPreTrainServiceNew API synchronously

func (*Client) RunPreTrainServiceNewWithCallback added in v1.62.407

func (client *Client) RunPreTrainServiceNewWithCallback(request *RunPreTrainServiceNewRequest, callback func(response *RunPreTrainServiceNewResponse, err error)) <-chan int

RunPreTrainServiceNewWithCallback invokes the nlp_automl.RunPreTrainServiceNew API asynchronously

func (*Client) RunPreTrainServiceNewWithChan added in v1.62.407

func (client *Client) RunPreTrainServiceNewWithChan(request *RunPreTrainServiceNewRequest) (<-chan *RunPreTrainServiceNewResponse, <-chan error)

RunPreTrainServiceNewWithChan invokes the nlp_automl.RunPreTrainServiceNew API asynchronously

func (*Client) RunPreTrainServiceWithCallback added in v1.61.116

func (client *Client) RunPreTrainServiceWithCallback(request *RunPreTrainServiceRequest, callback func(response *RunPreTrainServiceResponse, err error)) <-chan int

RunPreTrainServiceWithCallback invokes the nlp_automl.RunPreTrainService API asynchronously

func (*Client) RunPreTrainServiceWithChan added in v1.61.116

func (client *Client) RunPreTrainServiceWithChan(request *RunPreTrainServiceRequest) (<-chan *RunPreTrainServiceResponse, <-chan error)

RunPreTrainServiceWithChan invokes the nlp_automl.RunPreTrainService API asynchronously

type CreateAsyncPredictRequest

type CreateAsyncPredictRequest struct {
	*requests.RpcRequest
	TopK           requests.Integer `position:"Body" name:"TopK"`
	FileType       string           `position:"Body" name:"FileType"`
	DetailTag      string           `position:"Body" name:"DetailTag"`
	FetchContent   string           `position:"Body" name:"FetchContent"`
	Content        string           `position:"Body" name:"Content"`
	FileContent    string           `position:"Body" name:"FileContent"`
	ServiceName    string           `position:"Body" name:"ServiceName"`
	Product        string           `position:"Body" name:"Product"`
	ModelId        requests.Integer `position:"Body" name:"ModelId"`
	ServiceVersion string           `position:"Body" name:"ServiceVersion"`
	FileUrl        string           `position:"Body" name:"FileUrl"`
	ModelVersion   string           `position:"Body" name:"ModelVersion"`
}

CreateAsyncPredictRequest is the request struct for api CreateAsyncPredict

func CreateCreateAsyncPredictRequest

func CreateCreateAsyncPredictRequest() (request *CreateAsyncPredictRequest)

CreateCreateAsyncPredictRequest creates a request to invoke CreateAsyncPredict API

type CreateAsyncPredictResponse

type CreateAsyncPredictResponse struct {
	*responses.BaseResponse
	AsyncPredictId int64  `json:"AsyncPredictId" xml:"AsyncPredictId"`
	RequestId      string `json:"RequestId" xml:"RequestId"`
}

CreateAsyncPredictResponse is the response struct for api CreateAsyncPredict

func CreateCreateAsyncPredictResponse

func CreateCreateAsyncPredictResponse() (response *CreateAsyncPredictResponse)

CreateCreateAsyncPredictResponse creates a response to parse from CreateAsyncPredict response

type Data added in v1.62.231

type Data struct {
	Report []Report `json:"report" xml:"report"`
}

Data is a nested struct in nlp_automl response

type FindUserReport4AlinlpRequest added in v1.62.231

type FindUserReport4AlinlpRequest struct {
	*requests.RpcRequest
	CustomerUserParentId requests.Integer `position:"Body" name:"CustomerUserParentId"`
	EndTime              string           `position:"Body" name:"EndTime"`
	BeginTime            string           `position:"Body" name:"BeginTime"`
	Type                 string           `position:"Body" name:"Type"`
	ModelType            string           `position:"Body" name:"ModelType"`
}

FindUserReport4AlinlpRequest is the request struct for api FindUserReport4Alinlp

func CreateFindUserReport4AlinlpRequest added in v1.62.231

func CreateFindUserReport4AlinlpRequest() (request *FindUserReport4AlinlpRequest)

CreateFindUserReport4AlinlpRequest creates a request to invoke FindUserReport4Alinlp API

type FindUserReport4AlinlpResponse added in v1.62.231

type FindUserReport4AlinlpResponse struct {
	*responses.BaseResponse
	RequestId string   `json:"RequestId" xml:"RequestId"`
	Code      string   `json:"Code" xml:"Code"`
	Data      []Report `json:"Data" xml:"Data"`
}

FindUserReport4AlinlpResponse is the response struct for api FindUserReport4Alinlp

func CreateFindUserReport4AlinlpResponse added in v1.62.231

func CreateFindUserReport4AlinlpResponse() (response *FindUserReport4AlinlpResponse)

CreateFindUserReport4AlinlpResponse creates a response to parse from FindUserReport4Alinlp response

type GetAsyncPredictRequest

type GetAsyncPredictRequest struct {
	*requests.RpcRequest
	Product        string           `position:"Query" name:"Product"`
	AsyncPredictId requests.Integer `position:"Query" name:"AsyncPredictId"`
}

GetAsyncPredictRequest is the request struct for api GetAsyncPredict

func CreateGetAsyncPredictRequest

func CreateGetAsyncPredictRequest() (request *GetAsyncPredictRequest)

CreateGetAsyncPredictRequest creates a request to invoke GetAsyncPredict API

type GetAsyncPredictResponse

type GetAsyncPredictResponse struct {
	*responses.BaseResponse
	AsyncPredictId int    `json:"AsyncPredictId" xml:"AsyncPredictId"`
	Status         int    `json:"Status" xml:"Status"`
	RequestId      string `json:"RequestId" xml:"RequestId"`
	Content        string `json:"Content" xml:"Content"`
}

GetAsyncPredictResponse is the response struct for api GetAsyncPredict

func CreateGetAsyncPredictResponse

func CreateGetAsyncPredictResponse() (response *GetAsyncPredictResponse)

CreateGetAsyncPredictResponse creates a response to parse from GetAsyncPredict response

type GetPredictResultHighRequest added in v1.62.412

type GetPredictResultHighRequest struct {
	*requests.RpcRequest
	TopK         requests.Integer `position:"Body" name:"TopK"`
	Product      string           `position:"Body" name:"Product"`
	ModelId      requests.Integer `position:"Body" name:"ModelId"`
	DetailTag    string           `position:"Body" name:"DetailTag"`
	Content      string           `position:"Body" name:"Content"`
	ModelVersion string           `position:"Body" name:"ModelVersion"`
}

GetPredictResultHighRequest is the request struct for api GetPredictResultHigh

func CreateGetPredictResultHighRequest added in v1.62.412

func CreateGetPredictResultHighRequest() (request *GetPredictResultHighRequest)

CreateGetPredictResultHighRequest creates a request to invoke GetPredictResultHigh API

type GetPredictResultHighResponse added in v1.62.412

type GetPredictResultHighResponse struct {
	*responses.BaseResponse
	Content   string `json:"Content" xml:"Content"`
	RequestId string `json:"RequestId" xml:"RequestId"`
}

GetPredictResultHighResponse is the response struct for api GetPredictResultHigh

func CreateGetPredictResultHighResponse added in v1.62.412

func CreateGetPredictResultHighResponse() (response *GetPredictResultHighResponse)

CreateGetPredictResultHighResponse creates a response to parse from GetPredictResultHigh response

type GetPredictResultRequest

type GetPredictResultRequest struct {
	*requests.RpcRequest
	TopK         requests.Integer `position:"Body" name:"TopK"`
	Product      string           `position:"Body" name:"Product"`
	ModelId      requests.Integer `position:"Body" name:"ModelId"`
	DetailTag    string           `position:"Body" name:"DetailTag"`
	Content      string           `position:"Body" name:"Content"`
	ModelVersion string           `position:"Body" name:"ModelVersion"`
}

GetPredictResultRequest is the request struct for api GetPredictResult

func CreateGetPredictResultRequest

func CreateGetPredictResultRequest() (request *GetPredictResultRequest)

CreateGetPredictResultRequest creates a request to invoke GetPredictResult API

type GetPredictResultResponse

type GetPredictResultResponse struct {
	*responses.BaseResponse
	Content   string `json:"Content" xml:"Content"`
	RequestId string `json:"RequestId" xml:"RequestId"`
}

GetPredictResultResponse is the response struct for api GetPredictResult

func CreateGetPredictResultResponse

func CreateGetPredictResultResponse() (response *GetPredictResultResponse)

CreateGetPredictResultResponse creates a response to parse from GetPredictResult response

type Report added in v1.62.231

type Report struct {
	TotalCount   int64  `json:"TotalCount" xml:"TotalCount"`
	SuccessCount int64  `json:"SuccessCount" xml:"SuccessCount"`
	FailCount    int64  `json:"FailCount" xml:"FailCount"`
	QpsMax       int    `json:"QpsMax" xml:"QpsMax"`
	RptTime      string `json:"RptTime" xml:"RptTime"`
}

Report is a nested struct in nlp_automl response

type RunPreTrainServiceNewRequest added in v1.62.407

type RunPreTrainServiceNewRequest struct {
	*requests.RpcRequest
	Product        string `position:"Body" name:"Product"`
	PredictContent string `position:"Body" name:"PredictContent"`
	ServiceVersion string `position:"Body" name:"ServiceVersion"`
	ServiceName    string `position:"Body" name:"ServiceName"`
}

RunPreTrainServiceNewRequest is the request struct for api RunPreTrainServiceNew

func CreateRunPreTrainServiceNewRequest added in v1.62.407

func CreateRunPreTrainServiceNewRequest() (request *RunPreTrainServiceNewRequest)

CreateRunPreTrainServiceNewRequest creates a request to invoke RunPreTrainServiceNew API

type RunPreTrainServiceNewResponse added in v1.62.407

type RunPreTrainServiceNewResponse struct {
	*responses.BaseResponse
	PredictResult string `json:"PredictResult" xml:"PredictResult"`
	RequestId     string `json:"RequestId" xml:"RequestId"`
	BillingCount  int    `json:"BillingCount" xml:"BillingCount"`
}

RunPreTrainServiceNewResponse is the response struct for api RunPreTrainServiceNew

func CreateRunPreTrainServiceNewResponse added in v1.62.407

func CreateRunPreTrainServiceNewResponse() (response *RunPreTrainServiceNewResponse)

CreateRunPreTrainServiceNewResponse creates a response to parse from RunPreTrainServiceNew response

type RunPreTrainServiceRequest added in v1.61.116

type RunPreTrainServiceRequest struct {
	*requests.RpcRequest
	Product        string `position:"Body" name:"Product"`
	PredictContent string `position:"Body" name:"PredictContent"`
	ServiceVersion string `position:"Body" name:"ServiceVersion"`
	ServiceName    string `position:"Body" name:"ServiceName"`
}

RunPreTrainServiceRequest is the request struct for api RunPreTrainService

func CreateRunPreTrainServiceRequest added in v1.61.116

func CreateRunPreTrainServiceRequest() (request *RunPreTrainServiceRequest)

CreateRunPreTrainServiceRequest creates a request to invoke RunPreTrainService API

type RunPreTrainServiceResponse added in v1.61.116

type RunPreTrainServiceResponse struct {
	*responses.BaseResponse
	PredictResult string `json:"PredictResult" xml:"PredictResult"`
	RequestId     string `json:"RequestId" xml:"RequestId"`
	BillingCount  int    `json:"BillingCount" xml:"BillingCount"`
}

RunPreTrainServiceResponse is the response struct for api RunPreTrainService

func CreateRunPreTrainServiceResponse added in v1.61.116

func CreateRunPreTrainServiceResponse() (response *RunPreTrainServiceResponse)

CreateRunPreTrainServiceResponse creates a response to parse from RunPreTrainService response

Jump to

Keyboard shortcuts

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