public class CompareComply
extends com.ibm.cloud.sdk.core.service.BaseService
| Constructor and Description |
|---|
CompareComply(java.lang.String versionDate)
Constructs a new `CompareComply` client using the DEFAULT_SERVICE_NAME.
|
CompareComply(java.lang.String versionDate,
com.ibm.cloud.sdk.core.security.Authenticator authenticator)
Constructs a new `CompareComply` client with the DEFAULT_SERVICE_NAME and the specified
Authenticator.
|
CompareComply(java.lang.String versionDate,
java.lang.String serviceName)
Constructs a new `CompareComply` client with the specified serviceName.
|
CompareComply(java.lang.String versionDate,
java.lang.String serviceName,
com.ibm.cloud.sdk.core.security.Authenticator authenticator)
Constructs a new `CompareComply` client with the specified Authenticator and serviceName.
|
| Modifier and Type | Method and Description |
|---|---|
com.ibm.cloud.sdk.core.http.ServiceCall<FeedbackReturn> |
addFeedback(AddFeedbackOptions addFeedbackOptions)
Add feedback.
|
com.ibm.cloud.sdk.core.http.ServiceCall<ClassifyReturn> |
classifyElements(ClassifyElementsOptions classifyElementsOptions)
Classify the elements of a document.
|
com.ibm.cloud.sdk.core.http.ServiceCall<CompareReturn> |
compareDocuments(CompareDocumentsOptions compareDocumentsOptions)
Compare two documents.
|
com.ibm.cloud.sdk.core.http.ServiceCall<HTMLReturn> |
convertToHtml(ConvertToHtmlOptions convertToHtmlOptions)
Convert document to HTML.
|
com.ibm.cloud.sdk.core.http.ServiceCall<BatchStatus> |
createBatch(CreateBatchOptions createBatchOptions)
Submit a batch-processing request.
|
com.ibm.cloud.sdk.core.http.ServiceCall<FeedbackDeleted> |
deleteFeedback(DeleteFeedbackOptions deleteFeedbackOptions)
Delete a specified feedback entry.
|
com.ibm.cloud.sdk.core.http.ServiceCall<TableReturn> |
extractTables(ExtractTablesOptions extractTablesOptions)
Extract a document's tables.
|
com.ibm.cloud.sdk.core.http.ServiceCall<BatchStatus> |
getBatch(GetBatchOptions getBatchOptions)
Get information about a specific batch-processing job.
|
com.ibm.cloud.sdk.core.http.ServiceCall<GetFeedback> |
getFeedback(GetFeedbackOptions getFeedbackOptions)
Get a specified feedback entry.
|
com.ibm.cloud.sdk.core.http.ServiceCall<Batches> |
listBatches()
List submitted batch-processing jobs.
|
com.ibm.cloud.sdk.core.http.ServiceCall<Batches> |
listBatches(ListBatchesOptions listBatchesOptions)
List submitted batch-processing jobs.
|
com.ibm.cloud.sdk.core.http.ServiceCall<FeedbackList> |
listFeedback()
List the feedback in a document.
|
com.ibm.cloud.sdk.core.http.ServiceCall<FeedbackList> |
listFeedback(ListFeedbackOptions listFeedbackOptions)
List the feedback in a document.
|
com.ibm.cloud.sdk.core.http.ServiceCall<BatchStatus> |
updateBatch(UpdateBatchOptions updateBatchOptions)
Update a pending or active batch-processing job.
|
configureClient, configureHttpClient, configureService, createServiceCall, getAuthenticator, getClient, getEndPoint, getName, getServiceUrl, isJsonMimeType, isJsonPatchMimeType, processServiceCall, setAuthentication, setClient, setDefaultHeaders, setDefaultHeaders, setEndPoint, setServiceUrl, toStringpublic CompareComply(java.lang.String versionDate)
versionDate - The version date (yyyy-MM-dd) of the REST API to use. Specifying this value
will keep your API calls from failing when the service introduces breaking changes.public CompareComply(java.lang.String versionDate,
com.ibm.cloud.sdk.core.security.Authenticator authenticator)
versionDate - The version date (yyyy-MM-dd) of the REST API to use. Specifying this value
will keep your API calls from failing when the service introduces breaking changes.authenticator - the Authenticator instance to be configured for this servicepublic CompareComply(java.lang.String versionDate,
java.lang.String serviceName)
versionDate - The version date (yyyy-MM-dd) of the REST API to use. Specifying this value
will keep your API calls from failing when the service introduces breaking changes.serviceName - The name of the service to configure.public CompareComply(java.lang.String versionDate,
java.lang.String serviceName,
com.ibm.cloud.sdk.core.security.Authenticator authenticator)
versionDate - The version date (yyyy-MM-dd) of the REST API to use. Specifying this value
will keep your API calls from failing when the service introduces breaking changes.serviceName - The name of the service to configure.authenticator - the Authenticator instance to be configured for this servicepublic com.ibm.cloud.sdk.core.http.ServiceCall<HTMLReturn> convertToHtml(ConvertToHtmlOptions convertToHtmlOptions)
Converts a document to HTML.
convertToHtmlOptions - the ConvertToHtmlOptions containing the options for the
callServiceCall with a response type of HTMLReturnpublic com.ibm.cloud.sdk.core.http.ServiceCall<ClassifyReturn> classifyElements(ClassifyElementsOptions classifyElementsOptions)
Analyzes the structural and semantic elements of a document.
classifyElementsOptions - the ClassifyElementsOptions containing the options for
the callServiceCall with a response type of ClassifyReturnpublic com.ibm.cloud.sdk.core.http.ServiceCall<TableReturn> extractTables(ExtractTablesOptions extractTablesOptions)
Analyzes the tables in a document.
extractTablesOptions - the ExtractTablesOptions containing the options for the
callServiceCall with a response type of TableReturnpublic com.ibm.cloud.sdk.core.http.ServiceCall<CompareReturn> compareDocuments(CompareDocumentsOptions compareDocumentsOptions)
Compares two input documents. Documents must be in the same format.
compareDocumentsOptions - the CompareDocumentsOptions containing the options for
the callServiceCall with a response type of CompareReturnpublic com.ibm.cloud.sdk.core.http.ServiceCall<FeedbackReturn> addFeedback(AddFeedbackOptions addFeedbackOptions)
Adds feedback in the form of _labels_ from a subject-matter expert (SME) to a governing document. **Important:** Feedback is not immediately incorporated into the training model, nor is it guaranteed to be incorporated at a later date. Instead, submitted feedback is used to suggest future updates to the training model.
addFeedbackOptions - the AddFeedbackOptions containing the options for the callServiceCall with a response type of FeedbackReturnpublic com.ibm.cloud.sdk.core.http.ServiceCall<FeedbackList> listFeedback(ListFeedbackOptions listFeedbackOptions)
Lists the feedback in a document.
listFeedbackOptions - the ListFeedbackOptions containing the options for the callServiceCall with a response type of FeedbackListpublic com.ibm.cloud.sdk.core.http.ServiceCall<FeedbackList> listFeedback()
Lists the feedback in a document.
ServiceCall with a response type of FeedbackListpublic com.ibm.cloud.sdk.core.http.ServiceCall<GetFeedback> getFeedback(GetFeedbackOptions getFeedbackOptions)
Gets a feedback entry with a specified `feedback_id`.
getFeedbackOptions - the GetFeedbackOptions containing the options for the callServiceCall with a response type of GetFeedbackpublic com.ibm.cloud.sdk.core.http.ServiceCall<FeedbackDeleted> deleteFeedback(DeleteFeedbackOptions deleteFeedbackOptions)
Deletes a feedback entry with a specified `feedback_id`.
deleteFeedbackOptions - the DeleteFeedbackOptions containing the options for the
callServiceCall with a response type of FeedbackDeletedpublic com.ibm.cloud.sdk.core.http.ServiceCall<BatchStatus> createBatch(CreateBatchOptions createBatchOptions)
Run Compare and Comply methods over a collection of input documents.
**Important:** Batch processing requires the use of the [IBM Cloud Object Storage service] (https://cloud.ibm.com/docs/cloud-object-storage? topic=cloud-object-storage-about#about-ibm-cloud-object-storage). The use of IBM Cloud Object Storage with Compare and Comply is discussed at [Using batch processing](https://cloud.ibm.com/docs/compare-comply?topic=compare-comply-batching#before-you-batch).
createBatchOptions - the CreateBatchOptions containing the options for the callServiceCall with a response type of BatchStatuspublic com.ibm.cloud.sdk.core.http.ServiceCall<Batches> listBatches(ListBatchesOptions listBatchesOptions)
Lists batch-processing jobs submitted by users.
listBatchesOptions - the ListBatchesOptions containing the options for the callServiceCall with a response type of Batchespublic com.ibm.cloud.sdk.core.http.ServiceCall<Batches> listBatches()
Lists batch-processing jobs submitted by users.
ServiceCall with a response type of Batchespublic com.ibm.cloud.sdk.core.http.ServiceCall<BatchStatus> getBatch(GetBatchOptions getBatchOptions)
Gets information about a batch-processing job with a specified ID.
getBatchOptions - the GetBatchOptions containing the options for the callServiceCall with a response type of BatchStatuspublic com.ibm.cloud.sdk.core.http.ServiceCall<BatchStatus> updateBatch(UpdateBatchOptions updateBatchOptions)
Updates a pending or active batch-processing job. You can rescan the input bucket to check for new documents or cancel a job.
updateBatchOptions - the UpdateBatchOptions containing the options for the callServiceCall with a response type of BatchStatus