oci-aidocument 2.62.0 → 2.62.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/aiservicedocument-waiter.d.ts +23 -0
- package/lib/aiservicedocument-waiter.js +55 -0
- package/lib/aiservicedocument-waiter.js.map +1 -1
- package/lib/client.d.ts +163 -3
- package/lib/client.js +1132 -19
- package/lib/client.js.map +1 -1
- package/lib/model/action-type.d.ts +32 -0
- package/lib/model/action-type.js +43 -0
- package/lib/model/action-type.js.map +1 -0
- package/lib/model/change-model-compartment-details.d.ts +25 -0
- package/lib/model/change-model-compartment-details.js +29 -0
- package/lib/model/change-model-compartment-details.js.map +1 -0
- package/lib/model/change-project-compartment-details.d.ts +25 -0
- package/lib/model/change-project-compartment-details.js +29 -0
- package/lib/model/change-project-compartment-details.js.map +1 -0
- package/lib/model/create-model-details.d.ts +75 -0
- package/lib/model/create-model-details.js +69 -0
- package/lib/model/create-model-details.js.map +1 -0
- package/lib/model/create-project-details.d.ts +51 -0
- package/lib/model/create-project-details.js +29 -0
- package/lib/model/create-project-details.js.map +1 -0
- package/lib/model/data-science-labeling-dataset.d.ts +28 -0
- package/lib/model/data-science-labeling-dataset.js +52 -0
- package/lib/model/data-science-labeling-dataset.js.map +1 -0
- package/lib/model/dataset-summary.d.ts +33 -0
- package/lib/model/dataset-summary.js +29 -0
- package/lib/model/dataset-summary.js.map +1 -0
- package/lib/model/dataset.d.ts +22 -0
- package/lib/model/dataset.js +72 -0
- package/lib/model/dataset.js.map +1 -0
- package/lib/model/document-classification-confidence-entry.d.ts +37 -0
- package/lib/model/document-classification-confidence-entry.js +29 -0
- package/lib/model/document-classification-confidence-entry.js.map +1 -0
- package/lib/model/document-classification-feature.d.ts +4 -0
- package/lib/model/document-classification-feature.js.map +1 -1
- package/lib/model/document-classification-label-metrics-report.d.ts +34 -0
- package/lib/model/document-classification-label-metrics-report.js +61 -0
- package/lib/model/document-classification-label-metrics-report.js.map +1 -0
- package/lib/model/document-classification-model-metrics.d.ts +29 -0
- package/lib/model/document-classification-model-metrics.js +72 -0
- package/lib/model/document-classification-model-metrics.js.map +1 -0
- package/lib/model/document-classification-overall-metrics-report.d.ts +30 -0
- package/lib/model/document-classification-overall-metrics-report.js +61 -0
- package/lib/model/document-classification-overall-metrics-report.js.map +1 -0
- package/lib/model/document-key-value-extraction-feature.d.ts +4 -0
- package/lib/model/document-key-value-extraction-feature.js.map +1 -1
- package/lib/model/index.d.ts +76 -0
- package/lib/model/index.js +78 -1
- package/lib/model/index.js.map +1 -1
- package/lib/model/key-value-detection-confidence-entry.d.ts +41 -0
- package/lib/model/key-value-detection-confidence-entry.js +29 -0
- package/lib/model/key-value-detection-confidence-entry.js.map +1 -0
- package/lib/model/key-value-detection-label-metrics-report.d.ts +38 -0
- package/lib/model/key-value-detection-label-metrics-report.js +61 -0
- package/lib/model/key-value-detection-label-metrics-report.js.map +1 -0
- package/lib/model/key-value-detection-model-metrics.d.ts +29 -0
- package/lib/model/key-value-detection-model-metrics.js +72 -0
- package/lib/model/key-value-detection-model-metrics.js.map +1 -0
- package/lib/model/key-value-detection-overall-metrics-report.d.ts +34 -0
- package/lib/model/key-value-detection-overall-metrics-report.js +61 -0
- package/lib/model/key-value-detection-overall-metrics-report.js.map +1 -0
- package/lib/model/model-collection.d.ts +26 -0
- package/lib/model/model-collection.js +61 -0
- package/lib/model/model-collection.js.map +1 -0
- package/lib/model/model-metrics.d.ts +24 -0
- package/lib/model/model-metrics.js +80 -0
- package/lib/model/model-metrics.js.map +1 -0
- package/lib/model/model-summary.d.ts +101 -0
- package/lib/model/model-summary.js +69 -0
- package/lib/model/model-summary.js.map +1 -0
- package/lib/model/model.d.ts +136 -0
- package/lib/model/model.js +95 -0
- package/lib/model/model.js.map +1 -0
- package/lib/model/object-storage-dataset.d.ts +36 -0
- package/lib/model/object-storage-dataset.js +52 -0
- package/lib/model/object-storage-dataset.js.map +1 -0
- package/lib/model/operation-status.d.ts +33 -0
- package/lib/model/operation-status.js +44 -0
- package/lib/model/operation-status.js.map +1 -0
- package/lib/model/operation-type.d.ts +34 -0
- package/lib/model/operation-type.js +45 -0
- package/lib/model/operation-type.js.map +1 -0
- package/lib/model/project-collection.d.ts +26 -0
- package/lib/model/project-collection.js +61 -0
- package/lib/model/project-collection.js.map +1 -0
- package/lib/model/project-summary.d.ts +81 -0
- package/lib/model/project-summary.js +29 -0
- package/lib/model/project-summary.js.map +1 -0
- package/lib/model/project.d.ts +94 -0
- package/lib/model/project.js +43 -0
- package/lib/model/project.js.map +1 -0
- package/lib/model/sort-order.d.ts +23 -0
- package/lib/model/sort-order.js +34 -0
- package/lib/model/sort-order.js.map +1 -0
- package/lib/model/update-model-details.d.ts +47 -0
- package/lib/model/update-model-details.js +29 -0
- package/lib/model/update-model-details.js.map +1 -0
- package/lib/model/update-project-details.d.ts +47 -0
- package/lib/model/update-project-details.js +29 -0
- package/lib/model/update-project-details.js.map +1 -0
- package/lib/model/value-array.d.ts +3 -0
- package/lib/model/value-array.js.map +1 -1
- package/lib/model/work-request-error-collection.d.ts +26 -0
- package/lib/model/work-request-error-collection.js +61 -0
- package/lib/model/work-request-error-collection.js.map +1 -0
- package/lib/model/work-request-error.d.ts +35 -0
- package/lib/model/work-request-error.js +29 -0
- package/lib/model/work-request-error.js.map +1 -0
- package/lib/model/work-request-log-entry-collection.d.ts +26 -0
- package/lib/model/work-request-log-entry-collection.js +61 -0
- package/lib/model/work-request-log-entry-collection.js.map +1 -0
- package/lib/model/work-request-log-entry.d.ts +29 -0
- package/lib/model/work-request-log-entry.js +29 -0
- package/lib/model/work-request-log-entry.js.map +1 -0
- package/lib/model/work-request-resource-metadata-key.d.ts +28 -0
- package/lib/model/work-request-resource-metadata-key.js +39 -0
- package/lib/model/work-request-resource-metadata-key.js.map +1 -0
- package/lib/model/work-request-resource.d.ts +48 -0
- package/lib/model/work-request-resource.js +29 -0
- package/lib/model/work-request-resource.js.map +1 -0
- package/lib/model/work-request-summary-collection.d.ts +26 -0
- package/lib/model/work-request-summary-collection.js +61 -0
- package/lib/model/work-request-summary-collection.js.map +1 -0
- package/lib/model/work-request-summary.d.ts +63 -0
- package/lib/model/work-request-summary.js +61 -0
- package/lib/model/work-request-summary.js.map +1 -0
- package/lib/model/work-request.d.ts +63 -0
- package/lib/model/work-request.js +61 -0
- package/lib/model/work-request.js.map +1 -0
- package/lib/request/cancel-processor-job-request.d.ts +1 -1
- package/lib/request/cancel-work-request-request.d.ts +35 -0
- package/lib/request/cancel-work-request-request.js +15 -0
- package/lib/request/cancel-work-request-request.js.map +1 -0
- package/lib/request/change-model-compartment-request.d.ts +40 -0
- package/lib/request/change-model-compartment-request.js +15 -0
- package/lib/request/change-model-compartment-request.js.map +1 -0
- package/lib/request/change-project-compartment-request.d.ts +40 -0
- package/lib/request/change-project-compartment-request.js +15 -0
- package/lib/request/change-project-compartment-request.js.map +1 -0
- package/lib/request/create-model-request.d.ts +36 -0
- package/lib/request/create-model-request.js +15 -0
- package/lib/request/create-model-request.js.map +1 -0
- package/lib/request/create-processor-job-request.d.ts +1 -1
- package/lib/request/create-project-request.d.ts +36 -0
- package/lib/request/create-project-request.js +15 -0
- package/lib/request/create-project-request.js.map +1 -0
- package/lib/request/delete-model-request.d.ts +35 -0
- package/lib/request/delete-model-request.js +15 -0
- package/lib/request/delete-model-request.js.map +1 -0
- package/lib/request/delete-project-request.d.ts +35 -0
- package/lib/request/delete-project-request.js +15 -0
- package/lib/request/delete-project-request.js.map +1 -0
- package/lib/request/get-model-request.d.ts +26 -0
- package/lib/request/get-model-request.js +15 -0
- package/lib/request/get-model-request.js.map +1 -0
- package/lib/request/get-processor-job-request.d.ts +1 -1
- package/lib/request/get-project-request.d.ts +26 -0
- package/lib/request/get-project-request.js +15 -0
- package/lib/request/get-project-request.js.map +1 -0
- package/lib/request/get-work-request-request.d.ts +26 -0
- package/lib/request/get-work-request-request.js +15 -0
- package/lib/request/get-work-request-request.js.map +1 -0
- package/lib/request/index.d.ts +34 -0
- package/lib/request/index.js +30 -0
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-models-request.d.ts +66 -0
- package/lib/request/list-models-request.js +24 -0
- package/lib/request/list-models-request.js.map +1 -0
- package/lib/request/list-projects-request.d.ts +62 -0
- package/lib/request/list-projects-request.js +24 -0
- package/lib/request/list-projects-request.js.map +1 -0
- package/lib/request/list-work-request-errors-request.d.ts +49 -0
- package/lib/request/list-work-request-errors-request.js +23 -0
- package/lib/request/list-work-request-errors-request.js.map +1 -0
- package/lib/request/list-work-request-logs-request.d.ts +49 -0
- package/lib/request/list-work-request-logs-request.js +23 -0
- package/lib/request/list-work-request-logs-request.js.map +1 -0
- package/lib/request/list-work-requests-request.d.ts +61 -0
- package/lib/request/list-work-requests-request.js +23 -0
- package/lib/request/list-work-requests-request.js.map +1 -0
- package/lib/request/update-model-request.d.ts +40 -0
- package/lib/request/update-model-request.js +15 -0
- package/lib/request/update-model-request.js.map +1 -0
- package/lib/request/update-project-request.d.ts +40 -0
- package/lib/request/update-project-request.js +15 -0
- package/lib/request/update-project-request.js.map +1 -0
- package/lib/response/cancel-work-request-response.d.ts +20 -0
- package/lib/response/cancel-work-request-response.js +15 -0
- package/lib/response/cancel-work-request-response.js.map +1 -0
- package/lib/response/change-model-compartment-response.d.ts +20 -0
- package/lib/response/change-model-compartment-response.js +15 -0
- package/lib/response/change-model-compartment-response.js.map +1 -0
- package/lib/response/change-project-compartment-response.d.ts +20 -0
- package/lib/response/change-project-compartment-response.js +15 -0
- package/lib/response/change-project-compartment-response.js.map +1 -0
- package/lib/response/create-model-response.d.ts +45 -0
- package/lib/response/create-model-response.js +15 -0
- package/lib/response/create-model-response.js.map +1 -0
- package/lib/response/create-project-response.d.ts +45 -0
- package/lib/response/create-project-response.js +15 -0
- package/lib/response/create-project-response.js.map +1 -0
- package/lib/response/delete-model-response.d.ts +25 -0
- package/lib/response/delete-model-response.js +15 -0
- package/lib/response/delete-model-response.js.map +1 -0
- package/lib/response/delete-project-response.d.ts +25 -0
- package/lib/response/delete-project-response.js +15 -0
- package/lib/response/delete-project-response.js.map +1 -0
- package/lib/response/get-model-response.d.ts +30 -0
- package/lib/response/get-model-response.js +15 -0
- package/lib/response/get-model-response.js.map +1 -0
- package/lib/response/get-project-response.d.ts +30 -0
- package/lib/response/get-project-response.js +15 -0
- package/lib/response/get-project-response.js.map +1 -0
- package/lib/response/get-work-request-response.d.ts +34 -0
- package/lib/response/get-work-request-response.js +15 -0
- package/lib/response/get-work-request-response.js.map +1 -0
- package/lib/response/index.d.ts +34 -0
- package/lib/response/list-models-response.d.ts +32 -0
- package/lib/response/list-models-response.js +15 -0
- package/lib/response/list-models-response.js.map +1 -0
- package/lib/response/list-projects-response.d.ts +32 -0
- package/lib/response/list-projects-response.js +15 -0
- package/lib/response/list-projects-response.js.map +1 -0
- package/lib/response/list-work-request-errors-response.d.ts +32 -0
- package/lib/response/list-work-request-errors-response.js +15 -0
- package/lib/response/list-work-request-errors-response.js.map +1 -0
- package/lib/response/list-work-request-logs-response.d.ts +32 -0
- package/lib/response/list-work-request-logs-response.js +15 -0
- package/lib/response/list-work-request-logs-response.js.map +1 -0
- package/lib/response/list-work-requests-response.d.ts +32 -0
- package/lib/response/list-work-requests-response.js +15 -0
- package/lib/response/list-work-requests-response.js.map +1 -0
- package/lib/response/update-model-response.d.ts +25 -0
- package/lib/response/update-model-response.js +15 -0
- package/lib/response/update-model-response.js.map +1 -0
- package/lib/response/update-project-response.d.ts +25 -0
- package/lib/response/update-project-response.js +15 -0
- package/lib/response/update-project-response.js.map +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Document Understanding API
|
|
3
|
+
* Document AI helps customers perform various analysis on their documents. If a customer has lots of documents, they can process them in batch using asynchronous API endpoints.
|
|
4
|
+
* OpenAPI spec version: 20221109
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
|
|
11
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Summary of count of samples used during model training.
|
|
15
|
+
*/
|
|
16
|
+
export interface DatasetSummary {
|
|
17
|
+
/**
|
|
18
|
+
* Number of samples used for training the model. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
|
|
19
|
+
*/
|
|
20
|
+
"trainingSampleCount"?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Number of samples used for validating the model. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
|
|
23
|
+
*/
|
|
24
|
+
"validationSampleCount"?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Number of samples used for testing the model. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
|
|
27
|
+
*/
|
|
28
|
+
"testSampleCount"?: number;
|
|
29
|
+
}
|
|
30
|
+
export declare namespace DatasetSummary {
|
|
31
|
+
function getJsonObj(obj: DatasetSummary): object;
|
|
32
|
+
function getDeserializedJsonObj(obj: DatasetSummary): object;
|
|
33
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Document Understanding API
|
|
4
|
+
* Document AI helps customers perform various analysis on their documents. If a customer has lots of documents, they can process them in batch using asynchronous API endpoints.
|
|
5
|
+
* OpenAPI spec version: 20221109
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
|
|
12
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.DatasetSummary = void 0;
|
|
16
|
+
var DatasetSummary;
|
|
17
|
+
(function (DatasetSummary) {
|
|
18
|
+
function getJsonObj(obj) {
|
|
19
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
20
|
+
return jsonObj;
|
|
21
|
+
}
|
|
22
|
+
DatasetSummary.getJsonObj = getJsonObj;
|
|
23
|
+
function getDeserializedJsonObj(obj) {
|
|
24
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
25
|
+
return jsonObj;
|
|
26
|
+
}
|
|
27
|
+
DatasetSummary.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
28
|
+
})(DatasetSummary = exports.DatasetSummary || (exports.DatasetSummary = {}));
|
|
29
|
+
//# sourceMappingURL=dataset-summary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataset-summary.js","sourceRoot":"","sources":["../../../../../lib/aidocument/lib/model/dataset-summary.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;AAuBH,IAAiB,cAAc,CAW9B;AAXD,WAAiB,cAAc;IAC7B,SAAgB,UAAU,CAAC,GAAmB;QAC5C,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,yBAAU,aAIzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAmB;QACxD,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,qCAAsB,yBAIrC,CAAA;AACH,CAAC,EAXgB,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAW9B"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Document Understanding API
|
|
3
|
+
* Document AI helps customers perform various analysis on their documents. If a customer has lots of documents, they can process them in batch using asynchronous API endpoints.
|
|
4
|
+
* OpenAPI spec version: 20221109
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
|
|
11
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* The base entity which is the input for creating and training a model.
|
|
15
|
+
*/
|
|
16
|
+
export interface Dataset {
|
|
17
|
+
"datasetType": string;
|
|
18
|
+
}
|
|
19
|
+
export declare namespace Dataset {
|
|
20
|
+
function getJsonObj(obj: Dataset): object;
|
|
21
|
+
function getDeserializedJsonObj(obj: Dataset): object;
|
|
22
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Document Understanding API
|
|
4
|
+
* Document AI helps customers perform various analysis on their documents. If a customer has lots of documents, they can process them in batch using asynchronous API endpoints.
|
|
5
|
+
* OpenAPI spec version: 20221109
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
|
|
12
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
13
|
+
*/
|
|
14
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
17
|
+
}) : (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
o[k2] = m[k];
|
|
20
|
+
}));
|
|
21
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
22
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
23
|
+
}) : function(o, v) {
|
|
24
|
+
o["default"] = v;
|
|
25
|
+
});
|
|
26
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
27
|
+
if (mod && mod.__esModule) return mod;
|
|
28
|
+
var result = {};
|
|
29
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
30
|
+
__setModuleDefault(result, mod);
|
|
31
|
+
return result;
|
|
32
|
+
};
|
|
33
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
+
exports.Dataset = void 0;
|
|
35
|
+
const model = __importStar(require("../model"));
|
|
36
|
+
const common = require("oci-common");
|
|
37
|
+
var Dataset;
|
|
38
|
+
(function (Dataset) {
|
|
39
|
+
function getJsonObj(obj) {
|
|
40
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
41
|
+
if (obj && "datasetType" in obj && obj.datasetType) {
|
|
42
|
+
switch (obj.datasetType) {
|
|
43
|
+
case "DATA_SCIENCE_LABELING":
|
|
44
|
+
return model.DataScienceLabelingDataset.getJsonObj(jsonObj, true);
|
|
45
|
+
case "OBJECT_STORAGE":
|
|
46
|
+
return model.ObjectStorageDataset.getJsonObj(jsonObj, true);
|
|
47
|
+
default:
|
|
48
|
+
if (common.LOG.logger)
|
|
49
|
+
common.LOG.logger.info(`Unknown value for: ${obj.datasetType}`);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return jsonObj;
|
|
53
|
+
}
|
|
54
|
+
Dataset.getJsonObj = getJsonObj;
|
|
55
|
+
function getDeserializedJsonObj(obj) {
|
|
56
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
57
|
+
if (obj && "datasetType" in obj && obj.datasetType) {
|
|
58
|
+
switch (obj.datasetType) {
|
|
59
|
+
case "DATA_SCIENCE_LABELING":
|
|
60
|
+
return model.DataScienceLabelingDataset.getDeserializedJsonObj(jsonObj, true);
|
|
61
|
+
case "OBJECT_STORAGE":
|
|
62
|
+
return model.ObjectStorageDataset.getDeserializedJsonObj(jsonObj, true);
|
|
63
|
+
default:
|
|
64
|
+
if (common.LOG.logger)
|
|
65
|
+
common.LOG.logger.info(`Unknown value for: ${obj.datasetType}`);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
return jsonObj;
|
|
69
|
+
}
|
|
70
|
+
Dataset.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
71
|
+
})(Dataset = exports.Dataset || (exports.Dataset = {}));
|
|
72
|
+
//# sourceMappingURL=dataset.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataset.js","sourceRoot":"","sources":["../../../../../lib/aidocument/lib/model/dataset.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAClC,qCAAsC;AAStC,IAAiB,OAAO,CA2CvB;AA3CD,WAAiB,OAAO;IACtB,SAAgB,UAAU,CAAC,GAAY;QACrC,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,IAAI,GAAG,IAAI,aAAa,IAAI,GAAG,IAAI,GAAG,CAAC,WAAW,EAAE;YAClD,QAAQ,GAAG,CAAC,WAAW,EAAE;gBACvB,KAAK,uBAAuB;oBAC1B,OAAO,KAAK,CAAC,0BAA0B,CAAC,UAAU,CACL,OAAQ,EACnD,IAAI,CACL,CAAC;gBACJ,KAAK,gBAAgB;oBACnB,OAAO,KAAK,CAAC,oBAAoB,CAAC,UAAU,CACL,OAAQ,EAC7C,IAAI,CACL,CAAC;gBACJ;oBACE,IAAI,MAAM,CAAC,GAAG,CAAC,MAAM;wBAAE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,GAAG,CAAC,WAAW,EAAE,CAAC,CAAC;aAC1F;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IApBe,kBAAU,aAoBzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAY;QACjD,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,IAAI,GAAG,IAAI,aAAa,IAAI,GAAG,IAAI,GAAG,CAAC,WAAW,EAAE;YAClD,QAAQ,GAAG,CAAC,WAAW,EAAE;gBACvB,KAAK,uBAAuB;oBAC1B,OAAO,KAAK,CAAC,0BAA0B,CAAC,sBAAsB,CACjB,OAAQ,EACnD,IAAI,CACL,CAAC;gBACJ,KAAK,gBAAgB;oBACnB,OAAO,KAAK,CAAC,oBAAoB,CAAC,sBAAsB,CACjB,OAAQ,EAC7C,IAAI,CACL,CAAC;gBACJ;oBACE,IAAI,MAAM,CAAC,GAAG,CAAC,MAAM;wBAAE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,GAAG,CAAC,WAAW,EAAE,CAAC,CAAC;aAC1F;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IApBe,8BAAsB,yBAoBrC,CAAA;AACH,CAAC,EA3CgB,OAAO,GAAP,eAAO,KAAP,eAAO,QA2CvB"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Document Understanding API
|
|
3
|
+
* Document AI helps customers perform various analysis on their documents. If a customer has lots of documents, they can process them in batch using asynchronous API endpoints.
|
|
4
|
+
* OpenAPI spec version: 20221109
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
|
|
11
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Confidence Entry.
|
|
15
|
+
*/
|
|
16
|
+
export interface DocumentClassificationConfidenceEntry {
|
|
17
|
+
/**
|
|
18
|
+
* Threshold used to calculate precision and recall. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
|
|
19
|
+
*/
|
|
20
|
+
"threshold": number;
|
|
21
|
+
/**
|
|
22
|
+
* Precision under the threshold Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
|
|
23
|
+
*/
|
|
24
|
+
"precision": number;
|
|
25
|
+
/**
|
|
26
|
+
* Recall under the threshold Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
|
|
27
|
+
*/
|
|
28
|
+
"recall": number;
|
|
29
|
+
/**
|
|
30
|
+
* f1Score under the threshold Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
|
|
31
|
+
*/
|
|
32
|
+
"f1Score": number;
|
|
33
|
+
}
|
|
34
|
+
export declare namespace DocumentClassificationConfidenceEntry {
|
|
35
|
+
function getJsonObj(obj: DocumentClassificationConfidenceEntry): object;
|
|
36
|
+
function getDeserializedJsonObj(obj: DocumentClassificationConfidenceEntry): object;
|
|
37
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Document Understanding API
|
|
4
|
+
* Document AI helps customers perform various analysis on their documents. If a customer has lots of documents, they can process them in batch using asynchronous API endpoints.
|
|
5
|
+
* OpenAPI spec version: 20221109
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
|
|
12
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.DocumentClassificationConfidenceEntry = void 0;
|
|
16
|
+
var DocumentClassificationConfidenceEntry;
|
|
17
|
+
(function (DocumentClassificationConfidenceEntry) {
|
|
18
|
+
function getJsonObj(obj) {
|
|
19
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
20
|
+
return jsonObj;
|
|
21
|
+
}
|
|
22
|
+
DocumentClassificationConfidenceEntry.getJsonObj = getJsonObj;
|
|
23
|
+
function getDeserializedJsonObj(obj) {
|
|
24
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
25
|
+
return jsonObj;
|
|
26
|
+
}
|
|
27
|
+
DocumentClassificationConfidenceEntry.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
28
|
+
})(DocumentClassificationConfidenceEntry = exports.DocumentClassificationConfidenceEntry || (exports.DocumentClassificationConfidenceEntry = {}));
|
|
29
|
+
//# sourceMappingURL=document-classification-confidence-entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-classification-confidence-entry.js","sourceRoot":"","sources":["../../../../../lib/aidocument/lib/model/document-classification-confidence-entry.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;AA2BH,IAAiB,qCAAqC,CAWrD;AAXD,WAAiB,qCAAqC;IACpD,SAAgB,UAAU,CAAC,GAA0C;QACnE,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,gDAAU,aAIzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAA0C;QAC/E,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,4DAAsB,yBAIrC,CAAA;AACH,CAAC,EAXgB,qCAAqC,GAArC,6CAAqC,KAArC,6CAAqC,QAWrD"}
|
|
@@ -19,6 +19,10 @@ export interface DocumentClassificationFeature extends model.DocumentFeature {
|
|
|
19
19
|
* The maximum number of results to return. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
|
|
20
20
|
*/
|
|
21
21
|
"maxResults"?: number;
|
|
22
|
+
/**
|
|
23
|
+
* The custom model ID.
|
|
24
|
+
*/
|
|
25
|
+
"modelId"?: string;
|
|
22
26
|
"featureType": string;
|
|
23
27
|
}
|
|
24
28
|
export declare namespace DocumentClassificationFeature {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-classification-feature.js","sourceRoot":"","sources":["../../../../../lib/aidocument/lib/model/document-classification-feature.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;
|
|
1
|
+
{"version":3,"file":"document-classification-feature.js","sourceRoot":"","sources":["../../../../../lib/aidocument/lib/model/document-classification-feature.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAmBlC,IAAiB,6BAA6B,CA4B7C;AA5BD,WAAiB,6BAA6B;IAC5C,SAAgB,UAAU,CACxB,GAAkC,EAClC,eAAyB;QAEzB,MAAM,OAAO,mCACR,CAAC,eAAe;YACjB,CAAC,CAAC,GAAG;YACL,CAAC,CAAE,KAAK,CAAC,eAAe,CAAC,UAAU,CAAC,GAAG,CAAmC,CAAC,GAC1E,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAZe,wCAAU,aAYzB,CAAA;IACY,yCAAW,GAAG,yBAAyB,CAAC;IACrD,SAAgB,sBAAsB,CACpC,GAAkC,EAClC,eAAyB;QAEzB,MAAM,OAAO,mCACR,CAAC,eAAe;YACjB,CAAC,CAAC,GAAG;YACL,CAAC,CAAE,KAAK,CAAC,eAAe,CAAC,sBAAsB,CAAC,GAAG,CAAmC,CAAC,GACtF,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAZe,oDAAsB,yBAYrC,CAAA;AACH,CAAC,EA5BgB,6BAA6B,GAA7B,qCAA6B,KAA7B,qCAA6B,QA4B7C"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Document Understanding API
|
|
3
|
+
* Document AI helps customers perform various analysis on their documents. If a customer has lots of documents, they can process them in batch using asynchronous API endpoints.
|
|
4
|
+
* OpenAPI spec version: 20221109
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
|
|
11
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
12
|
+
*/
|
|
13
|
+
import * as model from "../model";
|
|
14
|
+
/**
|
|
15
|
+
* Label Metrics report for Document Classification Model.
|
|
16
|
+
*/
|
|
17
|
+
export interface DocumentClassificationLabelMetricsReport {
|
|
18
|
+
/**
|
|
19
|
+
* Label name
|
|
20
|
+
*/
|
|
21
|
+
"label"?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Mean average precision under different thresholds Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
|
|
24
|
+
*/
|
|
25
|
+
"meanAveragePrecision": number;
|
|
26
|
+
/**
|
|
27
|
+
* List of document classification confidence report.
|
|
28
|
+
*/
|
|
29
|
+
"confidenceEntries": Array<model.DocumentClassificationConfidenceEntry>;
|
|
30
|
+
}
|
|
31
|
+
export declare namespace DocumentClassificationLabelMetricsReport {
|
|
32
|
+
function getJsonObj(obj: DocumentClassificationLabelMetricsReport): object;
|
|
33
|
+
function getDeserializedJsonObj(obj: DocumentClassificationLabelMetricsReport): object;
|
|
34
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Document Understanding API
|
|
4
|
+
* Document AI helps customers perform various analysis on their documents. If a customer has lots of documents, they can process them in batch using asynchronous API endpoints.
|
|
5
|
+
* OpenAPI spec version: 20221109
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
|
|
12
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
13
|
+
*/
|
|
14
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
17
|
+
}) : (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
o[k2] = m[k];
|
|
20
|
+
}));
|
|
21
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
22
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
23
|
+
}) : function(o, v) {
|
|
24
|
+
o["default"] = v;
|
|
25
|
+
});
|
|
26
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
27
|
+
if (mod && mod.__esModule) return mod;
|
|
28
|
+
var result = {};
|
|
29
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
30
|
+
__setModuleDefault(result, mod);
|
|
31
|
+
return result;
|
|
32
|
+
};
|
|
33
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
+
exports.DocumentClassificationLabelMetricsReport = void 0;
|
|
35
|
+
const model = __importStar(require("../model"));
|
|
36
|
+
var DocumentClassificationLabelMetricsReport;
|
|
37
|
+
(function (DocumentClassificationLabelMetricsReport) {
|
|
38
|
+
function getJsonObj(obj) {
|
|
39
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
40
|
+
"confidenceEntries": obj.confidenceEntries
|
|
41
|
+
? obj.confidenceEntries.map(item => {
|
|
42
|
+
return model.DocumentClassificationConfidenceEntry.getJsonObj(item);
|
|
43
|
+
})
|
|
44
|
+
: undefined
|
|
45
|
+
});
|
|
46
|
+
return jsonObj;
|
|
47
|
+
}
|
|
48
|
+
DocumentClassificationLabelMetricsReport.getJsonObj = getJsonObj;
|
|
49
|
+
function getDeserializedJsonObj(obj) {
|
|
50
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
51
|
+
"confidenceEntries": obj.confidenceEntries
|
|
52
|
+
? obj.confidenceEntries.map(item => {
|
|
53
|
+
return model.DocumentClassificationConfidenceEntry.getDeserializedJsonObj(item);
|
|
54
|
+
})
|
|
55
|
+
: undefined
|
|
56
|
+
});
|
|
57
|
+
return jsonObj;
|
|
58
|
+
}
|
|
59
|
+
DocumentClassificationLabelMetricsReport.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
60
|
+
})(DocumentClassificationLabelMetricsReport = exports.DocumentClassificationLabelMetricsReport || (exports.DocumentClassificationLabelMetricsReport = {}));
|
|
61
|
+
//# sourceMappingURL=document-classification-label-metrics-report.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-classification-label-metrics-report.js","sourceRoot":"","sources":["../../../../../lib/aidocument/lib/model/document-classification-label-metrics-report.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAqBlC,IAAiB,wCAAwC,CA6BxD;AA7BD,WAAiB,wCAAwC;IACvD,SAAgB,UAAU,CAAC,GAA6C;QACtE,MAAM,OAAO,mCACR,GAAG,GACH;YACD,mBAAmB,EAAE,GAAG,CAAC,iBAAiB;gBACxC,CAAC,CAAC,GAAG,CAAC,iBAAiB,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBAC/B,OAAO,KAAK,CAAC,qCAAqC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBACtE,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAbe,mDAAU,aAazB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAA6C;QAClF,MAAM,OAAO,mCACR,GAAG,GACH;YACD,mBAAmB,EAAE,GAAG,CAAC,iBAAiB;gBACxC,CAAC,CAAC,GAAG,CAAC,iBAAiB,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBAC/B,OAAO,KAAK,CAAC,qCAAqC,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBAClF,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAbe,+DAAsB,yBAarC,CAAA;AACH,CAAC,EA7BgB,wCAAwC,GAAxC,gDAAwC,KAAxC,gDAAwC,QA6BxD"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Document Understanding API
|
|
3
|
+
* Document AI helps customers perform various analysis on their documents. If a customer has lots of documents, they can process them in batch using asynchronous API endpoints.
|
|
4
|
+
* OpenAPI spec version: 20221109
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
|
|
11
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
12
|
+
*/
|
|
13
|
+
import * as model from "../model";
|
|
14
|
+
/**
|
|
15
|
+
* Metrics for Document Classification Model.
|
|
16
|
+
*/
|
|
17
|
+
export interface DocumentClassificationModelMetrics extends model.ModelMetrics {
|
|
18
|
+
/**
|
|
19
|
+
* List of metrics entries per label.
|
|
20
|
+
*/
|
|
21
|
+
"labelMetricsReport": Array<model.DocumentClassificationLabelMetricsReport>;
|
|
22
|
+
"overallMetricsReport": model.DocumentClassificationOverallMetricsReport;
|
|
23
|
+
"modelType": string;
|
|
24
|
+
}
|
|
25
|
+
export declare namespace DocumentClassificationModelMetrics {
|
|
26
|
+
function getJsonObj(obj: DocumentClassificationModelMetrics, isParentJsonObj?: boolean): object;
|
|
27
|
+
const modelType = "DOCUMENT_CLASSIFICATION";
|
|
28
|
+
function getDeserializedJsonObj(obj: DocumentClassificationModelMetrics, isParentJsonObj?: boolean): object;
|
|
29
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Document Understanding API
|
|
4
|
+
* Document AI helps customers perform various analysis on their documents. If a customer has lots of documents, they can process them in batch using asynchronous API endpoints.
|
|
5
|
+
* OpenAPI spec version: 20221109
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
|
|
12
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
13
|
+
*/
|
|
14
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
17
|
+
}) : (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
o[k2] = m[k];
|
|
20
|
+
}));
|
|
21
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
22
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
23
|
+
}) : function(o, v) {
|
|
24
|
+
o["default"] = v;
|
|
25
|
+
});
|
|
26
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
27
|
+
if (mod && mod.__esModule) return mod;
|
|
28
|
+
var result = {};
|
|
29
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
30
|
+
__setModuleDefault(result, mod);
|
|
31
|
+
return result;
|
|
32
|
+
};
|
|
33
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
+
exports.DocumentClassificationModelMetrics = void 0;
|
|
35
|
+
const model = __importStar(require("../model"));
|
|
36
|
+
var DocumentClassificationModelMetrics;
|
|
37
|
+
(function (DocumentClassificationModelMetrics) {
|
|
38
|
+
function getJsonObj(obj, isParentJsonObj) {
|
|
39
|
+
const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj
|
|
40
|
+
? obj
|
|
41
|
+
: model.ModelMetrics.getJsonObj(obj))), {
|
|
42
|
+
"labelMetricsReport": obj.labelMetricsReport
|
|
43
|
+
? obj.labelMetricsReport.map(item => {
|
|
44
|
+
return model.DocumentClassificationLabelMetricsReport.getJsonObj(item);
|
|
45
|
+
})
|
|
46
|
+
: undefined,
|
|
47
|
+
"overallMetricsReport": obj.overallMetricsReport
|
|
48
|
+
? model.DocumentClassificationOverallMetricsReport.getJsonObj(obj.overallMetricsReport)
|
|
49
|
+
: undefined
|
|
50
|
+
});
|
|
51
|
+
return jsonObj;
|
|
52
|
+
}
|
|
53
|
+
DocumentClassificationModelMetrics.getJsonObj = getJsonObj;
|
|
54
|
+
DocumentClassificationModelMetrics.modelType = "DOCUMENT_CLASSIFICATION";
|
|
55
|
+
function getDeserializedJsonObj(obj, isParentJsonObj) {
|
|
56
|
+
const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj
|
|
57
|
+
? obj
|
|
58
|
+
: model.ModelMetrics.getDeserializedJsonObj(obj))), {
|
|
59
|
+
"labelMetricsReport": obj.labelMetricsReport
|
|
60
|
+
? obj.labelMetricsReport.map(item => {
|
|
61
|
+
return model.DocumentClassificationLabelMetricsReport.getDeserializedJsonObj(item);
|
|
62
|
+
})
|
|
63
|
+
: undefined,
|
|
64
|
+
"overallMetricsReport": obj.overallMetricsReport
|
|
65
|
+
? model.DocumentClassificationOverallMetricsReport.getDeserializedJsonObj(obj.overallMetricsReport)
|
|
66
|
+
: undefined
|
|
67
|
+
});
|
|
68
|
+
return jsonObj;
|
|
69
|
+
}
|
|
70
|
+
DocumentClassificationModelMetrics.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
71
|
+
})(DocumentClassificationModelMetrics = exports.DocumentClassificationModelMetrics || (exports.DocumentClassificationModelMetrics = {}));
|
|
72
|
+
//# sourceMappingURL=document-classification-model-metrics.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-classification-model-metrics.js","sourceRoot":"","sources":["../../../../../lib/aidocument/lib/model/document-classification-model-metrics.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAgBlC,IAAiB,kCAAkC,CAgDlD;AAhDD,WAAiB,kCAAkC;IACjD,SAAgB,UAAU,CACxB,GAAuC,EACvC,eAAyB;QAEzB,MAAM,OAAO,mCACR,CAAC,eAAe;YACjB,CAAC,CAAC,GAAG;YACL,CAAC,CAAE,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC,GAAG,CAAwC,CAAC,GAC5E;YACD,oBAAoB,EAAE,GAAG,CAAC,kBAAkB;gBAC1C,CAAC,CAAC,GAAG,CAAC,kBAAkB,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBAChC,OAAO,KAAK,CAAC,wCAAwC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBACzE,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;YACb,sBAAsB,EAAE,GAAG,CAAC,oBAAoB;gBAC9C,CAAC,CAAC,KAAK,CAAC,0CAA0C,CAAC,UAAU,CAAC,GAAG,CAAC,oBAAoB,CAAC;gBACvF,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IArBe,6CAAU,aAqBzB,CAAA;IACY,4CAAS,GAAG,yBAAyB,CAAC;IACnD,SAAgB,sBAAsB,CACpC,GAAuC,EACvC,eAAyB;QAEzB,MAAM,OAAO,mCACR,CAAC,eAAe;YACjB,CAAC,CAAC,GAAG;YACL,CAAC,CAAE,KAAK,CAAC,YAAY,CAAC,sBAAsB,CAAC,GAAG,CAAwC,CAAC,GACxF;YACD,oBAAoB,EAAE,GAAG,CAAC,kBAAkB;gBAC1C,CAAC,CAAC,GAAG,CAAC,kBAAkB,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBAChC,OAAO,KAAK,CAAC,wCAAwC,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBACrF,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;YACb,sBAAsB,EAAE,GAAG,CAAC,oBAAoB;gBAC9C,CAAC,CAAC,KAAK,CAAC,0CAA0C,CAAC,sBAAsB,CACrE,GAAG,CAAC,oBAAoB,CACzB;gBACH,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAvBe,yDAAsB,yBAuBrC,CAAA;AACH,CAAC,EAhDgB,kCAAkC,GAAlC,0CAAkC,KAAlC,0CAAkC,QAgDlD"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Document Understanding API
|
|
3
|
+
* Document AI helps customers perform various analysis on their documents. If a customer has lots of documents, they can process them in batch using asynchronous API endpoints.
|
|
4
|
+
* OpenAPI spec version: 20221109
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
|
|
11
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
12
|
+
*/
|
|
13
|
+
import * as model from "../model";
|
|
14
|
+
/**
|
|
15
|
+
* Overall Metrics report for Document Classification Model.
|
|
16
|
+
*/
|
|
17
|
+
export interface DocumentClassificationOverallMetricsReport {
|
|
18
|
+
/**
|
|
19
|
+
* Mean average precision under different thresholds Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
|
|
20
|
+
*/
|
|
21
|
+
"meanAveragePrecision": number;
|
|
22
|
+
/**
|
|
23
|
+
* List of document classification confidence report.
|
|
24
|
+
*/
|
|
25
|
+
"confidenceEntries": Array<model.DocumentClassificationConfidenceEntry>;
|
|
26
|
+
}
|
|
27
|
+
export declare namespace DocumentClassificationOverallMetricsReport {
|
|
28
|
+
function getJsonObj(obj: DocumentClassificationOverallMetricsReport): object;
|
|
29
|
+
function getDeserializedJsonObj(obj: DocumentClassificationOverallMetricsReport): object;
|
|
30
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Document Understanding API
|
|
4
|
+
* Document AI helps customers perform various analysis on their documents. If a customer has lots of documents, they can process them in batch using asynchronous API endpoints.
|
|
5
|
+
* OpenAPI spec version: 20221109
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
|
|
12
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
13
|
+
*/
|
|
14
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
17
|
+
}) : (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
o[k2] = m[k];
|
|
20
|
+
}));
|
|
21
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
22
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
23
|
+
}) : function(o, v) {
|
|
24
|
+
o["default"] = v;
|
|
25
|
+
});
|
|
26
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
27
|
+
if (mod && mod.__esModule) return mod;
|
|
28
|
+
var result = {};
|
|
29
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
30
|
+
__setModuleDefault(result, mod);
|
|
31
|
+
return result;
|
|
32
|
+
};
|
|
33
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
+
exports.DocumentClassificationOverallMetricsReport = void 0;
|
|
35
|
+
const model = __importStar(require("../model"));
|
|
36
|
+
var DocumentClassificationOverallMetricsReport;
|
|
37
|
+
(function (DocumentClassificationOverallMetricsReport) {
|
|
38
|
+
function getJsonObj(obj) {
|
|
39
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
40
|
+
"confidenceEntries": obj.confidenceEntries
|
|
41
|
+
? obj.confidenceEntries.map(item => {
|
|
42
|
+
return model.DocumentClassificationConfidenceEntry.getJsonObj(item);
|
|
43
|
+
})
|
|
44
|
+
: undefined
|
|
45
|
+
});
|
|
46
|
+
return jsonObj;
|
|
47
|
+
}
|
|
48
|
+
DocumentClassificationOverallMetricsReport.getJsonObj = getJsonObj;
|
|
49
|
+
function getDeserializedJsonObj(obj) {
|
|
50
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
51
|
+
"confidenceEntries": obj.confidenceEntries
|
|
52
|
+
? obj.confidenceEntries.map(item => {
|
|
53
|
+
return model.DocumentClassificationConfidenceEntry.getDeserializedJsonObj(item);
|
|
54
|
+
})
|
|
55
|
+
: undefined
|
|
56
|
+
});
|
|
57
|
+
return jsonObj;
|
|
58
|
+
}
|
|
59
|
+
DocumentClassificationOverallMetricsReport.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
60
|
+
})(DocumentClassificationOverallMetricsReport = exports.DocumentClassificationOverallMetricsReport || (exports.DocumentClassificationOverallMetricsReport = {}));
|
|
61
|
+
//# sourceMappingURL=document-classification-overall-metrics-report.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-classification-overall-metrics-report.js","sourceRoot":"","sources":["../../../../../lib/aidocument/lib/model/document-classification-overall-metrics-report.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAiBlC,IAAiB,0CAA0C,CA6B1D;AA7BD,WAAiB,0CAA0C;IACzD,SAAgB,UAAU,CAAC,GAA+C;QACxE,MAAM,OAAO,mCACR,GAAG,GACH;YACD,mBAAmB,EAAE,GAAG,CAAC,iBAAiB;gBACxC,CAAC,CAAC,GAAG,CAAC,iBAAiB,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBAC/B,OAAO,KAAK,CAAC,qCAAqC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBACtE,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAbe,qDAAU,aAazB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAA+C;QACpF,MAAM,OAAO,mCACR,GAAG,GACH;YACD,mBAAmB,EAAE,GAAG,CAAC,iBAAiB;gBACxC,CAAC,CAAC,GAAG,CAAC,iBAAiB,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBAC/B,OAAO,KAAK,CAAC,qCAAqC,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBAClF,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAbe,iEAAsB,yBAarC,CAAA;AACH,CAAC,EA7BgB,0CAA0C,GAA1C,kDAA0C,KAA1C,kDAA0C,QA6B1D"}
|
|
@@ -15,6 +15,10 @@ import * as model from "../model";
|
|
|
15
15
|
* Extracting form fields.
|
|
16
16
|
*/
|
|
17
17
|
export interface DocumentKeyValueExtractionFeature extends model.DocumentFeature {
|
|
18
|
+
/**
|
|
19
|
+
* The custom model ID.
|
|
20
|
+
*/
|
|
21
|
+
"modelId"?: string;
|
|
18
22
|
"featureType": string;
|
|
19
23
|
}
|
|
20
24
|
export declare namespace DocumentKeyValueExtractionFeature {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-key-value-extraction-feature.js","sourceRoot":"","sources":["../../../../../lib/aidocument/lib/model/document-key-value-extraction-feature.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;
|
|
1
|
+
{"version":3,"file":"document-key-value-extraction-feature.js","sourceRoot":"","sources":["../../../../../lib/aidocument/lib/model/document-key-value-extraction-feature.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAelC,IAAiB,iCAAiC,CA4BjD;AA5BD,WAAiB,iCAAiC;IAChD,SAAgB,UAAU,CACxB,GAAsC,EACtC,eAAyB;QAEzB,MAAM,OAAO,mCACR,CAAC,eAAe;YACjB,CAAC,CAAC,GAAG;YACL,CAAC,CAAE,KAAK,CAAC,eAAe,CAAC,UAAU,CAAC,GAAG,CAAuC,CAAC,GAC9E,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAZe,4CAAU,aAYzB,CAAA;IACY,6CAAW,GAAG,sBAAsB,CAAC;IAClD,SAAgB,sBAAsB,CACpC,GAAsC,EACtC,eAAyB;QAEzB,MAAM,OAAO,mCACR,CAAC,eAAe;YACjB,CAAC,CAAC,GAAG;YACL,CAAC,CAAE,KAAK,CAAC,eAAe,CAAC,sBAAsB,CAAC,GAAG,CAAuC,CAAC,GAC1F,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAZe,wDAAsB,yBAYrC,CAAA;AACH,CAAC,EA5BgB,iCAAiC,GAAjC,yCAAiC,KAAjC,yCAAiC,QA4BjD"}
|