ailanguage

package
v54.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: Apache-2.0, UPL-1.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AIServiceLanguageClient

type AIServiceLanguageClient struct {
	common.BaseClient
	// contains filtered or unexported fields
}

AIServiceLanguageClient a client for AIServiceLanguage

func NewAIServiceLanguageClientWithConfigurationProvider

func NewAIServiceLanguageClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client AIServiceLanguageClient, err error)

NewAIServiceLanguageClientWithConfigurationProvider Creates a new default AIServiceLanguage client with the given configuration provider. the configuration provider will be used for the default signer as well as reading the region

func NewAIServiceLanguageClientWithOboToken

func NewAIServiceLanguageClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client AIServiceLanguageClient, err error)

NewAIServiceLanguageClientWithOboToken Creates a new default AIServiceLanguage client with the given configuration provider. The obotoken will be added to default headers and signed; the configuration provider will be used for the signer

as well as reading the region

func (AIServiceLanguageClient) BatchDetectDominantLanguage

func (client AIServiceLanguageClient) BatchDetectDominantLanguage(ctx context.Context, request BatchDetectDominantLanguageRequest) (response BatchDetectDominantLanguageResponse, err error)

BatchDetectDominantLanguage Make a detect call to language detection pre-deployed model.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/ailanguage/BatchDetectDominantLanguage.go.html to see an example of how to use BatchDetectDominantLanguage API.

func (AIServiceLanguageClient) BatchDetectLanguageEntities

func (client AIServiceLanguageClient) BatchDetectLanguageEntities(ctx context.Context, request BatchDetectLanguageEntitiesRequest) (response BatchDetectLanguageEntitiesResponse, err error)

BatchDetectLanguageEntities Make a batch detect call to entity pre-deployed model

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/ailanguage/BatchDetectLanguageEntities.go.html to see an example of how to use BatchDetectLanguageEntities API.

func (AIServiceLanguageClient) BatchDetectLanguageKeyPhrases

func (client AIServiceLanguageClient) BatchDetectLanguageKeyPhrases(ctx context.Context, request BatchDetectLanguageKeyPhrasesRequest) (response BatchDetectLanguageKeyPhrasesResponse, err error)

BatchDetectLanguageKeyPhrases Make a detect call to the keyPhrase pre-deployed model.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/ailanguage/BatchDetectLanguageKeyPhrases.go.html to see an example of how to use BatchDetectLanguageKeyPhrases API.

func (AIServiceLanguageClient) BatchDetectLanguageSentiments

func (client AIServiceLanguageClient) BatchDetectLanguageSentiments(ctx context.Context, request BatchDetectLanguageSentimentsRequest) (response BatchDetectLanguageSentimentsResponse, err error)

BatchDetectLanguageSentiments Make a detect call to sentiment pre-deployed model.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/ailanguage/BatchDetectLanguageSentiments.go.html to see an example of how to use BatchDetectLanguageSentiments API.

func (AIServiceLanguageClient) BatchDetectLanguageTextClassification

func (client AIServiceLanguageClient) BatchDetectLanguageTextClassification(ctx context.Context, request BatchDetectLanguageTextClassificationRequest) (response BatchDetectLanguageTextClassificationResponse, err error)

BatchDetectLanguageTextClassification Make a detect call to text classification from the pre-deployed model.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/ailanguage/BatchDetectLanguageTextClassification.go.html to see an example of how to use BatchDetectLanguageTextClassification API.

func (*AIServiceLanguageClient) ConfigurationProvider

func (client *AIServiceLanguageClient) ConfigurationProvider() *common.ConfigurationProvider

ConfigurationProvider the ConfigurationProvider used in this client, or null if none set

func (AIServiceLanguageClient) DetectDominantLanguage

func (client AIServiceLanguageClient) DetectDominantLanguage(ctx context.Context, request DetectDominantLanguageRequest) (response DetectDominantLanguageResponse, err error)

DetectDominantLanguage Make a detect call to language detection pre-deployed model.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/ailanguage/DetectDominantLanguage.go.html to see an example of how to use DetectDominantLanguage API.

func (AIServiceLanguageClient) DetectLanguageEntities

func (client AIServiceLanguageClient) DetectLanguageEntities(ctx context.Context, request DetectLanguageEntitiesRequest) (response DetectLanguageEntitiesResponse, err error)

DetectLanguageEntities Make a detect call to enitiy pre-deployed model

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/ailanguage/DetectLanguageEntities.go.html to see an example of how to use DetectLanguageEntities API.

func (AIServiceLanguageClient) DetectLanguageKeyPhrases

func (client AIServiceLanguageClient) DetectLanguageKeyPhrases(ctx context.Context, request DetectLanguageKeyPhrasesRequest) (response DetectLanguageKeyPhrasesResponse, err error)

DetectLanguageKeyPhrases Make a detect call to the keyPhrase pre-deployed model.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/ailanguage/DetectLanguageKeyPhrases.go.html to see an example of how to use DetectLanguageKeyPhrases API.

func (AIServiceLanguageClient) DetectLanguageSentiments

func (client AIServiceLanguageClient) DetectLanguageSentiments(ctx context.Context, request DetectLanguageSentimentsRequest) (response DetectLanguageSentimentsResponse, err error)

DetectLanguageSentiments Make a detect call to sentiment pre-deployed model.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/ailanguage/DetectLanguageSentiments.go.html to see an example of how to use DetectLanguageSentiments API.

func (AIServiceLanguageClient) DetectLanguageTextClassification

func (client AIServiceLanguageClient) DetectLanguageTextClassification(ctx context.Context, request DetectLanguageTextClassificationRequest) (response DetectLanguageTextClassificationResponse, err error)

DetectLanguageTextClassification Make a detect call to text classification from the pre-deployed model.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/ailanguage/DetectLanguageTextClassification.go.html to see an example of how to use DetectLanguageTextClassification API.

func (*AIServiceLanguageClient) SetRegion

func (client *AIServiceLanguageClient) SetRegion(region string)

SetRegion overrides the region of this client.

type BatchDetectDominantLanguageDetails

type BatchDetectDominantLanguageDetails struct {

	// List of Documents for detect language.
	Documents []DominantLanguageDocument `mandatory:"true" json:"documents"`
}

BatchDetectDominantLanguageDetails The documents details for language detect call.

func (BatchDetectDominantLanguageDetails) String

type BatchDetectDominantLanguageRequest

type BatchDetectDominantLanguageRequest struct {

	// The details to make a language detection detect call.
	BatchDetectDominantLanguageDetails `contributesTo:"body"`

	// The client request ID for tracing.
	OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

	// Metadata about the request. This information will not be transmitted to the service, but
	// represents information that the SDK will consume to drive retry behavior.
	RequestMetadata common.RequestMetadata
}

BatchDetectDominantLanguageRequest wrapper for the BatchDetectDominantLanguage operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/ailanguage/BatchDetectDominantLanguage.go.html to see an example of how to use BatchDetectDominantLanguageRequest.

func (BatchDetectDominantLanguageRequest) BinaryRequestBody

func (request BatchDetectDominantLanguageRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (BatchDetectDominantLanguageRequest) HTTPRequest

func (request BatchDetectDominantLanguageRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (BatchDetectDominantLanguageRequest) RetryPolicy

func (request BatchDetectDominantLanguageRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (BatchDetectDominantLanguageRequest) String

func (request BatchDetectDominantLanguageRequest) String() string

type BatchDetectDominantLanguageResponse

type BatchDetectDominantLanguageResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// The BatchDetectDominantLanguageResult instance
	BatchDetectDominantLanguageResult `presentIn:"body"`

	// Unique Oracle-assigned identifier for the request. If you need to contact
	// Oracle about a particular request, provide the request ID.
	OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

BatchDetectDominantLanguageResponse wrapper for the BatchDetectDominantLanguage operation

func (BatchDetectDominantLanguageResponse) HTTPResponse

func (response BatchDetectDominantLanguageResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (BatchDetectDominantLanguageResponse) String

func (response BatchDetectDominantLanguageResponse) String() string

type BatchDetectDominantLanguageResult

type BatchDetectDominantLanguageResult struct {

	// List of succeeded document response.
	Documents []DominantLanguageDocumentResult `mandatory:"true" json:"documents"`

	// List of failed document response.
	Errors []DocumentError `mandatory:"false" json:"errors"`
}

BatchDetectDominantLanguageResult Result of language detect call.

func (BatchDetectDominantLanguageResult) String

type BatchDetectLanguageEntitiesDetails

type BatchDetectLanguageEntitiesDetails struct {

	// List of Documents for detect entities.
	Documents []EntityDocument `mandatory:"true" json:"documents"`
}

BatchDetectLanguageEntitiesDetails The documents details for entities detect call.

func (BatchDetectLanguageEntitiesDetails) String

type BatchDetectLanguageEntitiesRequest

type BatchDetectLanguageEntitiesRequest struct {

	// The details to make a Entity detect call.
	BatchDetectLanguageEntitiesDetails `contributesTo:"body"`

	// The client request ID for tracing.
	OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

	// Metadata about the request. This information will not be transmitted to the service, but
	// represents information that the SDK will consume to drive retry behavior.
	RequestMetadata common.RequestMetadata
}

BatchDetectLanguageEntitiesRequest wrapper for the BatchDetectLanguageEntities operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/ailanguage/BatchDetectLanguageEntities.go.html to see an example of how to use BatchDetectLanguageEntitiesRequest.

func (BatchDetectLanguageEntitiesRequest) BinaryRequestBody

func (request BatchDetectLanguageEntitiesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (BatchDetectLanguageEntitiesRequest) HTTPRequest

func (request BatchDetectLanguageEntitiesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (BatchDetectLanguageEntitiesRequest) RetryPolicy

func (request BatchDetectLanguageEntitiesRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (BatchDetectLanguageEntitiesRequest) String

func (request BatchDetectLanguageEntitiesRequest) String() string

type BatchDetectLanguageEntitiesResponse

type BatchDetectLanguageEntitiesResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// The BatchDetectLanguageEntitiesResult instance
	BatchDetectLanguageEntitiesResult `presentIn:"body"`

	// Unique Oracle-assigned identifier for the request. If you need to contact
	// Oracle about a particular request, provide the request ID.
	OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

BatchDetectLanguageEntitiesResponse wrapper for the BatchDetectLanguageEntities operation

func (BatchDetectLanguageEntitiesResponse) HTTPResponse

func (response BatchDetectLanguageEntitiesResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (BatchDetectLanguageEntitiesResponse) String

func (response BatchDetectLanguageEntitiesResponse) String() string

type BatchDetectLanguageEntitiesResult

type BatchDetectLanguageEntitiesResult struct {

	// List of succeeded document response.
	Documents []EntityDocumentResult `mandatory:"true" json:"documents"`

	// List of failed document response.
	Errors []DocumentError `mandatory:"false" json:"errors"`
}

BatchDetectLanguageEntitiesResult Result of entities detect call.

func (BatchDetectLanguageEntitiesResult) String

type BatchDetectLanguageKeyPhrasesDetails

type BatchDetectLanguageKeyPhrasesDetails struct {

	// List of Documents for detect keyPhrases.
	Documents []KeyPhraseDocument `mandatory:"true" json:"documents"`
}

BatchDetectLanguageKeyPhrasesDetails The documents details for keyPhrases call.

func (BatchDetectLanguageKeyPhrasesDetails) String

type BatchDetectLanguageKeyPhrasesRequest

type BatchDetectLanguageKeyPhrasesRequest struct {

	// The details to make keyPhrase detect call.
	BatchDetectLanguageKeyPhrasesDetails `contributesTo:"body"`

	// The client request ID for tracing.
	OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

	// Metadata about the request. This information will not be transmitted to the service, but
	// represents information that the SDK will consume to drive retry behavior.
	RequestMetadata common.RequestMetadata
}

BatchDetectLanguageKeyPhrasesRequest wrapper for the BatchDetectLanguageKeyPhrases operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/ailanguage/BatchDetectLanguageKeyPhrases.go.html to see an example of how to use BatchDetectLanguageKeyPhrasesRequest.

func (BatchDetectLanguageKeyPhrasesRequest) BinaryRequestBody

func (request BatchDetectLanguageKeyPhrasesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (BatchDetectLanguageKeyPhrasesRequest) HTTPRequest

func (request BatchDetectLanguageKeyPhrasesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (BatchDetectLanguageKeyPhrasesRequest) RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (BatchDetectLanguageKeyPhrasesRequest) String

type BatchDetectLanguageKeyPhrasesResponse

type BatchDetectLanguageKeyPhrasesResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// The BatchDetectLanguageKeyPhrasesResult instance
	BatchDetectLanguageKeyPhrasesResult `presentIn:"body"`

	// Unique Oracle-assigned identifier for the request. If you need to contact
	// Oracle about a particular request, provide the request ID.
	OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

BatchDetectLanguageKeyPhrasesResponse wrapper for the BatchDetectLanguageKeyPhrases operation

func (BatchDetectLanguageKeyPhrasesResponse) HTTPResponse

func (response BatchDetectLanguageKeyPhrasesResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (BatchDetectLanguageKeyPhrasesResponse) String

type BatchDetectLanguageKeyPhrasesResult

type BatchDetectLanguageKeyPhrasesResult struct {

	// List of succeeded document response.
	Documents []KeyPhraseDocumentResult `mandatory:"true" json:"documents"`

	// List of failed document response.
	Errors []DocumentError `mandatory:"false" json:"errors"`
}

BatchDetectLanguageKeyPhrasesResult Result of keyPhrases detect call.

func (BatchDetectLanguageKeyPhrasesResult) String

type BatchDetectLanguageSentimentsDetails

type BatchDetectLanguageSentimentsDetails struct {

	// List of Documents for detect sentiments.
	Documents []SentimentsDocument `mandatory:"true" json:"documents"`
}

BatchDetectLanguageSentimentsDetails The documents details for sentiment call.

func (BatchDetectLanguageSentimentsDetails) String

type BatchDetectLanguageSentimentsLevelEnum

type BatchDetectLanguageSentimentsLevelEnum string

BatchDetectLanguageSentimentsLevelEnum Enum with underlying type: string

const (
	BatchDetectLanguageSentimentsLevelAspect   BatchDetectLanguageSentimentsLevelEnum = "ASPECT"
	BatchDetectLanguageSentimentsLevelSentence BatchDetectLanguageSentimentsLevelEnum = "SENTENCE"
)

Set of constants representing the allowable values for BatchDetectLanguageSentimentsLevelEnum

func GetBatchDetectLanguageSentimentsLevelEnumValues

func GetBatchDetectLanguageSentimentsLevelEnumValues() []BatchDetectLanguageSentimentsLevelEnum

GetBatchDetectLanguageSentimentsLevelEnumValues Enumerates the set of values for BatchDetectLanguageSentimentsLevelEnum

type BatchDetectLanguageSentimentsRequest

type BatchDetectLanguageSentimentsRequest struct {

	// The details to make sentiment detect call.
	BatchDetectLanguageSentimentsDetails `contributesTo:"body"`

	// The client request ID for tracing.
	OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

	// Set this parameter for sentence and aspect level sentiment analysis.
	// Allowed values are:
	//    - ASPECT
	//    - SENTENCE
	Level []BatchDetectLanguageSentimentsLevelEnum `contributesTo:"query" name:"level" omitEmpty:"true" collectionFormat:"multi"`

	// Metadata about the request. This information will not be transmitted to the service, but
	// represents information that the SDK will consume to drive retry behavior.
	RequestMetadata common.RequestMetadata
}

BatchDetectLanguageSentimentsRequest wrapper for the BatchDetectLanguageSentiments operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/ailanguage/BatchDetectLanguageSentiments.go.html to see an example of how to use BatchDetectLanguageSentimentsRequest.

func (BatchDetectLanguageSentimentsRequest) BinaryRequestBody

func (request BatchDetectLanguageSentimentsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (BatchDetectLanguageSentimentsRequest) HTTPRequest

func (request BatchDetectLanguageSentimentsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (BatchDetectLanguageSentimentsRequest) RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (BatchDetectLanguageSentimentsRequest) String

type BatchDetectLanguageSentimentsResponse

type BatchDetectLanguageSentimentsResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// The BatchDetectLanguageSentimentsResult instance
	BatchDetectLanguageSentimentsResult `presentIn:"body"`

	// Unique Oracle-assigned identifier for the request. If you need to contact
	// Oracle about a particular request, provide the request ID.
	OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

BatchDetectLanguageSentimentsResponse wrapper for the BatchDetectLanguageSentiments operation

func (BatchDetectLanguageSentimentsResponse) HTTPResponse

func (response BatchDetectLanguageSentimentsResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (BatchDetectLanguageSentimentsResponse) String

type BatchDetectLanguageSentimentsResult

type BatchDetectLanguageSentimentsResult struct {

	// List of succeeded document response.
	Documents []SentimentDocumentResult `mandatory:"true" json:"documents"`

	// List of failed document response.
	Errors []DocumentError `mandatory:"false" json:"errors"`
}

BatchDetectLanguageSentimentsResult Result of sentiments detect call.

func (BatchDetectLanguageSentimentsResult) String

type BatchDetectLanguageTextClassificationDetails

type BatchDetectLanguageTextClassificationDetails struct {

	// List of Documents for detect text classification.
	Documents []TextClassificationDocument `mandatory:"true" json:"documents"`
}

BatchDetectLanguageTextClassificationDetails The documents details for text classification call.

func (BatchDetectLanguageTextClassificationDetails) String

type BatchDetectLanguageTextClassificationRequest

type BatchDetectLanguageTextClassificationRequest struct {

	// The details to make text classification detect call.
	BatchDetectLanguageTextClassificationDetails `contributesTo:"body"`

	// The client request ID for tracing.
	OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

	// Metadata about the request. This information will not be transmitted to the service, but
	// represents information that the SDK will consume to drive retry behavior.
	RequestMetadata common.RequestMetadata
}

BatchDetectLanguageTextClassificationRequest wrapper for the BatchDetectLanguageTextClassification operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/ailanguage/BatchDetectLanguageTextClassification.go.html to see an example of how to use BatchDetectLanguageTextClassificationRequest.

func (BatchDetectLanguageTextClassificationRequest) BinaryRequestBody

BinaryRequestBody implements the OCIRequest interface

func (BatchDetectLanguageTextClassificationRequest) HTTPRequest

func (request BatchDetectLanguageTextClassificationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (BatchDetectLanguageTextClassificationRequest) RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (BatchDetectLanguageTextClassificationRequest) String

type BatchDetectLanguageTextClassificationResponse

type BatchDetectLanguageTextClassificationResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// The BatchDetectLanguageTextClassificationResult instance
	BatchDetectLanguageTextClassificationResult `presentIn:"body"`

	// Unique Oracle-assigned identifier for the request. If you need to contact
	// Oracle about a particular request, provide the request ID.
	OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

BatchDetectLanguageTextClassificationResponse wrapper for the BatchDetectLanguageTextClassification operation

func (BatchDetectLanguageTextClassificationResponse) HTTPResponse

HTTPResponse implements the OCIResponse interface

func (BatchDetectLanguageTextClassificationResponse) String

type BatchDetectLanguageTextClassificationResult

type BatchDetectLanguageTextClassificationResult struct {

	// List of succeeded document response.
	Documents []TextClassificationDocumentResult `mandatory:"true" json:"documents"`

	// List of failed document response.
	Errors []DocumentError `mandatory:"false" json:"errors"`
}

BatchDetectLanguageTextClassificationResult Result of text classification detect call.

func (BatchDetectLanguageTextClassificationResult) String

type DetectDominantLanguageDetails

type DetectDominantLanguageDetails struct {

	// Document text for detect language.
	Text *string `mandatory:"true" json:"text"`
}

DetectDominantLanguageDetails The document details for language detect call.

func (DetectDominantLanguageDetails) String

type DetectDominantLanguageRequest

type DetectDominantLanguageRequest struct {

	// The details to make a language detection detect call.
	DetectDominantLanguageDetails `contributesTo:"body"`

	// The client request ID for tracing.
	OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

	// Metadata about the request. This information will not be transmitted to the service, but
	// represents information that the SDK will consume to drive retry behavior.
	RequestMetadata common.RequestMetadata
}

DetectDominantLanguageRequest wrapper for the DetectDominantLanguage operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/ailanguage/DetectDominantLanguage.go.html to see an example of how to use DetectDominantLanguageRequest.

func (DetectDominantLanguageRequest) BinaryRequestBody

func (request DetectDominantLanguageRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (DetectDominantLanguageRequest) HTTPRequest

func (request DetectDominantLanguageRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (DetectDominantLanguageRequest) RetryPolicy

func (request DetectDominantLanguageRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (DetectDominantLanguageRequest) String

func (request DetectDominantLanguageRequest) String() string

type DetectDominantLanguageResponse

type DetectDominantLanguageResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// The DetectDominantLanguageResult instance
	DetectDominantLanguageResult `presentIn:"body"`

	// Unique Oracle-assigned identifier for the request. If you need to contact
	// Oracle about a particular request, provide the request ID.
	OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

DetectDominantLanguageResponse wrapper for the DetectDominantLanguage operation

func (DetectDominantLanguageResponse) HTTPResponse

func (response DetectDominantLanguageResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (DetectDominantLanguageResponse) String

func (response DetectDominantLanguageResponse) String() string

type DetectDominantLanguageResult

type DetectDominantLanguageResult struct {

	// List of detected languages with results sorted in descending order of the scores. Most likely language is on top.
	Languages []DetectedLanguage `mandatory:"true" json:"languages"`
}

DetectDominantLanguageResult Result of language detect call.

func (DetectDominantLanguageResult) String

type DetectLanguageEntitiesDetails

type DetectLanguageEntitiesDetails struct {

	// Document text for detect entities.
	Text *string `mandatory:"true" json:"text"`
}

DetectLanguageEntitiesDetails The document details for entities detect call.

func (DetectLanguageEntitiesDetails) String

type DetectLanguageEntitiesModelVersionEnum

type DetectLanguageEntitiesModelVersionEnum string

DetectLanguageEntitiesModelVersionEnum Enum with underlying type: string

const (
	DetectLanguageEntitiesModelVersionV21 DetectLanguageEntitiesModelVersionEnum = "V2.1"
	DetectLanguageEntitiesModelVersionV11 DetectLanguageEntitiesModelVersionEnum = "V1.1"
)

Set of constants representing the allowable values for DetectLanguageEntitiesModelVersionEnum

func GetDetectLanguageEntitiesModelVersionEnumValues

func GetDetectLanguageEntitiesModelVersionEnumValues() []DetectLanguageEntitiesModelVersionEnum

GetDetectLanguageEntitiesModelVersionEnumValues Enumerates the set of values for DetectLanguageEntitiesModelVersionEnum

type DetectLanguageEntitiesRequest

type DetectLanguageEntitiesRequest struct {

	// The details to make a Entity detect call.
	DetectLanguageEntitiesDetails `contributesTo:"body"`

	// The client request ID for tracing.
	OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

	// Named Entity Recognition model versions. By default user will get output from V2.1 implementation.
	ModelVersion DetectLanguageEntitiesModelVersionEnum `mandatory:"false" contributesTo:"query" name:"modelVersion" omitEmpty:"true"`

	// If this parameter is set to true, you only get PII (Personally identifiable information) entities
	// like PhoneNumber, Email, Person, and so on. Default value is false.
	IsPii *bool `mandatory:"false" contributesTo:"query" name:"isPii"`

	// Metadata about the request. This information will not be transmitted to the service, but
	// represents information that the SDK will consume to drive retry behavior.
	RequestMetadata common.RequestMetadata
}

DetectLanguageEntitiesRequest wrapper for the DetectLanguageEntities operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/ailanguage/DetectLanguageEntities.go.html to see an example of how to use DetectLanguageEntitiesRequest.

func (DetectLanguageEntitiesRequest) BinaryRequestBody

func (request DetectLanguageEntitiesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (DetectLanguageEntitiesRequest) HTTPRequest

func (request DetectLanguageEntitiesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (DetectLanguageEntitiesRequest) RetryPolicy

func (request DetectLanguageEntitiesRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (DetectLanguageEntitiesRequest) String

func (request DetectLanguageEntitiesRequest) String() string

type DetectLanguageEntitiesResponse

type DetectLanguageEntitiesResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// The DetectLanguageEntitiesResult instance
	DetectLanguageEntitiesResult `presentIn:"body"`

	// Unique Oracle-assigned identifier for the request. If you need to contact
	// Oracle about a particular request, provide the request ID.
	OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

DetectLanguageEntitiesResponse wrapper for the DetectLanguageEntities operation

func (DetectLanguageEntitiesResponse) HTTPResponse

func (response DetectLanguageEntitiesResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (DetectLanguageEntitiesResponse) String

func (response DetectLanguageEntitiesResponse) String() string

type DetectLanguageEntitiesResult

type DetectLanguageEntitiesResult struct {

	// List of detected entities.
	Entities []Entity `mandatory:"true" json:"entities"`
}

DetectLanguageEntitiesResult Result of entities detect call.

func (DetectLanguageEntitiesResult) String

type DetectLanguageKeyPhrasesDetails

type DetectLanguageKeyPhrasesDetails struct {

	// Document text for detect keyPhrases.
	Text *string `mandatory:"true" json:"text"`
}

DetectLanguageKeyPhrasesDetails The document details for a keyPhrases detect call.

func (DetectLanguageKeyPhrasesDetails) String

type DetectLanguageKeyPhrasesRequest

type DetectLanguageKeyPhrasesRequest struct {

	// The details to make keyPhrase detect call.
	DetectLanguageKeyPhrasesDetails `contributesTo:"body"`

	// The client request ID for tracing.
	OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

	// Metadata about the request. This information will not be transmitted to the service, but
	// represents information that the SDK will consume to drive retry behavior.
	RequestMetadata common.RequestMetadata
}

DetectLanguageKeyPhrasesRequest wrapper for the DetectLanguageKeyPhrases operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/ailanguage/DetectLanguageKeyPhrases.go.html to see an example of how to use DetectLanguageKeyPhrasesRequest.

func (DetectLanguageKeyPhrasesRequest) BinaryRequestBody

func (request DetectLanguageKeyPhrasesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (DetectLanguageKeyPhrasesRequest) HTTPRequest

func (request DetectLanguageKeyPhrasesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (DetectLanguageKeyPhrasesRequest) RetryPolicy

func (request DetectLanguageKeyPhrasesRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (DetectLanguageKeyPhrasesRequest) String

func (request DetectLanguageKeyPhrasesRequest) String() string

type DetectLanguageKeyPhrasesResponse

type DetectLanguageKeyPhrasesResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// The DetectLanguageKeyPhrasesResult instance
	DetectLanguageKeyPhrasesResult `presentIn:"body"`

	// Unique Oracle-assigned identifier for the request. If you need to contact
	// Oracle about a particular request, provide the request ID.
	OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

DetectLanguageKeyPhrasesResponse wrapper for the DetectLanguageKeyPhrases operation

func (DetectLanguageKeyPhrasesResponse) HTTPResponse

func (response DetectLanguageKeyPhrasesResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (DetectLanguageKeyPhrasesResponse) String

func (response DetectLanguageKeyPhrasesResponse) String() string

type DetectLanguageKeyPhrasesResult

type DetectLanguageKeyPhrasesResult struct {

	// List of detected keyPhrases.
	KeyPhrases []KeyPhrase `mandatory:"true" json:"keyPhrases"`
}

DetectLanguageKeyPhrasesResult Result of a language keyPhrases detect call.

func (DetectLanguageKeyPhrasesResult) String

type DetectLanguageSentimentsDetails

type DetectLanguageSentimentsDetails struct {

	// Document text for detect sentiments.
	Text *string `mandatory:"true" json:"text"`
}

DetectLanguageSentimentsDetails The document details for sentiments detect call.

func (DetectLanguageSentimentsDetails) String

type DetectLanguageSentimentsRequest

type DetectLanguageSentimentsRequest struct {

	// The details to make sentiment detect call.
	DetectLanguageSentimentsDetails `contributesTo:"body"`

	// The client request ID for tracing.
	OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

	// Metadata about the request. This information will not be transmitted to the service, but
	// represents information that the SDK will consume to drive retry behavior.
	RequestMetadata common.RequestMetadata
}

DetectLanguageSentimentsRequest wrapper for the DetectLanguageSentiments operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/ailanguage/DetectLanguageSentiments.go.html to see an example of how to use DetectLanguageSentimentsRequest.

func (DetectLanguageSentimentsRequest) BinaryRequestBody

func (request DetectLanguageSentimentsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (DetectLanguageSentimentsRequest) HTTPRequest

func (request DetectLanguageSentimentsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (DetectLanguageSentimentsRequest) RetryPolicy

func (request DetectLanguageSentimentsRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (DetectLanguageSentimentsRequest) String

func (request DetectLanguageSentimentsRequest) String() string

type DetectLanguageSentimentsResponse

type DetectLanguageSentimentsResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// The DetectLanguageSentimentsResult instance
	DetectLanguageSentimentsResult `presentIn:"body"`

	// Unique Oracle-assigned identifier for the request. If you need to contact
	// Oracle about a particular request, provide the request ID.
	OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

DetectLanguageSentimentsResponse wrapper for the DetectLanguageSentiments operation

func (DetectLanguageSentimentsResponse) HTTPResponse

func (response DetectLanguageSentimentsResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (DetectLanguageSentimentsResponse) String

func (response DetectLanguageSentimentsResponse) String() string

type DetectLanguageSentimentsResult

type DetectLanguageSentimentsResult struct {

	// List of detected aspects.
	Aspects []SentimentAspect `mandatory:"true" json:"aspects"`
}

DetectLanguageSentimentsResult Result of sentiments detect call.

func (DetectLanguageSentimentsResult) String

type DetectLanguageTextClassificationDetails

type DetectLanguageTextClassificationDetails struct {

	// Document text for detect text classes.
	Text *string `mandatory:"true" json:"text"`
}

DetectLanguageTextClassificationDetails The document details for text classification detect call.

func (DetectLanguageTextClassificationDetails) String

type DetectLanguageTextClassificationRequest

type DetectLanguageTextClassificationRequest struct {

	// The details to make text classification detect call.
	DetectLanguageTextClassificationDetails `contributesTo:"body"`

	// The client request ID for tracing.
	OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

	// Metadata about the request. This information will not be transmitted to the service, but
	// represents information that the SDK will consume to drive retry behavior.
	RequestMetadata common.RequestMetadata
}

DetectLanguageTextClassificationRequest wrapper for the DetectLanguageTextClassification operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/ailanguage/DetectLanguageTextClassification.go.html to see an example of how to use DetectLanguageTextClassificationRequest.

func (DetectLanguageTextClassificationRequest) BinaryRequestBody

func (request DetectLanguageTextClassificationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (DetectLanguageTextClassificationRequest) HTTPRequest

func (request DetectLanguageTextClassificationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (DetectLanguageTextClassificationRequest) RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (DetectLanguageTextClassificationRequest) String

type DetectLanguageTextClassificationResponse

type DetectLanguageTextClassificationResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// The DetectLanguageTextClassificationResult instance
	DetectLanguageTextClassificationResult `presentIn:"body"`

	// Unique Oracle-assigned identifier for the request. If you need to contact
	// Oracle about a particular request, provide the request ID.
	OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

DetectLanguageTextClassificationResponse wrapper for the DetectLanguageTextClassification operation

func (DetectLanguageTextClassificationResponse) HTTPResponse

func (response DetectLanguageTextClassificationResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (DetectLanguageTextClassificationResponse) String

type DetectLanguageTextClassificationResult

type DetectLanguageTextClassificationResult struct {

	// List of detected text classes.
	TextClassification []TextClassification `mandatory:"true" json:"textClassification"`
}

DetectLanguageTextClassificationResult Result of text classification detect call.

func (DetectLanguageTextClassificationResult) String

type DetectedLanguage

type DetectedLanguage struct {

	// Full language name.
	// Example: `English, Hindi, and so on`
	Name *string `mandatory:"true" json:"name"`

	// Detected language code as per ISO 639-1 (https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) standard.
	// Example: `en, fr, hi etc`.
	Code *string `mandatory:"true" json:"code"`

	// Score or confidence of detected language code.
	// Example: `0.9999856066867399`
	Score *float64 `mandatory:"true" json:"score"`
}

DetectedLanguage Attributes to the detected language. Contains Language Name , Code, and Confidence Score.

func (DetectedLanguage) String

func (m DetectedLanguage) String() string

type DocumentError

type DocumentError struct {

	// Unique Document Identifier.
	Key *string `mandatory:"true" json:"key"`

	Error *ErrorDetails `mandatory:"true" json:"error"`
}

DocumentError Error response for document.

func (DocumentError) String

func (m DocumentError) String() string

type DominantLanguageDocument

type DominantLanguageDocument struct {

	// Document unique identifier defined by the user.
	Key *string `mandatory:"true" json:"key"`

	// Document text for detect language.
	Text *string `mandatory:"true" json:"text"`
}

DominantLanguageDocument The document details for language detect call.

func (DominantLanguageDocument) String

func (m DominantLanguageDocument) String() string

type DominantLanguageDocumentResult

type DominantLanguageDocumentResult struct {

	// Document unique identifier defined by the user.
	Key *string `mandatory:"true" json:"key"`

	// List of detected languages with results sorted in descending order of the scores. Most likely language is on top.
	Languages []DetectedLanguage `mandatory:"true" json:"languages"`
}

DominantLanguageDocumentResult The document response for language detect call.

func (DominantLanguageDocumentResult) String

type Entity

type Entity struct {

	// The number of Unicode code points preceding this entity in the submitted text.
	Offset *int `mandatory:"false" json:"offset"`

	// Length of entity text
	Length *int `mandatory:"false" json:"length"`

	// Entity text like name of person, location, and so on.
	Text *string `mandatory:"false" json:"text"`

	// Type of entity text like PER, LOC, GPE and NOPE.
	Type *string `mandatory:"false" json:"type"`

	// This flag is to indicate if it is PII entity or not.
	IsPii *bool `mandatory:"false" json:"isPii"`

	// Score or confidence of extracted entity type.
	// Example: `0.9999856066867399`
	Score *float64 `mandatory:"false" json:"score"`
}

Entity entity object

func (Entity) String

func (m Entity) String() string

type EntityDocument

type EntityDocument struct {

	// Document unique identifier defined by the user.
	Key *string `mandatory:"true" json:"key"`

	// Document text for detect entities.
	Text *string `mandatory:"true" json:"text"`

	// Language code as per ISO 639-1 (https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) standard.
	LanguageCode *string `mandatory:"false" json:"languageCode"`
}

EntityDocument The document details for entities detect call.

func (EntityDocument) String

func (m EntityDocument) String() string

type EntityDocumentResult

type EntityDocumentResult struct {

	// Document unique identifier defined by the user.
	Key *string `mandatory:"true" json:"key"`

	// List of detected entities.
	Entities []HierarchicalEntity `mandatory:"true" json:"entities"`

	// Language code as per ISO 639-1 (https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) standard.
	LanguageCode *string `mandatory:"true" json:"languageCode"`
}

EntityDocumentResult The document response for entities detect call.

func (EntityDocumentResult) String

func (m EntityDocumentResult) String() string

type ErrorDetails

type ErrorDetails struct {

	// A short error code that defines the error, meant for programmatic parsing.
	Code *string `mandatory:"true" json:"code"`

	// A human-readable error string.
	Message *string `mandatory:"true" json:"message"`
}

ErrorDetails Error Information.

func (ErrorDetails) String

func (m ErrorDetails) String() string

type HierarchicalEntity

type HierarchicalEntity struct {

	// The number of Unicode code points preceding this entity in the submitted text.
	Offset *int `mandatory:"false" json:"offset"`

	// Length of entity text
	Length *int `mandatory:"false" json:"length"`

	// Entity text like name of person, location, and so on.
	Text *string `mandatory:"false" json:"text"`

	// Type of entity text like PER, LOC.
	Type *string `mandatory:"false" json:"type"`

	// Sub-type of entity text like GPE for LOCATION type
	SubType *string `mandatory:"false" json:"subType"`

	// Score or confidence for detected entity.
	Score *float64 `mandatory:"false" json:"score"`
}

HierarchicalEntity Hierarchical entity object

func (HierarchicalEntity) String

func (m HierarchicalEntity) String() string

type KeyPhrase

type KeyPhrase struct {

	// Key phrase exreacted from given text.
	Text *string `mandatory:"true" json:"text"`

	// Score or confidence of the key phrase.
	// Example: `0.9999856066867399`
	Score *float64 `mandatory:"true" json:"score"`
}

KeyPhrase Key phrase for the given text.

func (KeyPhrase) String

func (m KeyPhrase) String() string

type KeyPhraseDocument

type KeyPhraseDocument struct {

	// Document Unique Identifier.
	Key *string `mandatory:"true" json:"key"`

	// Document text for detect keyPhrases.
	Text *string `mandatory:"true" json:"text"`

	// Language code as per ISO 639-1 (https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) standard..
	LanguageCode *string `mandatory:"false" json:"languageCode"`
}

KeyPhraseDocument The document details for keyPhrases detect call.

func (KeyPhraseDocument) String

func (m KeyPhraseDocument) String() string

type KeyPhraseDocumentResult

type KeyPhraseDocumentResult struct {

	// Document Unique Identifier.
	Key *string `mandatory:"true" json:"key"`

	// List of detected keyPhrases.
	KeyPhrases []KeyPhrase `mandatory:"true" json:"keyPhrases"`

	// Language code as per ISO 639-1 (https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) standard.
	LanguageCode *string `mandatory:"true" json:"languageCode"`
}

KeyPhraseDocumentResult The document response for keyPhrases detect call.

func (KeyPhraseDocumentResult) String

func (m KeyPhraseDocumentResult) String() string

type NerModelVersionEnum

type NerModelVersionEnum string

NerModelVersionEnum Enum with underlying type: string

const (
	NerModelVersionV21 NerModelVersionEnum = "V2.1"
	NerModelVersionV11 NerModelVersionEnum = "V1.1"
)

Set of constants representing the allowable values for NerModelVersionEnum

func GetNerModelVersionEnumValues

func GetNerModelVersionEnumValues() []NerModelVersionEnum

GetNerModelVersionEnumValues Enumerates the set of values for NerModelVersionEnum

type SentimentAspect

type SentimentAspect struct {

	// The number of Unicode code points preceding this entity in the submitted text.
	Offset *int `mandatory:"false" json:"offset"`

	// Length of aspect text.
	Length *int `mandatory:"false" json:"length"`

	// Aspect text.
	Text *string `mandatory:"false" json:"text"`

	// The highest-score sentiment for the aspect text.
	Sentiment *string `mandatory:"false" json:"sentiment"`

	// Scores or confidences for each sentiment.
	// Example: `{"positive": 1.0, "negative": 0.0}`
	Scores map[string]float64 `mandatory:"false" json:"scores"`
}

SentimentAspect Sentiment aspect object.

func (SentimentAspect) String

func (m SentimentAspect) String() string

type SentimentDocumentResult

type SentimentDocumentResult struct {

	// Document Unique Identifier.
	Key *string `mandatory:"true" json:"key"`

	// List of detected aspects sentiment.
	Aspects []SentimentAspect `mandatory:"true" json:"aspects"`

	// Language code as per ISO 639-1 (https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) standard.
	LanguageCode *string `mandatory:"true" json:"languageCode"`

	// Document level sentiment.
	DocumentSentiment *string `mandatory:"false" json:"documentSentiment"`

	// Scores for each sentiment.
	// Example: {"positive": 1.0, "negative": 0.0}
	DocumentScores map[string]float64 `mandatory:"false" json:"documentScores"`

	// List of detected sentences sentiment.
	Sentences []SentimentSentence `mandatory:"false" json:"sentences"`
}

SentimentDocumentResult The document response for sentiment detect call.

func (SentimentDocumentResult) String

func (m SentimentDocumentResult) String() string

type SentimentSentence

type SentimentSentence struct {

	// The number of Unicode code points preceding this entity in the submitted text.
	Offset *int `mandatory:"false" json:"offset"`

	// Length of sentence text.
	Length *int `mandatory:"false" json:"length"`

	// Sentence text.
	Text *string `mandatory:"false" json:"text"`

	// The highest-score sentiment for the sentence text.
	Sentiment *string `mandatory:"false" json:"sentiment"`

	// Scores or confidences for each sentiment.
	// Example: `{"positive": 1.0, "negative": 0.0}`
	Scores map[string]float64 `mandatory:"false" json:"scores"`
}

SentimentSentence Sentiment sentence object.

func (SentimentSentence) String

func (m SentimentSentence) String() string

type SentimentsDocument

type SentimentsDocument struct {

	// Document Unique Identifier.
	Key *string `mandatory:"true" json:"key"`

	// Document text for detect sentiments.
	Text *string `mandatory:"true" json:"text"`

	// Language code as per ISO 639-1 (https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) standard.
	LanguageCode *string `mandatory:"false" json:"languageCode"`
}

SentimentsDocument The document details for sentiments detect call.

func (SentimentsDocument) String

func (m SentimentsDocument) String() string

type TextClassification

type TextClassification struct {

	// Label of the the given text.
	Label *string `mandatory:"true" json:"label"`

	// Score or confidence of extracted text label.
	// Example: `0.9999856066867399`
	Score *float64 `mandatory:"true" json:"score"`
}

TextClassification Text label and score for the given text.

func (TextClassification) String

func (m TextClassification) String() string

type TextClassificationDocument

type TextClassificationDocument struct {

	// Document Unique Identifier.
	Key *string `mandatory:"true" json:"key"`

	// Document text for detect text classification.
	Text *string `mandatory:"true" json:"text"`

	// Language code as per ISO 639-1 (https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) standard.
	LanguageCode *string `mandatory:"false" json:"languageCode"`
}

TextClassificationDocument The document details for test classification detect call.

func (TextClassificationDocument) String

type TextClassificationDocumentResult

type TextClassificationDocumentResult struct {

	// Document Unique Identifier.
	Key *string `mandatory:"true" json:"key"`

	// List of detected text classes.
	TextClassification []TextClassification `mandatory:"true" json:"textClassification"`

	// Language code as per ISO 639-1 (https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) standard.
	LanguageCode *string `mandatory:"true" json:"languageCode"`
}

TextClassificationDocumentResult The document response for test classification detect call.

func (TextClassificationDocumentResult) String

Source Files

Jump to

Keyboard shortcuts

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