oci-ailanguage 2.7.0 → 2.10.0
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/index.d.ts +2 -2
- package/index.js +2 -2
- package/lib/client.d.ts +53 -8
- package/lib/client.js +286 -9
- package/lib/client.js.map +1 -1
- package/lib/model/batch-detect-dominant-language-details.d.ts +29 -0
- package/lib/model/batch-detect-dominant-language-details.js +64 -0
- package/lib/model/batch-detect-dominant-language-details.js.map +1 -0
- package/lib/model/batch-detect-dominant-language-result.d.ts +33 -0
- package/lib/model/batch-detect-dominant-language-result.js +74 -0
- package/lib/model/batch-detect-dominant-language-result.js.map +1 -0
- package/lib/model/batch-detect-language-entities-details.d.ts +29 -0
- package/lib/model/batch-detect-language-entities-details.js +64 -0
- package/lib/model/batch-detect-language-entities-details.js.map +1 -0
- package/lib/model/batch-detect-language-entities-result.d.ts +33 -0
- package/lib/model/batch-detect-language-entities-result.js +74 -0
- package/lib/model/batch-detect-language-entities-result.js.map +1 -0
- package/lib/model/batch-detect-language-key-phrases-details.d.ts +29 -0
- package/lib/model/batch-detect-language-key-phrases-details.js +64 -0
- package/lib/model/batch-detect-language-key-phrases-details.js.map +1 -0
- package/lib/model/batch-detect-language-key-phrases-result.d.ts +33 -0
- package/lib/model/batch-detect-language-key-phrases-result.js +74 -0
- package/lib/model/batch-detect-language-key-phrases-result.js.map +1 -0
- package/lib/model/batch-detect-language-sentiments-details.d.ts +29 -0
- package/lib/model/batch-detect-language-sentiments-details.js +64 -0
- package/lib/model/batch-detect-language-sentiments-details.js.map +1 -0
- package/lib/model/batch-detect-language-sentiments-result.d.ts +33 -0
- package/lib/model/batch-detect-language-sentiments-result.js +74 -0
- package/lib/model/batch-detect-language-sentiments-result.js.map +1 -0
- package/lib/model/batch-detect-language-text-classification-details.d.ts +29 -0
- package/lib/model/batch-detect-language-text-classification-details.js +64 -0
- package/lib/model/batch-detect-language-text-classification-details.js.map +1 -0
- package/lib/model/batch-detect-language-text-classification-result.d.ts +33 -0
- package/lib/model/batch-detect-language-text-classification-result.js +74 -0
- package/lib/model/batch-detect-language-text-classification-result.js.map +1 -0
- package/lib/model/detect-dominant-language-details.d.ts +2 -2
- package/lib/model/detect-dominant-language-details.js +2 -2
- package/lib/model/detect-dominant-language-result.d.ts +3 -6
- package/lib/model/detect-dominant-language-result.js +2 -2
- package/lib/model/detect-dominant-language-result.js.map +1 -1
- package/lib/model/detect-language-entities-details.d.ts +2 -2
- package/lib/model/detect-language-entities-details.js +2 -2
- package/lib/model/detect-language-entities-result.d.ts +3 -3
- package/lib/model/detect-language-entities-result.js +2 -2
- package/lib/model/detect-language-key-phrases-details.d.ts +2 -2
- package/lib/model/detect-language-key-phrases-details.js +2 -2
- package/lib/model/detect-language-key-phrases-result.d.ts +3 -3
- package/lib/model/detect-language-key-phrases-result.js +2 -2
- package/lib/model/detect-language-sentiments-details.d.ts +2 -2
- package/lib/model/detect-language-sentiments-details.js +2 -2
- package/lib/model/detect-language-sentiments-result.d.ts +3 -3
- package/lib/model/detect-language-sentiments-result.js +2 -2
- package/lib/model/detect-language-text-classification-details.d.ts +3 -3
- package/lib/model/detect-language-text-classification-details.js +2 -2
- package/lib/model/detect-language-text-classification-result.d.ts +4 -4
- package/lib/model/detect-language-text-classification-result.js +2 -2
- package/lib/model/detected-language.d.ts +10 -6
- package/lib/model/detected-language.js +2 -2
- package/lib/model/detected-language.js.map +1 -1
- package/lib/model/document-error.d.ts +30 -0
- package/lib/model/document-error.js +56 -0
- package/lib/model/document-error.js.map +1 -0
- package/lib/model/dominant-language-document-result.d.ts +34 -0
- package/lib/model/dominant-language-document-result.js +64 -0
- package/lib/model/dominant-language-document-result.js.map +1 -0
- package/lib/model/dominant-language-document.d.ts +32 -0
- package/lib/model/dominant-language-document.js +32 -0
- package/lib/model/dominant-language-document.js.map +1 -0
- package/lib/model/entity-document-result.d.ts +37 -0
- package/lib/model/entity-document-result.js +64 -0
- package/lib/model/entity-document-result.js.map +1 -0
- package/lib/model/entity-document.d.ts +36 -0
- package/lib/model/entity-document.js +32 -0
- package/lib/model/entity-document.js.map +1 -0
- package/lib/model/entity.d.ts +6 -4
- package/lib/model/entity.js +2 -2
- package/lib/model/entity.js.map +1 -1
- package/lib/model/error-details.d.ts +32 -0
- package/lib/model/error-details.js +32 -0
- package/lib/model/error-details.js.map +1 -0
- package/lib/model/hierarchical-entity.d.ts +48 -0
- package/lib/model/hierarchical-entity.js +32 -0
- package/lib/model/hierarchical-entity.js.map +1 -0
- package/lib/model/index.d.ts +50 -2
- package/lib/model/index.js +51 -3
- package/lib/model/index.js.map +1 -1
- package/lib/model/key-phrase-document-result.d.ts +37 -0
- package/lib/model/key-phrase-document-result.js +64 -0
- package/lib/model/key-phrase-document-result.js.map +1 -0
- package/lib/model/key-phrase-document.d.ts +36 -0
- package/lib/model/key-phrase-document.js +32 -0
- package/lib/model/key-phrase-document.js.map +1 -0
- package/lib/model/key-phrase.d.ts +7 -5
- package/lib/model/key-phrase.js +2 -2
- package/lib/model/key-phrase.js.map +1 -1
- package/lib/model/ner-model-version.d.ts +2 -2
- package/lib/model/ner-model-version.js +2 -2
- package/lib/model/sentiment-aspect.d.ts +6 -6
- package/lib/model/sentiment-aspect.js +2 -2
- package/lib/model/sentiment-document-result.d.ts +53 -0
- package/lib/model/sentiment-document-result.js +74 -0
- package/lib/model/sentiment-document-result.js.map +1 -0
- package/lib/model/sentiment-sentence.d.ts +48 -0
- package/lib/model/sentiment-sentence.js +32 -0
- package/lib/model/sentiment-sentence.js.map +1 -0
- package/lib/model/sentiments-document.d.ts +36 -0
- package/lib/model/sentiments-document.js +32 -0
- package/lib/model/sentiments-document.js.map +1 -0
- package/lib/model/text-classification-document-result.d.ts +37 -0
- package/lib/model/text-classification-document-result.js +64 -0
- package/lib/model/text-classification-document-result.js.map +1 -0
- package/lib/model/text-classification-document.d.ts +36 -0
- package/lib/model/text-classification-document.js +32 -0
- package/lib/model/text-classification-document.js.map +1 -0
- package/lib/model/text-classification.d.ts +5 -3
- package/lib/model/text-classification.js +2 -2
- package/lib/model/text-classification.js.map +1 -1
- package/lib/request/batch-detect-dominant-language-request.d.ts +28 -0
- package/lib/request/batch-detect-dominant-language-request.js +15 -0
- package/lib/request/batch-detect-dominant-language-request.js.map +1 -0
- package/lib/request/batch-detect-language-entities-request.d.ts +28 -0
- package/lib/request/batch-detect-language-entities-request.js +15 -0
- package/lib/request/batch-detect-language-entities-request.js.map +1 -0
- package/lib/request/batch-detect-language-key-phrases-request.d.ts +28 -0
- package/lib/request/batch-detect-language-key-phrases-request.js +15 -0
- package/lib/request/batch-detect-language-key-phrases-request.js.map +1 -0
- package/lib/request/batch-detect-language-sentiments-request.d.ts +42 -0
- package/lib/request/batch-detect-language-sentiments-request.js +24 -0
- package/lib/request/batch-detect-language-sentiments-request.js.map +1 -0
- package/lib/request/batch-detect-language-text-classification-request.d.ts +28 -0
- package/lib/request/batch-detect-language-text-classification-request.js +15 -0
- package/lib/request/batch-detect-language-text-classification-request.js.map +1 -0
- package/lib/request/detect-dominant-language-request.d.ts +1 -3
- package/lib/request/detect-language-entities-request.d.ts +1 -3
- package/lib/request/detect-language-key-phrases-request.d.ts +1 -3
- package/lib/request/detect-language-sentiments-request.d.ts +1 -3
- package/lib/request/detect-language-text-classification-request.d.ts +1 -2
- package/lib/request/index.d.ts +12 -2
- package/lib/request/index.js +24 -2
- package/lib/request/index.js.map +1 -1
- package/lib/response/batch-detect-dominant-language-response.d.ts +25 -0
- package/lib/response/batch-detect-dominant-language-response.js +15 -0
- package/lib/response/batch-detect-dominant-language-response.js.map +1 -0
- package/lib/response/batch-detect-language-entities-response.d.ts +25 -0
- package/lib/response/batch-detect-language-entities-response.js +15 -0
- package/lib/response/batch-detect-language-entities-response.js.map +1 -0
- package/lib/response/batch-detect-language-key-phrases-response.d.ts +25 -0
- package/lib/response/batch-detect-language-key-phrases-response.js +15 -0
- package/lib/response/batch-detect-language-key-phrases-response.js.map +1 -0
- package/lib/response/batch-detect-language-sentiments-response.d.ts +25 -0
- package/lib/response/batch-detect-language-sentiments-response.js +15 -0
- package/lib/response/batch-detect-language-sentiments-response.js.map +1 -0
- package/lib/response/batch-detect-language-text-classification-response.d.ts +25 -0
- package/lib/response/batch-detect-language-text-classification-response.js +15 -0
- package/lib/response/batch-detect-language-text-classification-response.js.map +1 -0
- package/lib/response/index.d.ts +12 -2
- package/lib/response/index.js +2 -2
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
* OCI
|
|
3
|
+
* Language API
|
|
4
|
+
* OCI Language Service solutions can help enterprise customers integrate AI into their products immediately using our proven,
|
|
5
5
|
pre-trained and custom models or containers, without a need to set up an house team of AI and ML experts.
|
|
6
6
|
This allows enterprises to focus on business drivers and development work rather than AI and ML operations, which shortens the time to market.
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* OCI
|
|
2
|
+
* Language API
|
|
3
|
+
* OCI Language Service solutions can help enterprise customers integrate AI into their products immediately using our proven,
|
|
4
4
|
pre-trained and custom models or containers, without a need to set up an house team of AI and ML experts.
|
|
5
5
|
This allows enterprises to focus on business drivers and development work rather than AI and ML operations, which shortens the time to market.
|
|
6
6
|
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import * as model from "../model";
|
|
17
17
|
/**
|
|
18
|
-
* Result of text
|
|
18
|
+
* Result of text classification detect call.
|
|
19
19
|
*/
|
|
20
20
|
export interface DetectLanguageTextClassificationResult {
|
|
21
21
|
/**
|
|
22
|
-
* List of
|
|
22
|
+
* List of detected text classes.
|
|
23
23
|
*/
|
|
24
24
|
"textClassification": Array<model.TextClassification>;
|
|
25
25
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
* OCI
|
|
3
|
+
* Language API
|
|
4
|
+
* OCI Language Service solutions can help enterprise customers integrate AI into their products immediately using our proven,
|
|
5
5
|
pre-trained and custom models or containers, without a need to set up an house team of AI and ML experts.
|
|
6
6
|
This allows enterprises to focus on business drivers and development work rather than AI and ML operations, which shortens the time to market.
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* OCI
|
|
2
|
+
* Language API
|
|
3
|
+
* OCI Language Service solutions can help enterprise customers integrate AI into their products immediately using our proven,
|
|
4
4
|
pre-trained and custom models or containers, without a need to set up an house team of AI and ML experts.
|
|
5
5
|
This allows enterprises to focus on business drivers and development work rather than AI and ML operations, which shortens the time to market.
|
|
6
6
|
|
|
@@ -18,17 +18,21 @@
|
|
|
18
18
|
*/
|
|
19
19
|
export interface DetectedLanguage {
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Full language name.
|
|
22
|
+
* Example: `English, Hindi, and so on`
|
|
23
|
+
*
|
|
22
24
|
*/
|
|
23
25
|
"name": string;
|
|
24
26
|
/**
|
|
25
|
-
* Detected language code
|
|
26
|
-
* Example: en, fr, hi etc
|
|
27
|
+
* Detected language code as per [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) standard.
|
|
28
|
+
* Example: `en, fr, hi etc`.
|
|
27
29
|
*
|
|
28
30
|
*/
|
|
29
31
|
"code": string;
|
|
30
32
|
/**
|
|
31
|
-
* Score or confidence
|
|
33
|
+
* Score or confidence of detected language code.
|
|
34
|
+
* Example: `0.9999856066867399`
|
|
35
|
+
* Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
|
|
32
36
|
*/
|
|
33
37
|
"score": number;
|
|
34
38
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
* OCI
|
|
3
|
+
* Language API
|
|
4
|
+
* OCI Language Service solutions can help enterprise customers integrate AI into their products immediately using our proven,
|
|
5
5
|
pre-trained and custom models or containers, without a need to set up an house team of AI and ML experts.
|
|
6
6
|
This allows enterprises to focus on business drivers and development work rather than AI and ML operations, which shortens the time to market.
|
|
7
7
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detected-language.js","sourceRoot":"","sources":["../../../../../lib/ailanguage/lib/model/detected-language.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;
|
|
1
|
+
{"version":3,"file":"detected-language.js","sourceRoot":"","sources":["../../../../../lib/ailanguage/lib/model/detected-language.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AA6BH,IAAiB,gBAAgB,CAWhC;AAXD,WAAiB,gBAAgB;IAC/B,SAAgB,UAAU,CAAC,GAAqB;QAC9C,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,2BAAU,aAIzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAqB;QAC1D,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,uCAAsB,yBAIrC,CAAA;AACH,CAAC,EAXgB,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAWhC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Language API
|
|
3
|
+
* OCI Language Service solutions can help enterprise customers integrate AI into their products immediately using our proven,
|
|
4
|
+
pre-trained and custom models or containers, without a need to set up an house team of AI and ML experts.
|
|
5
|
+
This allows enterprises to focus on business drivers and development work rather than AI and ML operations, which shortens the time to market.
|
|
6
|
+
|
|
7
|
+
* OpenAPI spec version: 20210101
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
11
|
+
* Do not edit the class manually.
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
|
|
14
|
+
* 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.
|
|
15
|
+
*/
|
|
16
|
+
import * as model from "../model";
|
|
17
|
+
/**
|
|
18
|
+
* Error response for document.
|
|
19
|
+
*/
|
|
20
|
+
export interface DocumentError {
|
|
21
|
+
/**
|
|
22
|
+
* Unique Document Identifier.
|
|
23
|
+
*/
|
|
24
|
+
"key": string;
|
|
25
|
+
"error": model.ErrorDetails;
|
|
26
|
+
}
|
|
27
|
+
export declare namespace DocumentError {
|
|
28
|
+
function getJsonObj(obj: DocumentError): object;
|
|
29
|
+
function getDeserializedJsonObj(obj: DocumentError): object;
|
|
30
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Language API
|
|
4
|
+
* OCI Language Service solutions can help enterprise customers integrate AI into their products immediately using our proven,
|
|
5
|
+
pre-trained and custom models or containers, without a need to set up an house team of AI and ML experts.
|
|
6
|
+
This allows enterprises to focus on business drivers and development work rather than AI and ML operations, which shortens the time to market.
|
|
7
|
+
|
|
8
|
+
* OpenAPI spec version: 20210101
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
|
|
15
|
+
* 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.
|
|
16
|
+
*/
|
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.DocumentError = void 0;
|
|
38
|
+
const model = __importStar(require("../model"));
|
|
39
|
+
var DocumentError;
|
|
40
|
+
(function (DocumentError) {
|
|
41
|
+
function getJsonObj(obj) {
|
|
42
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
43
|
+
"error": obj.error ? model.ErrorDetails.getJsonObj(obj.error) : undefined
|
|
44
|
+
});
|
|
45
|
+
return jsonObj;
|
|
46
|
+
}
|
|
47
|
+
DocumentError.getJsonObj = getJsonObj;
|
|
48
|
+
function getDeserializedJsonObj(obj) {
|
|
49
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
50
|
+
"error": obj.error ? model.ErrorDetails.getDeserializedJsonObj(obj.error) : undefined
|
|
51
|
+
});
|
|
52
|
+
return jsonObj;
|
|
53
|
+
}
|
|
54
|
+
DocumentError.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
55
|
+
})(DocumentError = exports.DocumentError || (exports.DocumentError = {}));
|
|
56
|
+
//# sourceMappingURL=document-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-error.js","sourceRoot":"","sources":["../../../../../lib/ailanguage/lib/model/document-error.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAclC,IAAiB,aAAa,CAqB7B;AArBD,WAAiB,aAAa;IAC5B,SAAgB,UAAU,CAAC,GAAkB;QAC3C,MAAM,OAAO,mCACR,GAAG,GACH;YACD,OAAO,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS;SAC1E,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IATe,wBAAU,aASzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAkB;QACvD,MAAM,OAAO,mCACR,GAAG,GACH;YACD,OAAO,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,sBAAsB,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS;SACtF,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IATe,oCAAsB,yBASrC,CAAA;AACH,CAAC,EArBgB,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAqB7B"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Language API
|
|
3
|
+
* OCI Language Service solutions can help enterprise customers integrate AI into their products immediately using our proven,
|
|
4
|
+
pre-trained and custom models or containers, without a need to set up an house team of AI and ML experts.
|
|
5
|
+
This allows enterprises to focus on business drivers and development work rather than AI and ML operations, which shortens the time to market.
|
|
6
|
+
|
|
7
|
+
* OpenAPI spec version: 20210101
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
11
|
+
* Do not edit the class manually.
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
|
|
14
|
+
* 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.
|
|
15
|
+
*/
|
|
16
|
+
import * as model from "../model";
|
|
17
|
+
/**
|
|
18
|
+
* The document response for language detect call.
|
|
19
|
+
*/
|
|
20
|
+
export interface DominantLanguageDocumentResult {
|
|
21
|
+
/**
|
|
22
|
+
* Document unique identifier defined by the user.
|
|
23
|
+
*/
|
|
24
|
+
"key": string;
|
|
25
|
+
/**
|
|
26
|
+
* List of detected languages with results sorted in descending order of the scores. Most likely language is on top.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
"languages": Array<model.DetectedLanguage>;
|
|
30
|
+
}
|
|
31
|
+
export declare namespace DominantLanguageDocumentResult {
|
|
32
|
+
function getJsonObj(obj: DominantLanguageDocumentResult): object;
|
|
33
|
+
function getDeserializedJsonObj(obj: DominantLanguageDocumentResult): object;
|
|
34
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Language API
|
|
4
|
+
* OCI Language Service solutions can help enterprise customers integrate AI into their products immediately using our proven,
|
|
5
|
+
pre-trained and custom models or containers, without a need to set up an house team of AI and ML experts.
|
|
6
|
+
This allows enterprises to focus on business drivers and development work rather than AI and ML operations, which shortens the time to market.
|
|
7
|
+
|
|
8
|
+
* OpenAPI spec version: 20210101
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
|
|
15
|
+
* 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.
|
|
16
|
+
*/
|
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.DominantLanguageDocumentResult = void 0;
|
|
38
|
+
const model = __importStar(require("../model"));
|
|
39
|
+
var DominantLanguageDocumentResult;
|
|
40
|
+
(function (DominantLanguageDocumentResult) {
|
|
41
|
+
function getJsonObj(obj) {
|
|
42
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
43
|
+
"languages": obj.languages
|
|
44
|
+
? obj.languages.map(item => {
|
|
45
|
+
return model.DetectedLanguage.getJsonObj(item);
|
|
46
|
+
})
|
|
47
|
+
: undefined
|
|
48
|
+
});
|
|
49
|
+
return jsonObj;
|
|
50
|
+
}
|
|
51
|
+
DominantLanguageDocumentResult.getJsonObj = getJsonObj;
|
|
52
|
+
function getDeserializedJsonObj(obj) {
|
|
53
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
54
|
+
"languages": obj.languages
|
|
55
|
+
? obj.languages.map(item => {
|
|
56
|
+
return model.DetectedLanguage.getDeserializedJsonObj(item);
|
|
57
|
+
})
|
|
58
|
+
: undefined
|
|
59
|
+
});
|
|
60
|
+
return jsonObj;
|
|
61
|
+
}
|
|
62
|
+
DominantLanguageDocumentResult.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
63
|
+
})(DominantLanguageDocumentResult = exports.DominantLanguageDocumentResult || (exports.DominantLanguageDocumentResult = {}));
|
|
64
|
+
//# sourceMappingURL=dominant-language-document-result.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dominant-language-document-result.js","sourceRoot":"","sources":["../../../../../lib/ailanguage/lib/model/dominant-language-document-result.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAkBlC,IAAiB,8BAA8B,CA6B9C;AA7BD,WAAiB,8BAA8B;IAC7C,SAAgB,UAAU,CAAC,GAAmC;QAC5D,MAAM,OAAO,mCACR,GAAG,GACH;YACD,WAAW,EAAE,GAAG,CAAC,SAAS;gBACxB,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACvB,OAAO,KAAK,CAAC,gBAAgB,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBACjD,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAbe,yCAAU,aAazB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAmC;QACxE,MAAM,OAAO,mCACR,GAAG,GACH;YACD,WAAW,EAAE,GAAG,CAAC,SAAS;gBACxB,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACvB,OAAO,KAAK,CAAC,gBAAgB,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBAC7D,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAbe,qDAAsB,yBAarC,CAAA;AACH,CAAC,EA7BgB,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QA6B9C"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Language API
|
|
3
|
+
* OCI Language Service solutions can help enterprise customers integrate AI into their products immediately using our proven,
|
|
4
|
+
pre-trained and custom models or containers, without a need to set up an house team of AI and ML experts.
|
|
5
|
+
This allows enterprises to focus on business drivers and development work rather than AI and ML operations, which shortens the time to market.
|
|
6
|
+
|
|
7
|
+
* OpenAPI spec version: 20210101
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
11
|
+
* Do not edit the class manually.
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
|
|
14
|
+
* 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.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* The document details for language detect call.
|
|
18
|
+
*/
|
|
19
|
+
export interface DominantLanguageDocument {
|
|
20
|
+
/**
|
|
21
|
+
* Document unique identifier defined by the user.
|
|
22
|
+
*/
|
|
23
|
+
"key": string;
|
|
24
|
+
/**
|
|
25
|
+
* Document text for detect language.
|
|
26
|
+
*/
|
|
27
|
+
"text": string;
|
|
28
|
+
}
|
|
29
|
+
export declare namespace DominantLanguageDocument {
|
|
30
|
+
function getJsonObj(obj: DominantLanguageDocument): object;
|
|
31
|
+
function getDeserializedJsonObj(obj: DominantLanguageDocument): object;
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Language API
|
|
4
|
+
* OCI Language Service solutions can help enterprise customers integrate AI into their products immediately using our proven,
|
|
5
|
+
pre-trained and custom models or containers, without a need to set up an house team of AI and ML experts.
|
|
6
|
+
This allows enterprises to focus on business drivers and development work rather than AI and ML operations, which shortens the time to market.
|
|
7
|
+
|
|
8
|
+
* OpenAPI spec version: 20210101
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
|
|
15
|
+
* 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.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.DominantLanguageDocument = void 0;
|
|
19
|
+
var DominantLanguageDocument;
|
|
20
|
+
(function (DominantLanguageDocument) {
|
|
21
|
+
function getJsonObj(obj) {
|
|
22
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
23
|
+
return jsonObj;
|
|
24
|
+
}
|
|
25
|
+
DominantLanguageDocument.getJsonObj = getJsonObj;
|
|
26
|
+
function getDeserializedJsonObj(obj) {
|
|
27
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
28
|
+
return jsonObj;
|
|
29
|
+
}
|
|
30
|
+
DominantLanguageDocument.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
31
|
+
})(DominantLanguageDocument = exports.DominantLanguageDocument || (exports.DominantLanguageDocument = {}));
|
|
32
|
+
//# sourceMappingURL=dominant-language-document.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dominant-language-document.js","sourceRoot":"","sources":["../../../../../lib/ailanguage/lib/model/dominant-language-document.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAmBH,IAAiB,wBAAwB,CAWxC;AAXD,WAAiB,wBAAwB;IACvC,SAAgB,UAAU,CAAC,GAA6B;QACtD,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,mCAAU,aAIzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAA6B;QAClE,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,+CAAsB,yBAIrC,CAAA;AACH,CAAC,EAXgB,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAWxC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Language API
|
|
3
|
+
* OCI Language Service solutions can help enterprise customers integrate AI into their products immediately using our proven,
|
|
4
|
+
pre-trained and custom models or containers, without a need to set up an house team of AI and ML experts.
|
|
5
|
+
This allows enterprises to focus on business drivers and development work rather than AI and ML operations, which shortens the time to market.
|
|
6
|
+
|
|
7
|
+
* OpenAPI spec version: 20210101
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
11
|
+
* Do not edit the class manually.
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
|
|
14
|
+
* 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.
|
|
15
|
+
*/
|
|
16
|
+
import * as model from "../model";
|
|
17
|
+
/**
|
|
18
|
+
* The document response for entities detect call.
|
|
19
|
+
*/
|
|
20
|
+
export interface EntityDocumentResult {
|
|
21
|
+
/**
|
|
22
|
+
* Document unique identifier defined by the user.
|
|
23
|
+
*/
|
|
24
|
+
"key": string;
|
|
25
|
+
/**
|
|
26
|
+
* List of detected entities.
|
|
27
|
+
*/
|
|
28
|
+
"entities": Array<model.HierarchicalEntity>;
|
|
29
|
+
/**
|
|
30
|
+
* Language code as per [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) standard.
|
|
31
|
+
*/
|
|
32
|
+
"languageCode": string;
|
|
33
|
+
}
|
|
34
|
+
export declare namespace EntityDocumentResult {
|
|
35
|
+
function getJsonObj(obj: EntityDocumentResult): object;
|
|
36
|
+
function getDeserializedJsonObj(obj: EntityDocumentResult): object;
|
|
37
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Language API
|
|
4
|
+
* OCI Language Service solutions can help enterprise customers integrate AI into their products immediately using our proven,
|
|
5
|
+
pre-trained and custom models or containers, without a need to set up an house team of AI and ML experts.
|
|
6
|
+
This allows enterprises to focus on business drivers and development work rather than AI and ML operations, which shortens the time to market.
|
|
7
|
+
|
|
8
|
+
* OpenAPI spec version: 20210101
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
|
|
15
|
+
* 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.
|
|
16
|
+
*/
|
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.EntityDocumentResult = void 0;
|
|
38
|
+
const model = __importStar(require("../model"));
|
|
39
|
+
var EntityDocumentResult;
|
|
40
|
+
(function (EntityDocumentResult) {
|
|
41
|
+
function getJsonObj(obj) {
|
|
42
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
43
|
+
"entities": obj.entities
|
|
44
|
+
? obj.entities.map(item => {
|
|
45
|
+
return model.HierarchicalEntity.getJsonObj(item);
|
|
46
|
+
})
|
|
47
|
+
: undefined
|
|
48
|
+
});
|
|
49
|
+
return jsonObj;
|
|
50
|
+
}
|
|
51
|
+
EntityDocumentResult.getJsonObj = getJsonObj;
|
|
52
|
+
function getDeserializedJsonObj(obj) {
|
|
53
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
54
|
+
"entities": obj.entities
|
|
55
|
+
? obj.entities.map(item => {
|
|
56
|
+
return model.HierarchicalEntity.getDeserializedJsonObj(item);
|
|
57
|
+
})
|
|
58
|
+
: undefined
|
|
59
|
+
});
|
|
60
|
+
return jsonObj;
|
|
61
|
+
}
|
|
62
|
+
EntityDocumentResult.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
63
|
+
})(EntityDocumentResult = exports.EntityDocumentResult || (exports.EntityDocumentResult = {}));
|
|
64
|
+
//# sourceMappingURL=entity-document-result.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-document-result.js","sourceRoot":"","sources":["../../../../../lib/ailanguage/lib/model/entity-document-result.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAqBlC,IAAiB,oBAAoB,CA6BpC;AA7BD,WAAiB,oBAAoB;IACnC,SAAgB,UAAU,CAAC,GAAyB;QAClD,MAAM,OAAO,mCACR,GAAG,GACH;YACD,UAAU,EAAE,GAAG,CAAC,QAAQ;gBACtB,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACtB,OAAO,KAAK,CAAC,kBAAkB,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBACnD,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAbe,+BAAU,aAazB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAyB;QAC9D,MAAM,OAAO,mCACR,GAAG,GACH;YACD,UAAU,EAAE,GAAG,CAAC,QAAQ;gBACtB,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACtB,OAAO,KAAK,CAAC,kBAAkB,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBAC/D,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAbe,2CAAsB,yBAarC,CAAA;AACH,CAAC,EA7BgB,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QA6BpC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Language API
|
|
3
|
+
* OCI Language Service solutions can help enterprise customers integrate AI into their products immediately using our proven,
|
|
4
|
+
pre-trained and custom models or containers, without a need to set up an house team of AI and ML experts.
|
|
5
|
+
This allows enterprises to focus on business drivers and development work rather than AI and ML operations, which shortens the time to market.
|
|
6
|
+
|
|
7
|
+
* OpenAPI spec version: 20210101
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
11
|
+
* Do not edit the class manually.
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
|
|
14
|
+
* 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.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* The document details for entities detect call.
|
|
18
|
+
*/
|
|
19
|
+
export interface EntityDocument {
|
|
20
|
+
/**
|
|
21
|
+
* Document unique identifier defined by the user.
|
|
22
|
+
*/
|
|
23
|
+
"key": string;
|
|
24
|
+
/**
|
|
25
|
+
* Document text for detect entities.
|
|
26
|
+
*/
|
|
27
|
+
"text": string;
|
|
28
|
+
/**
|
|
29
|
+
* Language code as per [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) standard.
|
|
30
|
+
*/
|
|
31
|
+
"languageCode"?: string;
|
|
32
|
+
}
|
|
33
|
+
export declare namespace EntityDocument {
|
|
34
|
+
function getJsonObj(obj: EntityDocument): object;
|
|
35
|
+
function getDeserializedJsonObj(obj: EntityDocument): object;
|
|
36
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Language API
|
|
4
|
+
* OCI Language Service solutions can help enterprise customers integrate AI into their products immediately using our proven,
|
|
5
|
+
pre-trained and custom models or containers, without a need to set up an house team of AI and ML experts.
|
|
6
|
+
This allows enterprises to focus on business drivers and development work rather than AI and ML operations, which shortens the time to market.
|
|
7
|
+
|
|
8
|
+
* OpenAPI spec version: 20210101
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
|
|
15
|
+
* 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.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.EntityDocument = void 0;
|
|
19
|
+
var EntityDocument;
|
|
20
|
+
(function (EntityDocument) {
|
|
21
|
+
function getJsonObj(obj) {
|
|
22
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
23
|
+
return jsonObj;
|
|
24
|
+
}
|
|
25
|
+
EntityDocument.getJsonObj = getJsonObj;
|
|
26
|
+
function getDeserializedJsonObj(obj) {
|
|
27
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
28
|
+
return jsonObj;
|
|
29
|
+
}
|
|
30
|
+
EntityDocument.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
31
|
+
})(EntityDocument = exports.EntityDocument || (exports.EntityDocument = {}));
|
|
32
|
+
//# sourceMappingURL=entity-document.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-document.js","sourceRoot":"","sources":["../../../../../lib/ailanguage/lib/model/entity-document.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;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"}
|
package/lib/model/entity.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* OCI
|
|
2
|
+
* Language API
|
|
3
|
+
* OCI Language Service solutions can help enterprise customers integrate AI into their products immediately using our proven,
|
|
4
4
|
pre-trained and custom models or containers, without a need to set up an house team of AI and ML experts.
|
|
5
5
|
This allows enterprises to focus on business drivers and development work rather than AI and ML operations, which shortens the time to market.
|
|
6
6
|
|
|
@@ -22,7 +22,7 @@ export interface Entity {
|
|
|
22
22
|
*/
|
|
23
23
|
"offset"?: number;
|
|
24
24
|
/**
|
|
25
|
-
* Length of text Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
|
|
25
|
+
* Length of entity text Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
|
|
26
26
|
*/
|
|
27
27
|
"length"?: number;
|
|
28
28
|
/**
|
|
@@ -38,7 +38,9 @@ export interface Entity {
|
|
|
38
38
|
*/
|
|
39
39
|
"isPii"?: boolean;
|
|
40
40
|
/**
|
|
41
|
-
* Score or confidence
|
|
41
|
+
* Score or confidence of extracted entity type.
|
|
42
|
+
* Example: `0.9999856066867399`
|
|
43
|
+
* Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
|
|
42
44
|
*/
|
|
43
45
|
"score"?: number;
|
|
44
46
|
}
|
package/lib/model/entity.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
* OCI
|
|
3
|
+
* Language API
|
|
4
|
+
* OCI Language Service solutions can help enterprise customers integrate AI into their products immediately using our proven,
|
|
5
5
|
pre-trained and custom models or containers, without a need to set up an house team of AI and ML experts.
|
|
6
6
|
This allows enterprises to focus on business drivers and development work rather than AI and ML operations, which shortens the time to market.
|
|
7
7
|
|
package/lib/model/entity.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity.js","sourceRoot":"","sources":["../../../../../lib/ailanguage/lib/model/entity.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;
|
|
1
|
+
{"version":3,"file":"entity.js","sourceRoot":"","sources":["../../../../../lib/ailanguage/lib/model/entity.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAqCH,IAAiB,MAAM,CAWtB;AAXD,WAAiB,MAAM;IACrB,SAAgB,UAAU,CAAC,GAAW;QACpC,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,iBAAU,aAIzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAW;QAChD,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,6BAAsB,yBAIrC,CAAA;AACH,CAAC,EAXgB,MAAM,GAAN,cAAM,KAAN,cAAM,QAWtB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Language API
|
|
3
|
+
* OCI Language Service solutions can help enterprise customers integrate AI into their products immediately using our proven,
|
|
4
|
+
pre-trained and custom models or containers, without a need to set up an house team of AI and ML experts.
|
|
5
|
+
This allows enterprises to focus on business drivers and development work rather than AI and ML operations, which shortens the time to market.
|
|
6
|
+
|
|
7
|
+
* OpenAPI spec version: 20210101
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
11
|
+
* Do not edit the class manually.
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
|
|
14
|
+
* 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.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* Error Information.
|
|
18
|
+
*/
|
|
19
|
+
export interface ErrorDetails {
|
|
20
|
+
/**
|
|
21
|
+
* A short error code that defines the error, meant for programmatic parsing.
|
|
22
|
+
*/
|
|
23
|
+
"code": string;
|
|
24
|
+
/**
|
|
25
|
+
* A human-readable error string.
|
|
26
|
+
*/
|
|
27
|
+
"message": string;
|
|
28
|
+
}
|
|
29
|
+
export declare namespace ErrorDetails {
|
|
30
|
+
function getJsonObj(obj: ErrorDetails): object;
|
|
31
|
+
function getDeserializedJsonObj(obj: ErrorDetails): object;
|
|
32
|
+
}
|