func GetBatchDetectLanguageSentimentsLevelEnumStringValues() []string
GetBatchDetectLanguageSentimentsLevelEnumStringValues Enumerates the set of values in String for BatchDetectLanguageSentimentsLevelEnum
func GetDetectLanguageEntitiesModelVersionEnumStringValues() []string
GetDetectLanguageEntitiesModelVersionEnumStringValues Enumerates the set of values in String for DetectLanguageEntitiesModelVersionEnum
func GetNerModelVersionEnumStringValues() []string
GetNerModelVersionEnumStringValues Enumerates the set of values in String for NerModelVersionEnum
AIServiceLanguageClient a client for AIServiceLanguage
type AIServiceLanguageClient struct { common.BaseClient // contains filtered or unexported fields }
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(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 (client AIServiceLanguageClient) BatchDetectDominantLanguage(ctx context.Context, request BatchDetectDominantLanguageRequest) (response BatchDetectDominantLanguageResponse, err error)
BatchDetectDominantLanguage Make a detect call to language detection pre-deployed model.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/57.0.0/ailanguage/BatchDetectDominantLanguage.go.html to see an example of how to use BatchDetectDominantLanguage API.
func (client AIServiceLanguageClient) BatchDetectLanguageEntities(ctx context.Context, request BatchDetectLanguageEntitiesRequest) (response BatchDetectLanguageEntitiesResponse, err error)
BatchDetectLanguageEntities Make a batch detect call to entity pre-deployed model
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/57.0.0/ailanguage/BatchDetectLanguageEntities.go.html to see an example of how to use BatchDetectLanguageEntities API.
func (client AIServiceLanguageClient) BatchDetectLanguageKeyPhrases(ctx context.Context, request BatchDetectLanguageKeyPhrasesRequest) (response BatchDetectLanguageKeyPhrasesResponse, err error)
BatchDetectLanguageKeyPhrases Make a detect call to the keyPhrase pre-deployed model.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/57.0.0/ailanguage/BatchDetectLanguageKeyPhrases.go.html to see an example of how to use BatchDetectLanguageKeyPhrases API.
func (client AIServiceLanguageClient) BatchDetectLanguageSentiments(ctx context.Context, request BatchDetectLanguageSentimentsRequest) (response BatchDetectLanguageSentimentsResponse, err error)
BatchDetectLanguageSentiments Make a detect call to sentiment pre-deployed model.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/57.0.0/ailanguage/BatchDetectLanguageSentiments.go.html to see an example of how to use BatchDetectLanguageSentiments API.
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.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/57.0.0/ailanguage/BatchDetectLanguageTextClassification.go.html to see an example of how to use BatchDetectLanguageTextClassification API.
func (client *AIServiceLanguageClient) ConfigurationProvider() *common.ConfigurationProvider
ConfigurationProvider the ConfigurationProvider used in this client, or null if none set
func (client AIServiceLanguageClient) DetectDominantLanguage(ctx context.Context, request DetectDominantLanguageRequest) (response DetectDominantLanguageResponse, err error)
DetectDominantLanguage Make a detect call to language detection pre-deployed model.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/57.0.0/ailanguage/DetectDominantLanguage.go.html to see an example of how to use DetectDominantLanguage API.
func (client AIServiceLanguageClient) DetectLanguageEntities(ctx context.Context, request DetectLanguageEntitiesRequest) (response DetectLanguageEntitiesResponse, err error)
DetectLanguageEntities Make a detect call to enitiy pre-deployed model
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/57.0.0/ailanguage/DetectLanguageEntities.go.html to see an example of how to use DetectLanguageEntities API.
func (client AIServiceLanguageClient) DetectLanguageKeyPhrases(ctx context.Context, request DetectLanguageKeyPhrasesRequest) (response DetectLanguageKeyPhrasesResponse, err error)
DetectLanguageKeyPhrases Make a detect call to the keyPhrase pre-deployed model.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/57.0.0/ailanguage/DetectLanguageKeyPhrases.go.html to see an example of how to use DetectLanguageKeyPhrases API.
func (client AIServiceLanguageClient) DetectLanguageSentiments(ctx context.Context, request DetectLanguageSentimentsRequest) (response DetectLanguageSentimentsResponse, err error)
DetectLanguageSentiments Make a detect call to sentiment pre-deployed model.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/57.0.0/ailanguage/DetectLanguageSentiments.go.html to see an example of how to use DetectLanguageSentiments API.
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.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/57.0.0/ailanguage/DetectLanguageTextClassification.go.html to see an example of how to use DetectLanguageTextClassification API.
func (client *AIServiceLanguageClient) SetRegion(region string)
SetRegion overrides the region of this client.
BatchDetectDominantLanguageDetails The documents details for language detect call.
type BatchDetectDominantLanguageDetails struct { // List of Documents for detect language. Documents []DominantLanguageDocument `mandatory:"true" json:"documents"` }
func (m BatchDetectDominantLanguageDetails) String() string
func (m BatchDetectDominantLanguageDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
BatchDetectDominantLanguageRequest wrapper for the BatchDetectDominantLanguage operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/57.0.0/ailanguage/BatchDetectDominantLanguage.go.html to see an example of how to use 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 }
func (request BatchDetectDominantLanguageRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request BatchDetectDominantLanguageRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request BatchDetectDominantLanguageRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request BatchDetectDominantLanguageRequest) String() string
func (request BatchDetectDominantLanguageRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
BatchDetectDominantLanguageResponse wrapper for the BatchDetectDominantLanguage operation
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"` }
func (response BatchDetectDominantLanguageResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response BatchDetectDominantLanguageResponse) String() string
BatchDetectDominantLanguageResult Result of language detect call.
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"` }
func (m BatchDetectDominantLanguageResult) String() string
func (m BatchDetectDominantLanguageResult) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
BatchDetectLanguageEntitiesDetails The documents details for entities detect call.
type BatchDetectLanguageEntitiesDetails struct { // List of Documents for detect entities. Documents []EntityDocument `mandatory:"true" json:"documents"` }
func (m BatchDetectLanguageEntitiesDetails) String() string
func (m BatchDetectLanguageEntitiesDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
BatchDetectLanguageEntitiesRequest wrapper for the BatchDetectLanguageEntities operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/57.0.0/ailanguage/BatchDetectLanguageEntities.go.html to see an example of how to use 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 }
func (request BatchDetectLanguageEntitiesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request BatchDetectLanguageEntitiesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request BatchDetectLanguageEntitiesRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request BatchDetectLanguageEntitiesRequest) String() string
func (request BatchDetectLanguageEntitiesRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
BatchDetectLanguageEntitiesResponse wrapper for the BatchDetectLanguageEntities operation
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"` }
func (response BatchDetectLanguageEntitiesResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response BatchDetectLanguageEntitiesResponse) String() string
BatchDetectLanguageEntitiesResult Result of entities detect call.
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"` }
func (m BatchDetectLanguageEntitiesResult) String() string
func (m BatchDetectLanguageEntitiesResult) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
BatchDetectLanguageKeyPhrasesDetails The documents details for keyPhrases call.
type BatchDetectLanguageKeyPhrasesDetails struct { // List of Documents for detect keyPhrases. Documents []KeyPhraseDocument `mandatory:"true" json:"documents"` }
func (m BatchDetectLanguageKeyPhrasesDetails) String() string
func (m BatchDetectLanguageKeyPhrasesDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
BatchDetectLanguageKeyPhrasesRequest wrapper for the BatchDetectLanguageKeyPhrases operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/57.0.0/ailanguage/BatchDetectLanguageKeyPhrases.go.html to see an example of how to use 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 }
func (request BatchDetectLanguageKeyPhrasesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request BatchDetectLanguageKeyPhrasesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request BatchDetectLanguageKeyPhrasesRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request BatchDetectLanguageKeyPhrasesRequest) String() string
func (request BatchDetectLanguageKeyPhrasesRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
BatchDetectLanguageKeyPhrasesResponse wrapper for the BatchDetectLanguageKeyPhrases operation
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"` }
func (response BatchDetectLanguageKeyPhrasesResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response BatchDetectLanguageKeyPhrasesResponse) String() string
BatchDetectLanguageKeyPhrasesResult Result of keyPhrases detect call.
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"` }
func (m BatchDetectLanguageKeyPhrasesResult) String() string
func (m BatchDetectLanguageKeyPhrasesResult) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
BatchDetectLanguageSentimentsDetails The documents details for sentiment call.
type BatchDetectLanguageSentimentsDetails struct { // List of Documents for detect sentiments. Documents []SentimentsDocument `mandatory:"true" json:"documents"` }
func (m BatchDetectLanguageSentimentsDetails) String() string
func (m BatchDetectLanguageSentimentsDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
BatchDetectLanguageSentimentsLevelEnum Enum with underlying type: string
type BatchDetectLanguageSentimentsLevelEnum string
Set of constants representing the allowable values for BatchDetectLanguageSentimentsLevelEnum
const ( BatchDetectLanguageSentimentsLevelAspect BatchDetectLanguageSentimentsLevelEnum = "ASPECT" BatchDetectLanguageSentimentsLevelSentence BatchDetectLanguageSentimentsLevelEnum = "SENTENCE" )
func GetBatchDetectLanguageSentimentsLevelEnumValues() []BatchDetectLanguageSentimentsLevelEnum
GetBatchDetectLanguageSentimentsLevelEnumValues Enumerates the set of values for BatchDetectLanguageSentimentsLevelEnum
BatchDetectLanguageSentimentsRequest wrapper for the BatchDetectLanguageSentiments operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/57.0.0/ailanguage/BatchDetectLanguageSentiments.go.html to see an example of how to use 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 }
func (request BatchDetectLanguageSentimentsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request BatchDetectLanguageSentimentsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request BatchDetectLanguageSentimentsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request BatchDetectLanguageSentimentsRequest) String() string
func (request BatchDetectLanguageSentimentsRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
BatchDetectLanguageSentimentsResponse wrapper for the BatchDetectLanguageSentiments operation
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"` }
func (response BatchDetectLanguageSentimentsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response BatchDetectLanguageSentimentsResponse) String() string
BatchDetectLanguageSentimentsResult Result of sentiments detect call.
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"` }
func (m BatchDetectLanguageSentimentsResult) String() string
func (m BatchDetectLanguageSentimentsResult) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
BatchDetectLanguageTextClassificationDetails The documents details for text classification call.
type BatchDetectLanguageTextClassificationDetails struct { // List of Documents for detect text classification. Documents []TextClassificationDocument `mandatory:"true" json:"documents"` }
func (m BatchDetectLanguageTextClassificationDetails) String() string
func (m BatchDetectLanguageTextClassificationDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
BatchDetectLanguageTextClassificationRequest wrapper for the BatchDetectLanguageTextClassification operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/57.0.0/ailanguage/BatchDetectLanguageTextClassification.go.html to see an example of how to use 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 }
func (request BatchDetectLanguageTextClassificationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request BatchDetectLanguageTextClassificationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request BatchDetectLanguageTextClassificationRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request BatchDetectLanguageTextClassificationRequest) String() string
func (request BatchDetectLanguageTextClassificationRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
BatchDetectLanguageTextClassificationResponse wrapper for the BatchDetectLanguageTextClassification operation
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"` }
func (response BatchDetectLanguageTextClassificationResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response BatchDetectLanguageTextClassificationResponse) String() string
BatchDetectLanguageTextClassificationResult Result of text classification detect call.
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"` }
func (m BatchDetectLanguageTextClassificationResult) String() string
func (m BatchDetectLanguageTextClassificationResult) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DetectDominantLanguageDetails The document details for language detect call.
type DetectDominantLanguageDetails struct { // Document text for detect language. Text *string `mandatory:"true" json:"text"` }
func (m DetectDominantLanguageDetails) String() string
func (m DetectDominantLanguageDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DetectDominantLanguageRequest wrapper for the DetectDominantLanguage operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/57.0.0/ailanguage/DetectDominantLanguage.go.html to see an example of how to use 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 }
func (request DetectDominantLanguageRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request DetectDominantLanguageRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request DetectDominantLanguageRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DetectDominantLanguageRequest) String() string
func (request DetectDominantLanguageRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DetectDominantLanguageResponse wrapper for the DetectDominantLanguage operation
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"` }
func (response DetectDominantLanguageResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response DetectDominantLanguageResponse) String() string
DetectDominantLanguageResult Result of language detect call.
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"` }
func (m DetectDominantLanguageResult) String() string
func (m DetectDominantLanguageResult) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DetectLanguageEntitiesDetails The document details for entities detect call.
type DetectLanguageEntitiesDetails struct { // Document text for detect entities. Text *string `mandatory:"true" json:"text"` }
func (m DetectLanguageEntitiesDetails) String() string
func (m DetectLanguageEntitiesDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DetectLanguageEntitiesModelVersionEnum Enum with underlying type: string
type DetectLanguageEntitiesModelVersionEnum string
Set of constants representing the allowable values for DetectLanguageEntitiesModelVersionEnum
const ( DetectLanguageEntitiesModelVersionV21 DetectLanguageEntitiesModelVersionEnum = "V2.1" DetectLanguageEntitiesModelVersionV11 DetectLanguageEntitiesModelVersionEnum = "V1.1" )
func GetDetectLanguageEntitiesModelVersionEnumValues() []DetectLanguageEntitiesModelVersionEnum
GetDetectLanguageEntitiesModelVersionEnumValues Enumerates the set of values for DetectLanguageEntitiesModelVersionEnum
DetectLanguageEntitiesRequest wrapper for the DetectLanguageEntities operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/57.0.0/ailanguage/DetectLanguageEntities.go.html to see an example of how to use 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 }
func (request DetectLanguageEntitiesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request DetectLanguageEntitiesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request DetectLanguageEntitiesRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DetectLanguageEntitiesRequest) String() string
func (request DetectLanguageEntitiesRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DetectLanguageEntitiesResponse wrapper for the DetectLanguageEntities operation
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"` }
func (response DetectLanguageEntitiesResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response DetectLanguageEntitiesResponse) String() string
DetectLanguageEntitiesResult Result of entities detect call.
type DetectLanguageEntitiesResult struct { // List of detected entities. Entities []Entity `mandatory:"true" json:"entities"` }
func (m DetectLanguageEntitiesResult) String() string
func (m DetectLanguageEntitiesResult) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DetectLanguageKeyPhrasesDetails The document details for a keyPhrases detect call.
type DetectLanguageKeyPhrasesDetails struct { // Document text for detect keyPhrases. Text *string `mandatory:"true" json:"text"` }
func (m DetectLanguageKeyPhrasesDetails) String() string
func (m DetectLanguageKeyPhrasesDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DetectLanguageKeyPhrasesRequest wrapper for the DetectLanguageKeyPhrases operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/57.0.0/ailanguage/DetectLanguageKeyPhrases.go.html to see an example of how to use 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 }
func (request DetectLanguageKeyPhrasesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request DetectLanguageKeyPhrasesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request DetectLanguageKeyPhrasesRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DetectLanguageKeyPhrasesRequest) String() string
func (request DetectLanguageKeyPhrasesRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DetectLanguageKeyPhrasesResponse wrapper for the DetectLanguageKeyPhrases operation
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"` }
func (response DetectLanguageKeyPhrasesResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response DetectLanguageKeyPhrasesResponse) String() string
DetectLanguageKeyPhrasesResult Result of a language keyPhrases detect call.
type DetectLanguageKeyPhrasesResult struct { // List of detected keyPhrases. KeyPhrases []KeyPhrase `mandatory:"true" json:"keyPhrases"` }
func (m DetectLanguageKeyPhrasesResult) String() string
func (m DetectLanguageKeyPhrasesResult) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DetectLanguageSentimentsDetails The document details for sentiments detect call.
type DetectLanguageSentimentsDetails struct { // Document text for detect sentiments. Text *string `mandatory:"true" json:"text"` }
func (m DetectLanguageSentimentsDetails) String() string
func (m DetectLanguageSentimentsDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DetectLanguageSentimentsRequest wrapper for the DetectLanguageSentiments operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/57.0.0/ailanguage/DetectLanguageSentiments.go.html to see an example of how to use 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 }
func (request DetectLanguageSentimentsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request DetectLanguageSentimentsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request DetectLanguageSentimentsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DetectLanguageSentimentsRequest) String() string
func (request DetectLanguageSentimentsRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DetectLanguageSentimentsResponse wrapper for the DetectLanguageSentiments operation
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"` }
func (response DetectLanguageSentimentsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response DetectLanguageSentimentsResponse) String() string
DetectLanguageSentimentsResult Result of sentiments detect call.
type DetectLanguageSentimentsResult struct { // List of detected aspects. Aspects []SentimentAspect `mandatory:"true" json:"aspects"` }
func (m DetectLanguageSentimentsResult) String() string
func (m DetectLanguageSentimentsResult) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DetectLanguageTextClassificationDetails The document details for text classification detect call.
type DetectLanguageTextClassificationDetails struct { // Document text for detect text classes. Text *string `mandatory:"true" json:"text"` }
func (m DetectLanguageTextClassificationDetails) String() string
func (m DetectLanguageTextClassificationDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DetectLanguageTextClassificationRequest wrapper for the DetectLanguageTextClassification operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/57.0.0/ailanguage/DetectLanguageTextClassification.go.html to see an example of how to use 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 }
func (request DetectLanguageTextClassificationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request DetectLanguageTextClassificationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request DetectLanguageTextClassificationRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DetectLanguageTextClassificationRequest) String() string
func (request DetectLanguageTextClassificationRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DetectLanguageTextClassificationResponse wrapper for the DetectLanguageTextClassification operation
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"` }
func (response DetectLanguageTextClassificationResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response DetectLanguageTextClassificationResponse) String() string
DetectLanguageTextClassificationResult Result of text classification detect call.
type DetectLanguageTextClassificationResult struct { // List of detected text classes. TextClassification []TextClassification `mandatory:"true" json:"textClassification"` }
func (m DetectLanguageTextClassificationResult) String() string
func (m DetectLanguageTextClassificationResult) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DetectedLanguage Attributes to the detected language. Contains Language Name , Code, and Confidence Score.
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"` }
func (m DetectedLanguage) String() string
func (m DetectedLanguage) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DocumentError Error response for document.
type DocumentError struct { // Unique Document Identifier. Key *string `mandatory:"true" json:"key"` Error *ErrorDetails `mandatory:"true" json:"error"` }
func (m DocumentError) String() string
func (m DocumentError) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DominantLanguageDocument The document details for language detect call.
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"` }
func (m DominantLanguageDocument) String() string
func (m DominantLanguageDocument) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DominantLanguageDocumentResult The document response for language detect call.
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"` }
func (m DominantLanguageDocumentResult) String() string
func (m DominantLanguageDocumentResult) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
Entity entity object
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"` }
func (m Entity) String() string
func (m Entity) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
EntityDocument The document details for entities detect call.
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"` }
func (m EntityDocument) String() string
func (m EntityDocument) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
EntityDocumentResult The document response for entities detect call.
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"` }
func (m EntityDocumentResult) String() string
func (m EntityDocumentResult) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ErrorDetails Error Information.
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"` }
func (m ErrorDetails) String() string
func (m ErrorDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
HierarchicalEntity Hierarchical entity object
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"` }
func (m HierarchicalEntity) String() string
func (m HierarchicalEntity) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
KeyPhrase Key phrase for the given text.
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"` }
func (m KeyPhrase) String() string
func (m KeyPhrase) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
KeyPhraseDocument The document details for keyPhrases detect call.
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"` }
func (m KeyPhraseDocument) String() string
func (m KeyPhraseDocument) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
KeyPhraseDocumentResult The document response for keyPhrases detect call.
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"` }
func (m KeyPhraseDocumentResult) String() string
func (m KeyPhraseDocumentResult) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
NerModelVersionEnum Enum with underlying type: string
type NerModelVersionEnum string
Set of constants representing the allowable values for NerModelVersionEnum
const ( NerModelVersionV21 NerModelVersionEnum = "V2.1" NerModelVersionV11 NerModelVersionEnum = "V1.1" )
func GetNerModelVersionEnumValues() []NerModelVersionEnum
GetNerModelVersionEnumValues Enumerates the set of values for NerModelVersionEnum
SentimentAspect Sentiment aspect object.
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"` }
func (m SentimentAspect) String() string
func (m SentimentAspect) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
SentimentDocumentResult The document response for sentiment detect call.
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"` }
func (m SentimentDocumentResult) String() string
func (m SentimentDocumentResult) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
SentimentSentence Sentiment sentence object.
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"` }
func (m SentimentSentence) String() string
func (m SentimentSentence) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
SentimentsDocument The document details for sentiments detect call.
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"` }
func (m SentimentsDocument) String() string
func (m SentimentsDocument) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
TextClassification Text label and score for the given text.
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"` }
func (m TextClassification) String() string
func (m TextClassification) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
TextClassificationDocument The document details for test classification detect call.
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"` }
func (m TextClassificationDocument) String() string
func (m TextClassificationDocument) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
TextClassificationDocumentResult The document response for test classification detect call.
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"` }
func (m TextClassificationDocumentResult) String() string
func (m TextClassificationDocumentResult) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly