@Generated(value="OracleSDKGenerator", comments="API Version: 20221001") public class AIServiceLanguageClient extends BaseSyncClient implements AIServiceLanguage
Modifier and Type | Class and Description |
---|---|
static class |
AIServiceLanguageClient.Builder
Builder class for this client.
|
Modifier and Type | Field and Description |
---|---|
String |
clientCommonLibraryVersion
Compatible SDK version, provided by the codegen.
|
Optional<String> |
minimumClientCommonLibraryVersionFromClient
Minimum compatible SDK version, maybe provided by the codegen.
|
static Service |
SERVICE
Service instance for AIServiceLanguage.
|
Constructor and Description |
---|
AIServiceLanguageClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory)
Deprecated.
Use the
builder instead. |
AIServiceLanguageClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators)
Deprecated.
Use the
builder instead. |
AIServiceLanguageClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Deprecated.
Use the
builder instead. |
AIServiceLanguageClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Deprecated.
Use the
builder instead. |
AIServiceLanguageClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint,
ExecutorService executorService)
Deprecated.
Use the
builder instead. |
AIServiceLanguageClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Deprecated.
Use the
builder instead. |
AIServiceLanguageClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration)
Deprecated.
Use the
builder instead. |
AIServiceLanguageClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator)
Deprecated.
Use the
builder instead. |
Modifier and Type | Method and Description |
---|---|
BatchDetectDominantLanguageResponse |
batchDetectDominantLanguage(BatchDetectDominantLanguageRequest request)
The API returns the detected language and a related confidence score (between 0 and 1).
|
BatchDetectHealthEntityResponse |
batchDetectHealthEntity(BatchDetectHealthEntityRequest request)
The API extracts health entities in text records.
|
BatchDetectLanguageEntitiesResponse |
batchDetectLanguageEntities(BatchDetectLanguageEntitiesRequest request)
The API extracts entities in text records.
|
BatchDetectLanguageKeyPhrasesResponse |
batchDetectLanguageKeyPhrases(BatchDetectLanguageKeyPhrasesRequest request)
The API extracts key-phrases in text records.
|
BatchDetectLanguagePiiEntitiesResponse |
batchDetectLanguagePiiEntities(BatchDetectLanguagePiiEntitiesRequest request)
The API extracts pii entities in text records.
|
BatchDetectLanguageSentimentsResponse |
batchDetectLanguageSentiments(BatchDetectLanguageSentimentsRequest request)
The API extracts aspect-based and sentence level sentiment in text records.
|
BatchDetectLanguageTextClassificationResponse |
batchDetectLanguageTextClassification(BatchDetectLanguageTextClassificationRequest request)
The API automatically classifies text into a set of pre-determined classes and sub-classes.
|
BatchLanguageTranslationResponse |
batchLanguageTranslation(BatchLanguageTranslationRequest request)
Translates a batch of text documents from source to target language.
|
static AIServiceLanguageClient.Builder |
builder()
Create a builder for this client.
|
CancelJobResponse |
cancelJob(CancelJobRequest request)
Canceling the job cancels all the tasks under it.
|
ChangeEndpointCompartmentResponse |
changeEndpointCompartment(ChangeEndpointCompartmentRequest request)
Moves a Endpoint into a different compartment.
|
ChangeJobCompartmentResponse |
changeJobCompartment(ChangeJobCompartmentRequest request)
Moves a Job into a different compartment.
|
ChangeModelCompartmentResponse |
changeModelCompartment(ChangeModelCompartmentRequest request)
Moves a Model into a different compartment.
|
ChangeProjectCompartmentResponse |
changeProjectCompartment(ChangeProjectCompartmentRequest request)
Moves a Project into a different compartment.
|
void |
close() |
CreateEndpointResponse |
createEndpoint(CreateEndpointRequest request)
Creates a new endpoint and deploy the trained model
|
CreateJobResponse |
createJob(CreateJobRequest request)
Creates a new language service async job.
|
CreateModelResponse |
createModel(CreateModelRequest request)
Creates a new model for training and train the model with date provided.
|
CreateProjectResponse |
createProject(CreateProjectRequest request)
Creates a new Project.
|
DeleteEndpointResponse |
deleteEndpoint(DeleteEndpointRequest request)
Deletes a provisioned endpoint resource by identifier.
|
DeleteJobResponse |
deleteJob(DeleteJobRequest request)
Deletes the language service async Job
|
DeleteModelResponse |
deleteModel(DeleteModelRequest request)
Deletes a provisioned model resource by identifier.
|
DeleteProjectResponse |
deleteProject(DeleteProjectRequest request)
Deletes a Project resource by identifier.
|
DetectDominantLanguageResponse |
detectDominantLanguage(DetectDominantLanguageRequest request)
Deprecated: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT.
|
DetectLanguageEntitiesResponse |
detectLanguageEntities(DetectLanguageEntitiesRequest request)
Deprecated: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT.
|
DetectLanguageKeyPhrasesResponse |
detectLanguageKeyPhrases(DetectLanguageKeyPhrasesRequest request)
Deprecated: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT.
|
DetectLanguageSentimentsResponse |
detectLanguageSentiments(DetectLanguageSentimentsRequest request)
Deprecated: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT.
|
DetectLanguageTextClassificationResponse |
detectLanguageTextClassification(DetectLanguageTextClassificationRequest request)
Deprecated: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT.
|
String |
getClientCommonLibraryVersion() |
protected ClientConfigurator |
getDefaultConfigurator() |
String |
getEndpoint() |
GetEndpointResponse |
getEndpoint(GetEndpointRequest request)
Gets an endpoint by identifier
|
GetJobResponse |
getJob(GetJobRequest request)
Gets a language service async job
|
Optional<String> |
getMinimumClientCommonLibraryVersionFromClient() |
GetModelResponse |
getModel(GetModelRequest request)
Gets a model by identifier
|
GetModelTypeResponse |
getModelType(GetModelTypeRequest request)
Gets model capabilities
|
AIServiceLanguagePaginators |
getPaginators()
Gets the pre-configured paginators available for list operations in this service which may
return multiple pages of data.
|
GetProjectResponse |
getProject(GetProjectRequest request)
Gets a Project by identifier
|
AIServiceLanguageWaiters |
getWaiters()
Gets the pre-configured waiters available for resources for this service.
|
GetWorkRequestResponse |
getWorkRequest(GetWorkRequestRequest request)
Gets the status of the work request with the given ID.
|
ListEndpointsResponse |
listEndpoints(ListEndpointsRequest request)
Returns a list of Endpoints.
|
ListEvaluationResultsResponse |
listEvaluationResults(ListEvaluationResultsRequest request)
Get a (paginated) list of evaluation results for a given model.
|
ListJobsResponse |
listJobs(ListJobsRequest request)
Returns a list of language service async Jobs.
|
ListModelsResponse |
listModels(ListModelsRequest request)
Returns a list of models.
|
ListProjectsResponse |
listProjects(ListProjectsRequest request)
Returns a list of Projects.
|
ListWorkRequestErrorsResponse |
listWorkRequestErrors(ListWorkRequestErrorsRequest request)
Return a (paginated) list of errors for a given work request.
|
ListWorkRequestLogsResponse |
listWorkRequestLogs(ListWorkRequestLogsRequest request)
Return a (paginated) list of logs for a given work request.
|
ListWorkRequestsResponse |
listWorkRequests(ListWorkRequestsRequest request)
Lists the work requests in a compartment.
|
void |
populateServiceParametersInEndpoint(String endpoint,
Map<String,Object> requiredParametersMap)
Populate the parameters in the endpoint with its corresponding value and update the base
endpoint.
|
void |
refreshClient()
Rebuild the backing
HttpClient . |
void |
setEndpoint(String endpoint) |
void |
setRegion(Region region)
Sets the region to call (ex, Region.US_PHOENIX_1).
|
void |
setRegion(String regionId)
Sets the region to call (ex, ‘us-phoenix-1’).
|
void |
updateBaseEndpoint(String endpoint)
This method should be used for parameterized endpoint templates only.
|
UpdateEndpointResponse |
updateEndpoint(UpdateEndpointRequest request)
Update the Endpoint identified by the id
|
UpdateJobResponse |
updateJob(UpdateJobRequest request)
Updates the language service async Job
|
UpdateModelResponse |
updateModel(UpdateModelRequest request)
Updates the model
|
UpdateProjectResponse |
updateProject(UpdateProjectRequest request)
Updates the Project
|
void |
useRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled)
This method should be used to enable or disable the use of realm-specific endpoint template.
|
clientCall
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEndpoint, refreshClient, setEndpoint, useRealmSpecificEndpointTemplate
close
public static final Service SERVICE
Service instance for AIServiceLanguage.
public final String clientCommonLibraryVersion
@Deprecated public AIServiceLanguageClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see AIServiceLanguageClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)@Deprecated public AIServiceLanguageClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see AIServiceLanguageClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
@Deprecated public AIServiceLanguageClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see AIServiceLanguageClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
@Deprecated public AIServiceLanguageClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see AIServiceLanguageClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
@Deprecated public AIServiceLanguageClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see AIServiceLanguageClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
- ClientBuilderBase.additionalClientConfigurators
@Deprecated public AIServiceLanguageClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see AIServiceLanguageClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
- ClientBuilderBase.additionalClientConfigurators
endpoint
- ClientBuilderBase.endpoint(java.lang.String)
@Deprecated public AIServiceLanguageClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see AIServiceLanguageClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
- ClientBuilderBase.additionalClientConfigurators
endpoint
- ClientBuilderBase.endpoint(java.lang.String)
signingStrategyRequestSignerFactories
- ClientBuilderBase.signingStrategyRequestSignerFactories
@Deprecated public AIServiceLanguageClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, ExecutorService executorService)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see AIServiceLanguageClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
- ClientBuilderBase.additionalClientConfigurators
endpoint
- ClientBuilderBase.endpoint(java.lang.String)
signingStrategyRequestSignerFactories
- ClientBuilderBase.signingStrategyRequestSignerFactories
executorService
- AIServiceLanguageClient.Builder.executorService
public static AIServiceLanguageClient.Builder builder()
Create a builder for this client.
public void setRegion(Region region)
AIServiceLanguage
Sets the region to call (ex, Region.US_PHOENIX_1).
Note, this will call setEndpoint
after resolving the
endpoint. If the service is not available in this Region, however, an
IllegalArgumentException will be raised.
setRegion
in interface AIServiceLanguage
region
- The region of the service.public void setRegion(String regionId)
AIServiceLanguage
Sets the region to call (ex, ‘us-phoenix-1’).
Note, this will first try to map the region ID to a known Region and call setRegion
.
If no known Region could be determined, it will create an endpoint based on the default
endpoint format (Region.formatDefaultRegionEndpoint(Service, String)
and then call setEndpoint
.
setRegion
in interface AIServiceLanguage
regionId
- The public region ID.public BatchDetectDominantLanguageResponse batchDetectDominantLanguage(BatchDetectDominantLanguageRequest request)
AIServiceLanguage
The API returns the detected language and a related confidence score (between 0 and 1). It supports passing a batch of records.
[List of supported languages.](https://docs.cloud.oracle.com/iaas/language/using/pretrain-models.htm#lang-detect)
Limitations: - A batch may have up to 100 records. - A record may be up to 5000 characters long. - The total of characters to process in a request can be up to 20,000 characters.
batchDetectDominantLanguage
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic BatchDetectHealthEntityResponse batchDetectHealthEntity(BatchDetectHealthEntityRequest request)
AIServiceLanguage
The API extracts health entities in text records. For each entity, its type and confidence score (between 0 and 1) is returned. It supports passing a batch of records.
Limitations: - A batch may have up to 100 records. - A record may be up to 5000 characters long. - The total of characters to process in a request can be up to 20,000 characters.
batchDetectHealthEntity
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic BatchDetectLanguageEntitiesResponse batchDetectLanguageEntities(BatchDetectLanguageEntitiesRequest request)
AIServiceLanguage
The API extracts entities in text records. For each entity, its type/subtype and confidence score (between 0 and 1) is returned. It supports passing a batch of records.
[List of supported entities.](https://docs.cloud.oracle.com/iaas/language/using/pretrain-models.htm#ner__sup-ner-entity)
Limitations: - A batch may have up to 100 records. - A record may be up to 5000 characters long. - The total of characters to process in a request can be up to 20,000 characters.
batchDetectLanguageEntities
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic BatchDetectLanguageKeyPhrasesResponse batchDetectLanguageKeyPhrases(BatchDetectLanguageKeyPhrasesRequest request)
AIServiceLanguage
The API extracts key-phrases in text records. For each key-phrase, a score (between 0 and 1) is returned that highlights the importance of the key-phrase in the context of the text. It supports passing a batch of records.
Limitations: - A batch may have up to 100 records. - A record may be up to 5000 characters long. - The total of characters to process in a request can be up to 20,000 characters.
batchDetectLanguageKeyPhrases
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic BatchDetectLanguagePiiEntitiesResponse batchDetectLanguagePiiEntities(BatchDetectLanguagePiiEntitiesRequest request)
AIServiceLanguage
The API extracts pii entities in text records. For each entity, its type and confidence score (between 0 and 1) is returned. It supports passing a batch of records.
Limitations: - A batch may have up to 100 records. - A record may be up to 5000 characters long. - The total of characters to process in a request can be up to 20,000 characters.
batchDetectLanguagePiiEntities
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic BatchDetectLanguageSentimentsResponse batchDetectLanguageSentiments(BatchDetectLanguageSentimentsRequest request)
AIServiceLanguage
The API extracts aspect-based and sentence level sentiment in text records.
For aspect-based sentiment analysis, a set of aspects and their respective sentiment is returned for each record. Similarly, for sentence-level sentiment analysis, the sentiment is returned at the sentence level.
For sentiment analysis, confidence scores are provided for each of the classes (positive, negative, neutral and mixed).
Learn more about sentiment analysis [here](https://docs.cloud.oracle.com/iaas/language/using/pretrain-models.htm#sentiment).
Limitations: - A batch may have up to 100 records. - A record may be up to 5000 characters long. - The total of characters to process in a request can be up to 20,000 characters.
batchDetectLanguageSentiments
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic BatchDetectLanguageTextClassificationResponse batchDetectLanguageTextClassification(BatchDetectLanguageTextClassificationRequest request)
AIServiceLanguage
The API automatically classifies text into a set of pre-determined classes and sub-classes. A single class/subclass is returned for each record classified.
It supports passing a batch of records.
Learn more about text classification [here](https://docs.cloud.oracle.com/iaas/language/using/pretrain-models.htm#text-class).
Limitations: - A batch may have up to 100 records. - A record may be up to 5000 characters long. - The total of characters to process in a request can be up to 20,000 characters.
batchDetectLanguageTextClassification
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic BatchLanguageTranslationResponse batchLanguageTranslation(BatchLanguageTranslationRequest request)
AIServiceLanguage
Translates a batch of text documents from source to target language. A batch can contain: - up to 100 records. - documents length less than 5000 characters. - 20,000 characters in total as a sum of all documents length.
batchLanguageTranslation
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic CancelJobResponse cancelJob(CancelJobRequest request)
AIServiceLanguage
Canceling the job cancels all the tasks under it.
cancelJob
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic ChangeEndpointCompartmentResponse changeEndpointCompartment(ChangeEndpointCompartmentRequest request)
AIServiceLanguage
Moves a Endpoint into a different compartment. When provided, If-Match is checked against ETag values of the resource.
changeEndpointCompartment
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic ChangeJobCompartmentResponse changeJobCompartment(ChangeJobCompartmentRequest request)
AIServiceLanguage
Moves a Job into a different compartment. When provided, If-Match is checked against ETag values of the resource.
changeJobCompartment
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic ChangeModelCompartmentResponse changeModelCompartment(ChangeModelCompartmentRequest request)
AIServiceLanguage
Moves a Model into a different compartment. When provided, If-Match is checked against ETag values of the resource.
changeModelCompartment
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic ChangeProjectCompartmentResponse changeProjectCompartment(ChangeProjectCompartmentRequest request)
AIServiceLanguage
Moves a Project into a different compartment. When provided, If-Match is checked against ETag values of the resource.
changeProjectCompartment
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic CreateEndpointResponse createEndpoint(CreateEndpointRequest request)
AIServiceLanguage
Creates a new endpoint and deploy the trained model
createEndpoint
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic CreateJobResponse createJob(CreateJobRequest request)
AIServiceLanguage
Creates a new language service async job.
createJob
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic CreateModelResponse createModel(CreateModelRequest request)
AIServiceLanguage
Creates a new model for training and train the model with date provided.
createModel
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic CreateProjectResponse createProject(CreateProjectRequest request)
AIServiceLanguage
Creates a new Project.
createProject
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic DeleteEndpointResponse deleteEndpoint(DeleteEndpointRequest request)
AIServiceLanguage
Deletes a provisioned endpoint resource by identifier. This operation fails with a 409 error unless all associated resources are in a DELETED state. You must delete all associated resources before deleting a model.
deleteEndpoint
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic DeleteJobResponse deleteJob(DeleteJobRequest request)
AIServiceLanguage
Deletes the language service async Job
deleteJob
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic DeleteModelResponse deleteModel(DeleteModelRequest request)
AIServiceLanguage
Deletes a provisioned model resource by identifier. This operation fails with a 409 error unless all associated resources are in a DELETED state. You must delete all associated resources before deleting a model.
deleteModel
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic DeleteProjectResponse deleteProject(DeleteProjectRequest request)
AIServiceLanguage
Deletes a Project resource by identifier. This operation fails with a 409 error unless all associated resources (models deployments or data assets) are in a DELETED state. You must delete all associated resources before deleting a project.
deleteProject
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic DetectDominantLanguageResponse detectDominantLanguage(DetectDominantLanguageRequest request)
AIServiceLanguage
Deprecated: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT. We recommend you replace this API with the batch API, BatchDetectDominantLanguage.
The DetectDominantLanguage API returns the detected language and a related confidence score (between 0 and 1).
[List of supported languages](https://docs.cloud.oracle.com/iaas/language/using/pretrain-models.htm#lang-detect)
Limitations: - A record may be up to 1000 characters long.
detectDominantLanguage
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic DetectLanguageEntitiesResponse detectLanguageEntities(DetectLanguageEntitiesRequest request)
AIServiceLanguage
Deprecated: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT. We recommend you replace this API with the batch API, BatchDetectLanguageEntities.
The DetectLanguageEntities API extracts entities in text records. For each entity, its type and confidence score (between 0 and 1) is returned.
Limitations: - A text may be up to 1000 characters long.
detectLanguageEntities
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic DetectLanguageKeyPhrasesResponse detectLanguageKeyPhrases(DetectLanguageKeyPhrasesRequest request)
AIServiceLanguage
Deprecated: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT. We recommend you replace this API with the batch API, BatchDetectLanguageKeyPhrases.
The DetectLanguageKeyPhrases API extracts key-phrases in text records. For each key-phrase, a score (between 0 and 1) is returned that highlights the importance of the key-phrase in the context of the text. Limitations: - A record may be up to 1000 characters long.
detectLanguageKeyPhrases
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic DetectLanguageSentimentsResponse detectLanguageSentiments(DetectLanguageSentimentsRequest request)
AIServiceLanguage
Deprecated: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT. We recommend you replace this API with the batch API, BatchDetectLanguageSentiments.
The DetectLanguageSentiments API extracts aspect-based in text records.
For aspect-based sentiment analysis, a set of aspects and their respective sentiment is returned.
For sentiment analysis, confidence scores are provided for each of the classes (positive, negative, neutral).
Learn more about sentiment analysis [here](https://docs.cloud.oracle.com/iaas/language/using/pretrain-models.htm#sentiment).
Limitations: - A record may be up to 1000 characters long.
detectLanguageSentiments
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic DetectLanguageTextClassificationResponse detectLanguageTextClassification(DetectLanguageTextClassificationRequest request)
AIServiceLanguage
Deprecated: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT. We recommend you replace this API with the batch API, BatchDetectLanguageTextClassification.
The DetectLanguageTextClassification API automatically classifies text into a set of pre-determined classes and sub-classes. A single class/subclass is returned for each record classified.
Learn more about text classification [here](https://docs.cloud.oracle.com/iaas/language/using/pretrain-models.htm#text-class).
Limitations: - A record may be up to 1000 characters long.
detectLanguageTextClassification
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic GetEndpointResponse getEndpoint(GetEndpointRequest request)
AIServiceLanguage
Gets an endpoint by identifier
getEndpoint
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic GetJobResponse getJob(GetJobRequest request)
AIServiceLanguage
Gets a language service async job
getJob
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic GetModelResponse getModel(GetModelRequest request)
AIServiceLanguage
Gets a model by identifier
getModel
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic GetModelTypeResponse getModelType(GetModelTypeRequest request)
AIServiceLanguage
Gets model capabilities
getModelType
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic GetProjectResponse getProject(GetProjectRequest request)
AIServiceLanguage
Gets a Project by identifier
getProject
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request)
AIServiceLanguage
Gets the status of the work request with the given ID.
getWorkRequest
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic ListEndpointsResponse listEndpoints(ListEndpointsRequest request)
AIServiceLanguage
Returns a list of Endpoints.
listEndpoints
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic ListEvaluationResultsResponse listEvaluationResults(ListEvaluationResultsRequest request)
AIServiceLanguage
Get a (paginated) list of evaluation results for a given model.
listEvaluationResults
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic ListJobsResponse listJobs(ListJobsRequest request)
AIServiceLanguage
Returns a list of language service async Jobs.
listJobs
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic ListModelsResponse listModels(ListModelsRequest request)
AIServiceLanguage
Returns a list of models.
listModels
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic ListProjectsResponse listProjects(ListProjectsRequest request)
AIServiceLanguage
Returns a list of Projects.
listProjects
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic ListWorkRequestErrorsResponse listWorkRequestErrors(ListWorkRequestErrorsRequest request)
AIServiceLanguage
Return a (paginated) list of errors for a given work request.
listWorkRequestErrors
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request)
AIServiceLanguage
Return a (paginated) list of logs for a given work request.
listWorkRequestLogs
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request)
AIServiceLanguage
Lists the work requests in a compartment.
listWorkRequests
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic UpdateEndpointResponse updateEndpoint(UpdateEndpointRequest request)
AIServiceLanguage
Update the Endpoint identified by the id
updateEndpoint
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic UpdateJobResponse updateJob(UpdateJobRequest request)
AIServiceLanguage
Updates the language service async Job
updateJob
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic UpdateModelResponse updateModel(UpdateModelRequest request)
AIServiceLanguage
Updates the model
updateModel
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic UpdateProjectResponse updateProject(UpdateProjectRequest request)
AIServiceLanguage
Updates the Project
updateProject
in interface AIServiceLanguage
request
- The request object containing the details to sendpublic AIServiceLanguageWaiters getWaiters()
AIServiceLanguage
Gets the pre-configured waiters available for resources for this service.
getWaiters
in interface AIServiceLanguage
public AIServiceLanguagePaginators getPaginators()
AIServiceLanguage
Gets the pre-configured paginators available for list operations in this service which may
return multiple pages of data. These paginators provide an Iterable
interface so that service responses, or resources/records, can be iterated through without
having to manually deal with pagination and page tokens.
getPaginators
in interface AIServiceLanguage
protected ClientConfigurator getDefaultConfigurator()
public void useRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled)
useOfRealmSpecificEndpointTemplateEnabled
- This flag can be set to true or false to
enable or disable the use of realm-specific endpoint template respectivelypublic final void populateServiceParametersInEndpoint(String endpoint, Map<String,Object> requiredParametersMap)
endpoint
- The endpoint template in userequiredParametersMap
- Map of parameter name as key and value set in request path or
query parameter as valuepublic final void updateBaseEndpoint(String endpoint)
endpoint
- The updated endpoint to usepublic final void setEndpoint(String endpoint)
public final String getEndpoint()
public final void refreshClient()
HttpClient
. This will call ClientConfigurator
s again, and
can be used to e.g. refresh the SSL certificate.public final void close()
close
in interface AutoCloseable
public String getClientCommonLibraryVersion()
Copyright © 2016–2024. All rights reserved.