...

Package ailanguage

import "github.com/oracle/oci-go-sdk/ailanguage"
Overview
Index

Overview ▾

Index ▾

type AIServiceLanguageClient
    func NewAIServiceLanguageClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client AIServiceLanguageClient, err error)
    func NewAIServiceLanguageClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client AIServiceLanguageClient, err error)
    func (client *AIServiceLanguageClient) ConfigurationProvider() *common.ConfigurationProvider
    func (client AIServiceLanguageClient) DetectDominantLanguage(ctx context.Context, request DetectDominantLanguageRequest) (response DetectDominantLanguageResponse, err error)
    func (client AIServiceLanguageClient) DetectLanguageEntities(ctx context.Context, request DetectLanguageEntitiesRequest) (response DetectLanguageEntitiesResponse, err error)
    func (client AIServiceLanguageClient) DetectLanguageKeyPhrases(ctx context.Context, request DetectLanguageKeyPhrasesRequest) (response DetectLanguageKeyPhrasesResponse, err error)
    func (client AIServiceLanguageClient) DetectLanguageSentiments(ctx context.Context, request DetectLanguageSentimentsRequest) (response DetectLanguageSentimentsResponse, err error)
    func (client AIServiceLanguageClient) DetectLanguageTextClassification(ctx context.Context, request DetectLanguageTextClassificationRequest) (response DetectLanguageTextClassificationResponse, err error)
    func (client *AIServiceLanguageClient) SetRegion(region string)
type DetectDominantLanguageDetails
    func (m DetectDominantLanguageDetails) String() string
type DetectDominantLanguageRequest
    func (request DetectDominantLanguageRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request DetectDominantLanguageRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request DetectDominantLanguageRequest) RetryPolicy() *common.RetryPolicy
    func (request DetectDominantLanguageRequest) String() string
type DetectDominantLanguageResponse
    func (response DetectDominantLanguageResponse) HTTPResponse() *http.Response
    func (response DetectDominantLanguageResponse) String() string
type DetectDominantLanguageResult
    func (m DetectDominantLanguageResult) String() string
type DetectLanguageEntitiesDetails
    func (m DetectLanguageEntitiesDetails) String() string
type DetectLanguageEntitiesModelVersionEnum
    func GetDetectLanguageEntitiesModelVersionEnumValues() []DetectLanguageEntitiesModelVersionEnum
type DetectLanguageEntitiesRequest
    func (request DetectLanguageEntitiesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request DetectLanguageEntitiesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request DetectLanguageEntitiesRequest) RetryPolicy() *common.RetryPolicy
    func (request DetectLanguageEntitiesRequest) String() string
type DetectLanguageEntitiesResponse
    func (response DetectLanguageEntitiesResponse) HTTPResponse() *http.Response
    func (response DetectLanguageEntitiesResponse) String() string
type DetectLanguageEntitiesResult
    func (m DetectLanguageEntitiesResult) String() string
type DetectLanguageKeyPhrasesDetails
    func (m DetectLanguageKeyPhrasesDetails) String() string
type DetectLanguageKeyPhrasesRequest
    func (request DetectLanguageKeyPhrasesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request DetectLanguageKeyPhrasesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request DetectLanguageKeyPhrasesRequest) RetryPolicy() *common.RetryPolicy
    func (request DetectLanguageKeyPhrasesRequest) String() string
type DetectLanguageKeyPhrasesResponse
    func (response DetectLanguageKeyPhrasesResponse) HTTPResponse() *http.Response
    func (response DetectLanguageKeyPhrasesResponse) String() string
type DetectLanguageKeyPhrasesResult
    func (m DetectLanguageKeyPhrasesResult) String() string
type DetectLanguageSentimentsDetails
    func (m DetectLanguageSentimentsDetails) String() string
type DetectLanguageSentimentsRequest
    func (request DetectLanguageSentimentsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request DetectLanguageSentimentsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request DetectLanguageSentimentsRequest) RetryPolicy() *common.RetryPolicy
    func (request DetectLanguageSentimentsRequest) String() string
type DetectLanguageSentimentsResponse
    func (response DetectLanguageSentimentsResponse) HTTPResponse() *http.Response
    func (response DetectLanguageSentimentsResponse) String() string
type DetectLanguageSentimentsResult
    func (m DetectLanguageSentimentsResult) String() string
type DetectLanguageTextClassificationDetails
    func (m DetectLanguageTextClassificationDetails) String() string
type DetectLanguageTextClassificationRequest
    func (request DetectLanguageTextClassificationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request DetectLanguageTextClassificationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request DetectLanguageTextClassificationRequest) RetryPolicy() *common.RetryPolicy
    func (request DetectLanguageTextClassificationRequest) String() string
type DetectLanguageTextClassificationResponse
    func (response DetectLanguageTextClassificationResponse) HTTPResponse() *http.Response
    func (response DetectLanguageTextClassificationResponse) String() string
type DetectLanguageTextClassificationResult
    func (m DetectLanguageTextClassificationResult) String() string
type DetectedLanguage
    func (m DetectedLanguage) String() string
type Entity
    func (m Entity) String() string
type KeyPhrase
    func (m KeyPhrase) String() string
type NerModelVersionEnum
    func GetNerModelVersionEnumValues() []NerModelVersionEnum
type SentimentAspect
    func (m SentimentAspect) String() string
type TextClassification
    func (m TextClassification) String() string

Package files

ailanguage_aiservicelanguage_client.go detect_dominant_language_details.go detect_dominant_language_request_response.go detect_dominant_language_result.go detect_language_entities_details.go detect_language_entities_request_response.go detect_language_entities_result.go detect_language_key_phrases_details.go detect_language_key_phrases_request_response.go detect_language_key_phrases_result.go detect_language_sentiments_details.go detect_language_sentiments_request_response.go detect_language_sentiments_result.go detect_language_text_classification_details.go detect_language_text_classification_request_response.go detect_language_text_classification_result.go detected_language.go entity.go key_phrase.go ner_model_version.go sentiment_aspect.go text_classification.go

type AIServiceLanguageClient

AIServiceLanguageClient a client for AIServiceLanguage

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

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) 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/47.1.0/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/47.1.0/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/47.1.0/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/47.1.0/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/47.1.0/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 DetectDominantLanguageDetails

DetectDominantLanguageDetails The document details for language detect call.

type DetectDominantLanguageDetails struct {

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

func (DetectDominantLanguageDetails) String

func (m DetectDominantLanguageDetails) String() string

type DetectDominantLanguageRequest

DetectDominantLanguageRequest wrapper for the DetectDominantLanguage operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/47.1.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.
    // Example: `{"text": "If an emerging growth company, indicate by check mark if the registrant has elected not
    //             to use the extended transition period for complying"}`
    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 (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

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 (DetectDominantLanguageResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (DetectDominantLanguageResponse) String

func (response DetectDominantLanguageResponse) String() string

type DetectDominantLanguageResult

DetectDominantLanguageResult Result of language detect call.

type DetectDominantLanguageResult struct {

    // Results are sorted in descending order of the scores. Most likely language is on top.
    // languages: [{"name": "Bosnian","code": "bs","score": 0.6942308391868572},
    //            {"name": "Croatian","code": "hr","score": 0.15768701487872652},
    //            {"name": "Serbo-Croatian","code": "sh","score": 0.1480651612334694}]
    Languages []DetectedLanguage `mandatory:"true" json:"languages"`
}

func (DetectDominantLanguageResult) String

func (m DetectDominantLanguageResult) String() string

type DetectLanguageEntitiesDetails

DetectLanguageEntitiesDetails The document details for entities detect call.

type DetectLanguageEntitiesDetails struct {

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

func (DetectLanguageEntitiesDetails) String

func (m DetectLanguageEntitiesDetails) String() string

type DetectLanguageEntitiesModelVersionEnum

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

func GetDetectLanguageEntitiesModelVersionEnumValues() []DetectLanguageEntitiesModelVersionEnum

GetDetectLanguageEntitiesModelVersionEnumValues Enumerates the set of values for DetectLanguageEntitiesModelVersionEnum

type DetectLanguageEntitiesRequest

DetectLanguageEntitiesRequest wrapper for the DetectLanguageEntities operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/47.1.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.
    // Example: `{"text": "If an emerging growth company, indicate by check mark if the registrant has elected not
    //            to use the extended transition period for complying"}`
    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 (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

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 (DetectLanguageEntitiesResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (DetectLanguageEntitiesResponse) String

func (response DetectLanguageEntitiesResponse) String() string

type DetectLanguageEntitiesResult

DetectLanguageEntitiesResult Result of entities detect call.

type DetectLanguageEntitiesResult struct {

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

func (DetectLanguageEntitiesResult) String

func (m DetectLanguageEntitiesResult) String() string

type DetectLanguageKeyPhrasesDetails

DetectLanguageKeyPhrasesDetails The document details for a keyPhrases detect call.

type DetectLanguageKeyPhrasesDetails struct {

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

func (DetectLanguageKeyPhrasesDetails) String

func (m DetectLanguageKeyPhrasesDetails) String() string

type DetectLanguageKeyPhrasesRequest

DetectLanguageKeyPhrasesRequest wrapper for the DetectLanguageKeyPhrases operation

See also

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

type DetectLanguageKeyPhrasesRequest struct {

    // The details to make keyPhrase detect call.
    //  Example: `{"text": "If an emerging growth company, indicate by check mark if the registrant has elected not
    //                to use the extended transition period for complying"}`
    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 (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

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 (DetectLanguageKeyPhrasesResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (DetectLanguageKeyPhrasesResponse) String

func (response DetectLanguageKeyPhrasesResponse) String() string

type DetectLanguageKeyPhrasesResult

DetectLanguageKeyPhrasesResult Result of a language keyPhrases detect call.

type DetectLanguageKeyPhrasesResult struct {

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

func (DetectLanguageKeyPhrasesResult) String

func (m DetectLanguageKeyPhrasesResult) String() string

type DetectLanguageSentimentsDetails

DetectLanguageSentimentsDetails The document details for sentiments detect call.

type DetectLanguageSentimentsDetails struct {

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

func (DetectLanguageSentimentsDetails) String

func (m DetectLanguageSentimentsDetails) String() string

type DetectLanguageSentimentsRequest

DetectLanguageSentimentsRequest wrapper for the DetectLanguageSentiments operation

See also

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

type DetectLanguageSentimentsRequest struct {

    // The details to make sentiment detect call.
    // Example: `{"text": "If an emerging growth company, indicate by check mark if the registrant has elected not
    //             to use the extended transition period for complying"}`
    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 (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

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 (DetectLanguageSentimentsResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (DetectLanguageSentimentsResponse) String

func (response DetectLanguageSentimentsResponse) String() string

type DetectLanguageSentimentsResult

DetectLanguageSentimentsResult Result of sentiments detect call.

type DetectLanguageSentimentsResult struct {

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

func (DetectLanguageSentimentsResult) String

func (m DetectLanguageSentimentsResult) String() string

type DetectLanguageTextClassificationDetails

DetectLanguageTextClassificationDetails The document details for text classification detect call.

type DetectLanguageTextClassificationDetails struct {

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

func (DetectLanguageTextClassificationDetails) String

func (m DetectLanguageTextClassificationDetails) String() string

type DetectLanguageTextClassificationRequest

DetectLanguageTextClassificationRequest wrapper for the DetectLanguageTextClassification operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/47.1.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.
    // Example: `{"text": "If an emerging growth company, indicate by check mark if the registrant has elected not to use the extended transition period for complying"}`
    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 (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

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

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

func (DetectLanguageTextClassificationRequest) String

func (request DetectLanguageTextClassificationRequest) String() string

type DetectLanguageTextClassificationResponse

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 (DetectLanguageTextClassificationResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (DetectLanguageTextClassificationResponse) String

func (response DetectLanguageTextClassificationResponse) String() string

type DetectLanguageTextClassificationResult

DetectLanguageTextClassificationResult Result of text labels detect call.

type DetectLanguageTextClassificationResult struct {

    // List of categories
    TextClassification []TextClassification `mandatory:"true" json:"textClassification"`
}

func (DetectLanguageTextClassificationResult) String

func (m DetectLanguageTextClassificationResult) String() string

type DetectedLanguage

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

type DetectedLanguage struct {

    // Language Name
    Name *string `mandatory:"true" json:"name"`

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

    // Score or confidence for prediction.
    Score *float64 `mandatory:"true" json:"score"`
}

func (DetectedLanguage) String

func (m DetectedLanguage) String() string

type Entity

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 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 for prediction.
    Score *float64 `mandatory:"false" json:"score"`
}

func (Entity) String

func (m Entity) String() string

type KeyPhrase

KeyPhrase Key phrase and score for the given text.

type KeyPhrase struct {

    // Key phrase of the the given text.
    Text *string `mandatory:"true" json:"text"`

    // Score of the given key phrase.
    Score *float64 `mandatory:"true" json:"score"`
}

func (KeyPhrase) String

func (m KeyPhrase) String() string

type NerModelVersionEnum

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

func GetNerModelVersionEnumValues() []NerModelVersionEnum

GetNerModelVersionEnumValues Enumerates the set of values for NerModelVersionEnum

type SentimentAspect

SentimentAspect 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 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 for each sentiment.
    // Example: "{\"positive\": 1.0, \"negative\": 0.0}"
    Scores map[string]float64 `mandatory:"false" json:"scores"`
}

func (SentimentAspect) String

func (m SentimentAspect) String() string

type TextClassification

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 of the given text.
    Score *float64 `mandatory:"true" json:"score"`
}

func (TextClassification) String

func (m TextClassification) String() string