oci-ailanguage 2.9.0 → 2.11.1
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 +3 -3
- package/index.js +3 -3
- package/lib/client.d.ts +53 -8
- package/lib/client.js +285 -8
- 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 +3 -3
- package/lib/model/detect-dominant-language-details.js +3 -3
- package/lib/model/detect-dominant-language-result.d.ts +4 -7
- package/lib/model/detect-dominant-language-result.js +3 -3
- package/lib/model/detect-dominant-language-result.js.map +1 -1
- package/lib/model/detect-language-entities-details.d.ts +3 -3
- package/lib/model/detect-language-entities-details.js +3 -3
- package/lib/model/detect-language-entities-result.d.ts +4 -4
- package/lib/model/detect-language-entities-result.js +3 -3
- package/lib/model/detect-language-key-phrases-details.d.ts +3 -3
- package/lib/model/detect-language-key-phrases-details.js +3 -3
- package/lib/model/detect-language-key-phrases-result.d.ts +4 -4
- package/lib/model/detect-language-key-phrases-result.js +3 -3
- package/lib/model/detect-language-sentiments-details.d.ts +3 -3
- package/lib/model/detect-language-sentiments-details.js +3 -3
- package/lib/model/detect-language-sentiments-result.d.ts +4 -4
- package/lib/model/detect-language-sentiments-result.js +3 -3
- package/lib/model/detect-language-text-classification-details.d.ts +4 -4
- package/lib/model/detect-language-text-classification-details.js +3 -3
- package/lib/model/detect-language-text-classification-result.d.ts +5 -5
- package/lib/model/detect-language-text-classification-result.js +3 -3
- package/lib/model/detected-language.d.ts +11 -7
- package/lib/model/detected-language.js +3 -3
- 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 +7 -5
- package/lib/model/entity.js +3 -3
- 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 +51 -3
- package/lib/model/index.js +52 -4
- 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 +8 -6
- package/lib/model/key-phrase.js +3 -3
- package/lib/model/key-phrase.js.map +1 -1
- package/lib/model/ner-model-version.d.ts +3 -3
- package/lib/model/ner-model-version.js +3 -3
- package/lib/model/sentiment-aspect.d.ts +7 -7
- package/lib/model/sentiment-aspect.js +3 -3
- 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 +6 -4
- package/lib/model/text-classification.js +3 -3
- 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 +2 -4
- package/lib/request/detect-dominant-language-request.js +1 -1
- package/lib/request/detect-language-entities-request.d.ts +2 -4
- package/lib/request/detect-language-entities-request.js +1 -1
- package/lib/request/detect-language-key-phrases-request.d.ts +2 -4
- package/lib/request/detect-language-key-phrases-request.js +1 -1
- package/lib/request/detect-language-sentiments-request.d.ts +2 -4
- package/lib/request/detect-language-sentiments-request.js +1 -1
- package/lib/request/detect-language-text-classification-request.d.ts +2 -3
- package/lib/request/detect-language-text-classification-request.js +1 -1
- package/lib/request/index.d.ts +13 -3
- package/lib/request/index.js +25 -3
- 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/detect-dominant-language-response.d.ts +1 -1
- package/lib/response/detect-dominant-language-response.js +1 -1
- package/lib/response/detect-language-entities-response.d.ts +1 -1
- package/lib/response/detect-language-entities-response.js +1 -1
- package/lib/response/detect-language-key-phrases-response.d.ts +1 -1
- package/lib/response/detect-language-key-phrases-response.js +1 -1
- package/lib/response/detect-language-sentiments-response.d.ts +1 -1
- package/lib/response/detect-language-sentiments-response.js +1 -1
- package/lib/response/detect-language-text-classification-response.d.ts +1 -1
- package/lib/response/detect-language-text-classification-response.js +1 -1
- package/lib/response/index.d.ts +13 -3
- package/lib/response/index.js +3 -3
- package/package.json +3 -3
|
@@ -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, 2022, 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, 2022, 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, 2022, 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
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
11
11
|
* Do not edit the class manually.
|
|
12
12
|
*
|
|
13
|
-
* Copyright (c) 2020,
|
|
13
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
14
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
15
|
*/
|
|
16
16
|
/**
|
|
@@ -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
|
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*
|
|
14
|
-
* Copyright (c) 2020,
|
|
14
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
15
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
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
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, 2022, 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
|
+
}
|
|
@@ -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, 2022, 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.ErrorDetails = void 0;
|
|
19
|
+
var ErrorDetails;
|
|
20
|
+
(function (ErrorDetails) {
|
|
21
|
+
function getJsonObj(obj) {
|
|
22
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
23
|
+
return jsonObj;
|
|
24
|
+
}
|
|
25
|
+
ErrorDetails.getJsonObj = getJsonObj;
|
|
26
|
+
function getDeserializedJsonObj(obj) {
|
|
27
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
28
|
+
return jsonObj;
|
|
29
|
+
}
|
|
30
|
+
ErrorDetails.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
31
|
+
})(ErrorDetails = exports.ErrorDetails || (exports.ErrorDetails = {}));
|
|
32
|
+
//# sourceMappingURL=error-details.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-details.js","sourceRoot":"","sources":["../../../../../lib/ailanguage/lib/model/error-details.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAmBH,IAAiB,YAAY,CAW5B;AAXD,WAAiB,YAAY;IAC3B,SAAgB,UAAU,CAAC,GAAiB;QAC1C,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,uBAAU,aAIzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAiB;QACtD,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,mCAAsB,yBAIrC,CAAA;AACH,CAAC,EAXgB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAW5B"}
|
|
@@ -0,0 +1,48 @@
|
|
|
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, 2022, 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
|
+
* Hierarchical entity object
|
|
18
|
+
*/
|
|
19
|
+
export interface HierarchicalEntity {
|
|
20
|
+
/**
|
|
21
|
+
* The number of Unicode code points preceding this entity in the submitted text. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
|
|
22
|
+
*/
|
|
23
|
+
"offset"?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Length of entity text Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
|
|
26
|
+
*/
|
|
27
|
+
"length"?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Entity text like name of person, location, and so on.
|
|
30
|
+
*/
|
|
31
|
+
"text"?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Type of entity text like PER, LOC.
|
|
34
|
+
*/
|
|
35
|
+
"type"?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Sub-type of entity text like GPE for LOCATION type
|
|
38
|
+
*/
|
|
39
|
+
"subType"?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Score or confidence for detected entity. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
|
|
42
|
+
*/
|
|
43
|
+
"score"?: number;
|
|
44
|
+
}
|
|
45
|
+
export declare namespace HierarchicalEntity {
|
|
46
|
+
function getJsonObj(obj: HierarchicalEntity): object;
|
|
47
|
+
function getDeserializedJsonObj(obj: HierarchicalEntity): object;
|
|
48
|
+
}
|
|
@@ -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, 2022, 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.HierarchicalEntity = void 0;
|
|
19
|
+
var HierarchicalEntity;
|
|
20
|
+
(function (HierarchicalEntity) {
|
|
21
|
+
function getJsonObj(obj) {
|
|
22
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
23
|
+
return jsonObj;
|
|
24
|
+
}
|
|
25
|
+
HierarchicalEntity.getJsonObj = getJsonObj;
|
|
26
|
+
function getDeserializedJsonObj(obj) {
|
|
27
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
28
|
+
return jsonObj;
|
|
29
|
+
}
|
|
30
|
+
HierarchicalEntity.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
31
|
+
})(HierarchicalEntity = exports.HierarchicalEntity || (exports.HierarchicalEntity = {}));
|
|
32
|
+
//# sourceMappingURL=hierarchical-entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hierarchical-entity.js","sourceRoot":"","sources":["../../../../../lib/ailanguage/lib/model/hierarchical-entity.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAmCH,IAAiB,kBAAkB,CAWlC;AAXD,WAAiB,kBAAkB;IACjC,SAAgB,UAAU,CAAC,GAAuB;QAChD,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,6BAAU,aAIzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAuB;QAC5D,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,yCAAsB,yBAIrC,CAAA;AACH,CAAC,EAXgB,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAWlC"}
|
package/lib/model/index.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
|
|
|
@@ -10,9 +10,29 @@
|
|
|
10
10
|
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
11
11
|
* Do not edit the class manually.
|
|
12
12
|
*
|
|
13
|
-
* Copyright (c) 2020,
|
|
13
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
14
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
15
|
*/
|
|
16
|
+
import * as BatchDetectDominantLanguageDetails from "./batch-detect-dominant-language-details";
|
|
17
|
+
export import BatchDetectDominantLanguageDetails = BatchDetectDominantLanguageDetails.BatchDetectDominantLanguageDetails;
|
|
18
|
+
import * as BatchDetectDominantLanguageResult from "./batch-detect-dominant-language-result";
|
|
19
|
+
export import BatchDetectDominantLanguageResult = BatchDetectDominantLanguageResult.BatchDetectDominantLanguageResult;
|
|
20
|
+
import * as BatchDetectLanguageEntitiesDetails from "./batch-detect-language-entities-details";
|
|
21
|
+
export import BatchDetectLanguageEntitiesDetails = BatchDetectLanguageEntitiesDetails.BatchDetectLanguageEntitiesDetails;
|
|
22
|
+
import * as BatchDetectLanguageEntitiesResult from "./batch-detect-language-entities-result";
|
|
23
|
+
export import BatchDetectLanguageEntitiesResult = BatchDetectLanguageEntitiesResult.BatchDetectLanguageEntitiesResult;
|
|
24
|
+
import * as BatchDetectLanguageKeyPhrasesDetails from "./batch-detect-language-key-phrases-details";
|
|
25
|
+
export import BatchDetectLanguageKeyPhrasesDetails = BatchDetectLanguageKeyPhrasesDetails.BatchDetectLanguageKeyPhrasesDetails;
|
|
26
|
+
import * as BatchDetectLanguageKeyPhrasesResult from "./batch-detect-language-key-phrases-result";
|
|
27
|
+
export import BatchDetectLanguageKeyPhrasesResult = BatchDetectLanguageKeyPhrasesResult.BatchDetectLanguageKeyPhrasesResult;
|
|
28
|
+
import * as BatchDetectLanguageSentimentsDetails from "./batch-detect-language-sentiments-details";
|
|
29
|
+
export import BatchDetectLanguageSentimentsDetails = BatchDetectLanguageSentimentsDetails.BatchDetectLanguageSentimentsDetails;
|
|
30
|
+
import * as BatchDetectLanguageSentimentsResult from "./batch-detect-language-sentiments-result";
|
|
31
|
+
export import BatchDetectLanguageSentimentsResult = BatchDetectLanguageSentimentsResult.BatchDetectLanguageSentimentsResult;
|
|
32
|
+
import * as BatchDetectLanguageTextClassificationDetails from "./batch-detect-language-text-classification-details";
|
|
33
|
+
export import BatchDetectLanguageTextClassificationDetails = BatchDetectLanguageTextClassificationDetails.BatchDetectLanguageTextClassificationDetails;
|
|
34
|
+
import * as BatchDetectLanguageTextClassificationResult from "./batch-detect-language-text-classification-result";
|
|
35
|
+
export import BatchDetectLanguageTextClassificationResult = BatchDetectLanguageTextClassificationResult.BatchDetectLanguageTextClassificationResult;
|
|
16
36
|
import * as DetectDominantLanguageDetails from "./detect-dominant-language-details";
|
|
17
37
|
export import DetectDominantLanguageDetails = DetectDominantLanguageDetails.DetectDominantLanguageDetails;
|
|
18
38
|
import * as DetectDominantLanguageResult from "./detect-dominant-language-result";
|
|
@@ -35,13 +55,41 @@ import * as DetectLanguageTextClassificationResult from "./detect-language-text-
|
|
|
35
55
|
export import DetectLanguageTextClassificationResult = DetectLanguageTextClassificationResult.DetectLanguageTextClassificationResult;
|
|
36
56
|
import * as DetectedLanguage from "./detected-language";
|
|
37
57
|
export import DetectedLanguage = DetectedLanguage.DetectedLanguage;
|
|
58
|
+
import * as DocumentError from "./document-error";
|
|
59
|
+
export import DocumentError = DocumentError.DocumentError;
|
|
60
|
+
import * as DominantLanguageDocument from "./dominant-language-document";
|
|
61
|
+
export import DominantLanguageDocument = DominantLanguageDocument.DominantLanguageDocument;
|
|
62
|
+
import * as DominantLanguageDocumentResult from "./dominant-language-document-result";
|
|
63
|
+
export import DominantLanguageDocumentResult = DominantLanguageDocumentResult.DominantLanguageDocumentResult;
|
|
38
64
|
import * as Entity from "./entity";
|
|
39
65
|
export import Entity = Entity.Entity;
|
|
66
|
+
import * as EntityDocument from "./entity-document";
|
|
67
|
+
export import EntityDocument = EntityDocument.EntityDocument;
|
|
68
|
+
import * as EntityDocumentResult from "./entity-document-result";
|
|
69
|
+
export import EntityDocumentResult = EntityDocumentResult.EntityDocumentResult;
|
|
70
|
+
import * as ErrorDetails from "./error-details";
|
|
71
|
+
export import ErrorDetails = ErrorDetails.ErrorDetails;
|
|
72
|
+
import * as HierarchicalEntity from "./hierarchical-entity";
|
|
73
|
+
export import HierarchicalEntity = HierarchicalEntity.HierarchicalEntity;
|
|
40
74
|
import * as KeyPhrase from "./key-phrase";
|
|
41
75
|
export import KeyPhrase = KeyPhrase.KeyPhrase;
|
|
76
|
+
import * as KeyPhraseDocument from "./key-phrase-document";
|
|
77
|
+
export import KeyPhraseDocument = KeyPhraseDocument.KeyPhraseDocument;
|
|
78
|
+
import * as KeyPhraseDocumentResult from "./key-phrase-document-result";
|
|
79
|
+
export import KeyPhraseDocumentResult = KeyPhraseDocumentResult.KeyPhraseDocumentResult;
|
|
42
80
|
import * as NerModelVersion from "./ner-model-version";
|
|
43
81
|
export import NerModelVersion = NerModelVersion.NerModelVersion;
|
|
44
82
|
import * as SentimentAspect from "./sentiment-aspect";
|
|
45
83
|
export import SentimentAspect = SentimentAspect.SentimentAspect;
|
|
84
|
+
import * as SentimentDocumentResult from "./sentiment-document-result";
|
|
85
|
+
export import SentimentDocumentResult = SentimentDocumentResult.SentimentDocumentResult;
|
|
86
|
+
import * as SentimentSentence from "./sentiment-sentence";
|
|
87
|
+
export import SentimentSentence = SentimentSentence.SentimentSentence;
|
|
88
|
+
import * as SentimentsDocument from "./sentiments-document";
|
|
89
|
+
export import SentimentsDocument = SentimentsDocument.SentimentsDocument;
|
|
46
90
|
import * as TextClassification from "./text-classification";
|
|
47
91
|
export import TextClassification = TextClassification.TextClassification;
|
|
92
|
+
import * as TextClassificationDocument from "./text-classification-document";
|
|
93
|
+
export import TextClassificationDocument = TextClassificationDocument.TextClassificationDocument;
|
|
94
|
+
import * as TextClassificationDocumentResult from "./text-classification-document-result";
|
|
95
|
+
export import TextClassificationDocumentResult = TextClassificationDocumentResult.TextClassificationDocumentResult;
|
package/lib/model/index.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
|
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*
|
|
14
|
-
* Copyright (c) 2020,
|
|
14
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
15
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
16
|
*/
|
|
17
17
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -34,7 +34,27 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
34
34
|
return result;
|
|
35
35
|
};
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.TextClassification = exports.SentimentAspect = exports.NerModelVersion = exports.KeyPhrase = exports.Entity = exports.DetectedLanguage = exports.DetectLanguageTextClassificationResult = exports.DetectLanguageTextClassificationDetails = exports.DetectLanguageSentimentsResult = exports.DetectLanguageSentimentsDetails = exports.DetectLanguageKeyPhrasesResult = exports.DetectLanguageKeyPhrasesDetails = exports.DetectLanguageEntitiesResult = exports.DetectLanguageEntitiesDetails = exports.DetectDominantLanguageResult = exports.DetectDominantLanguageDetails = void 0;
|
|
37
|
+
exports.TextClassificationDocumentResult = exports.TextClassificationDocument = exports.TextClassification = exports.SentimentsDocument = exports.SentimentSentence = exports.SentimentDocumentResult = exports.SentimentAspect = exports.NerModelVersion = exports.KeyPhraseDocumentResult = exports.KeyPhraseDocument = exports.KeyPhrase = exports.HierarchicalEntity = exports.ErrorDetails = exports.EntityDocumentResult = exports.EntityDocument = exports.Entity = exports.DominantLanguageDocumentResult = exports.DominantLanguageDocument = exports.DocumentError = exports.DetectedLanguage = exports.DetectLanguageTextClassificationResult = exports.DetectLanguageTextClassificationDetails = exports.DetectLanguageSentimentsResult = exports.DetectLanguageSentimentsDetails = exports.DetectLanguageKeyPhrasesResult = exports.DetectLanguageKeyPhrasesDetails = exports.DetectLanguageEntitiesResult = exports.DetectLanguageEntitiesDetails = exports.DetectDominantLanguageResult = exports.DetectDominantLanguageDetails = exports.BatchDetectLanguageTextClassificationResult = exports.BatchDetectLanguageTextClassificationDetails = exports.BatchDetectLanguageSentimentsResult = exports.BatchDetectLanguageSentimentsDetails = exports.BatchDetectLanguageKeyPhrasesResult = exports.BatchDetectLanguageKeyPhrasesDetails = exports.BatchDetectLanguageEntitiesResult = exports.BatchDetectLanguageEntitiesDetails = exports.BatchDetectDominantLanguageResult = exports.BatchDetectDominantLanguageDetails = void 0;
|
|
38
|
+
const BatchDetectDominantLanguageDetails = __importStar(require("./batch-detect-dominant-language-details"));
|
|
39
|
+
exports.BatchDetectDominantLanguageDetails = BatchDetectDominantLanguageDetails.BatchDetectDominantLanguageDetails;
|
|
40
|
+
const BatchDetectDominantLanguageResult = __importStar(require("./batch-detect-dominant-language-result"));
|
|
41
|
+
exports.BatchDetectDominantLanguageResult = BatchDetectDominantLanguageResult.BatchDetectDominantLanguageResult;
|
|
42
|
+
const BatchDetectLanguageEntitiesDetails = __importStar(require("./batch-detect-language-entities-details"));
|
|
43
|
+
exports.BatchDetectLanguageEntitiesDetails = BatchDetectLanguageEntitiesDetails.BatchDetectLanguageEntitiesDetails;
|
|
44
|
+
const BatchDetectLanguageEntitiesResult = __importStar(require("./batch-detect-language-entities-result"));
|
|
45
|
+
exports.BatchDetectLanguageEntitiesResult = BatchDetectLanguageEntitiesResult.BatchDetectLanguageEntitiesResult;
|
|
46
|
+
const BatchDetectLanguageKeyPhrasesDetails = __importStar(require("./batch-detect-language-key-phrases-details"));
|
|
47
|
+
exports.BatchDetectLanguageKeyPhrasesDetails = BatchDetectLanguageKeyPhrasesDetails.BatchDetectLanguageKeyPhrasesDetails;
|
|
48
|
+
const BatchDetectLanguageKeyPhrasesResult = __importStar(require("./batch-detect-language-key-phrases-result"));
|
|
49
|
+
exports.BatchDetectLanguageKeyPhrasesResult = BatchDetectLanguageKeyPhrasesResult.BatchDetectLanguageKeyPhrasesResult;
|
|
50
|
+
const BatchDetectLanguageSentimentsDetails = __importStar(require("./batch-detect-language-sentiments-details"));
|
|
51
|
+
exports.BatchDetectLanguageSentimentsDetails = BatchDetectLanguageSentimentsDetails.BatchDetectLanguageSentimentsDetails;
|
|
52
|
+
const BatchDetectLanguageSentimentsResult = __importStar(require("./batch-detect-language-sentiments-result"));
|
|
53
|
+
exports.BatchDetectLanguageSentimentsResult = BatchDetectLanguageSentimentsResult.BatchDetectLanguageSentimentsResult;
|
|
54
|
+
const BatchDetectLanguageTextClassificationDetails = __importStar(require("./batch-detect-language-text-classification-details"));
|
|
55
|
+
exports.BatchDetectLanguageTextClassificationDetails = BatchDetectLanguageTextClassificationDetails.BatchDetectLanguageTextClassificationDetails;
|
|
56
|
+
const BatchDetectLanguageTextClassificationResult = __importStar(require("./batch-detect-language-text-classification-result"));
|
|
57
|
+
exports.BatchDetectLanguageTextClassificationResult = BatchDetectLanguageTextClassificationResult.BatchDetectLanguageTextClassificationResult;
|
|
38
58
|
const DetectDominantLanguageDetails = __importStar(require("./detect-dominant-language-details"));
|
|
39
59
|
exports.DetectDominantLanguageDetails = DetectDominantLanguageDetails.DetectDominantLanguageDetails;
|
|
40
60
|
const DetectDominantLanguageResult = __importStar(require("./detect-dominant-language-result"));
|
|
@@ -57,14 +77,42 @@ const DetectLanguageTextClassificationResult = __importStar(require("./detect-la
|
|
|
57
77
|
exports.DetectLanguageTextClassificationResult = DetectLanguageTextClassificationResult.DetectLanguageTextClassificationResult;
|
|
58
78
|
const DetectedLanguage = __importStar(require("./detected-language"));
|
|
59
79
|
exports.DetectedLanguage = DetectedLanguage.DetectedLanguage;
|
|
80
|
+
const DocumentError = __importStar(require("./document-error"));
|
|
81
|
+
exports.DocumentError = DocumentError.DocumentError;
|
|
82
|
+
const DominantLanguageDocument = __importStar(require("./dominant-language-document"));
|
|
83
|
+
exports.DominantLanguageDocument = DominantLanguageDocument.DominantLanguageDocument;
|
|
84
|
+
const DominantLanguageDocumentResult = __importStar(require("./dominant-language-document-result"));
|
|
85
|
+
exports.DominantLanguageDocumentResult = DominantLanguageDocumentResult.DominantLanguageDocumentResult;
|
|
60
86
|
const Entity = __importStar(require("./entity"));
|
|
61
87
|
exports.Entity = Entity.Entity;
|
|
88
|
+
const EntityDocument = __importStar(require("./entity-document"));
|
|
89
|
+
exports.EntityDocument = EntityDocument.EntityDocument;
|
|
90
|
+
const EntityDocumentResult = __importStar(require("./entity-document-result"));
|
|
91
|
+
exports.EntityDocumentResult = EntityDocumentResult.EntityDocumentResult;
|
|
92
|
+
const ErrorDetails = __importStar(require("./error-details"));
|
|
93
|
+
exports.ErrorDetails = ErrorDetails.ErrorDetails;
|
|
94
|
+
const HierarchicalEntity = __importStar(require("./hierarchical-entity"));
|
|
95
|
+
exports.HierarchicalEntity = HierarchicalEntity.HierarchicalEntity;
|
|
62
96
|
const KeyPhrase = __importStar(require("./key-phrase"));
|
|
63
97
|
exports.KeyPhrase = KeyPhrase.KeyPhrase;
|
|
98
|
+
const KeyPhraseDocument = __importStar(require("./key-phrase-document"));
|
|
99
|
+
exports.KeyPhraseDocument = KeyPhraseDocument.KeyPhraseDocument;
|
|
100
|
+
const KeyPhraseDocumentResult = __importStar(require("./key-phrase-document-result"));
|
|
101
|
+
exports.KeyPhraseDocumentResult = KeyPhraseDocumentResult.KeyPhraseDocumentResult;
|
|
64
102
|
const NerModelVersion = __importStar(require("./ner-model-version"));
|
|
65
103
|
exports.NerModelVersion = NerModelVersion.NerModelVersion;
|
|
66
104
|
const SentimentAspect = __importStar(require("./sentiment-aspect"));
|
|
67
105
|
exports.SentimentAspect = SentimentAspect.SentimentAspect;
|
|
106
|
+
const SentimentDocumentResult = __importStar(require("./sentiment-document-result"));
|
|
107
|
+
exports.SentimentDocumentResult = SentimentDocumentResult.SentimentDocumentResult;
|
|
108
|
+
const SentimentSentence = __importStar(require("./sentiment-sentence"));
|
|
109
|
+
exports.SentimentSentence = SentimentSentence.SentimentSentence;
|
|
110
|
+
const SentimentsDocument = __importStar(require("./sentiments-document"));
|
|
111
|
+
exports.SentimentsDocument = SentimentsDocument.SentimentsDocument;
|
|
68
112
|
const TextClassification = __importStar(require("./text-classification"));
|
|
69
113
|
exports.TextClassification = TextClassification.TextClassification;
|
|
114
|
+
const TextClassificationDocument = __importStar(require("./text-classification-document"));
|
|
115
|
+
exports.TextClassificationDocument = TextClassificationDocument.TextClassificationDocument;
|
|
116
|
+
const TextClassificationDocumentResult = __importStar(require("./text-classification-document-result"));
|
|
117
|
+
exports.TextClassificationDocumentResult = TextClassificationDocumentResult.TextClassificationDocumentResult;
|
|
70
118
|
//# sourceMappingURL=index.js.map
|
package/lib/model/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../lib/ailanguage/lib/model/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;;;;;;;AAEH,kGAAoF;AACtE,QAAA,6BAA6B,GAAG,6BAA6B,CAAC,6BAA6B,CAAC;AAC1G,gGAAkF;AACpE,QAAA,4BAA4B,GAAG,4BAA4B,CAAC,4BAA4B,CAAC;AACvG,kGAAoF;AACtE,QAAA,6BAA6B,GAAG,6BAA6B,CAAC,6BAA6B,CAAC;AAC1G,gGAAkF;AACpE,QAAA,4BAA4B,GAAG,4BAA4B,CAAC,4BAA4B,CAAC;AACvG,uGAAyF;AAC3E,QAAA,+BAA+B,GAAG,+BAA+B,CAAC,+BAA+B,CAAC;AAChH,qGAAuF;AACzE,QAAA,8BAA8B,GAAG,8BAA8B,CAAC,8BAA8B,CAAC;AAC7G,sGAAwF;AAC1E,QAAA,+BAA+B,GAAG,+BAA+B,CAAC,+BAA+B,CAAC;AAChH,oGAAsF;AACxE,QAAA,8BAA8B,GAAG,8BAA8B,CAAC,8BAA8B,CAAC;AAC7G,uHAAyG;AAC3F,QAAA,uCAAuC,GAAG,uCAAuC,CAAC,uCAAuC,CAAC;AACxI,qHAAuG;AACzF,QAAA,sCAAsC,GAAG,sCAAsC,CAAC,sCAAsC,CAAC;AACrI,sEAAwD;AAC1C,QAAA,gBAAgB,GAAG,gBAAgB,CAAC,gBAAgB,CAAC;AACnE,iDAAmC;AACrB,QAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AACrC,wDAA0C;AAC5B,QAAA,SAAS,GAAG,SAAS,CAAC,SAAS,CAAC;AAC9C,qEAAuD;AACzC,QAAA,eAAe,GAAG,eAAe,CAAC,eAAe,CAAC;AAChE,oEAAsD;AACxC,QAAA,eAAe,GAAG,eAAe,CAAC,eAAe,CAAC;AAChE,0EAA4D;AAC9C,QAAA,kBAAkB,GAAG,kBAAkB,CAAC,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../lib/ailanguage/lib/model/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -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, 2022, 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 keyPhrases detect call.
|
|
19
|
+
*/
|
|
20
|
+
export interface KeyPhraseDocumentResult {
|
|
21
|
+
/**
|
|
22
|
+
* Document Unique Identifier.
|
|
23
|
+
*/
|
|
24
|
+
"key": string;
|
|
25
|
+
/**
|
|
26
|
+
* List of detected keyPhrases.
|
|
27
|
+
*/
|
|
28
|
+
"keyPhrases": Array<model.KeyPhrase>;
|
|
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 KeyPhraseDocumentResult {
|
|
35
|
+
function getJsonObj(obj: KeyPhraseDocumentResult): object;
|
|
36
|
+
function getDeserializedJsonObj(obj: KeyPhraseDocumentResult): object;
|
|
37
|
+
}
|