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.KeyPhraseDocumentResult = void 0;
|
|
38
|
+
const model = __importStar(require("../model"));
|
|
39
|
+
var KeyPhraseDocumentResult;
|
|
40
|
+
(function (KeyPhraseDocumentResult) {
|
|
41
|
+
function getJsonObj(obj) {
|
|
42
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
43
|
+
"keyPhrases": obj.keyPhrases
|
|
44
|
+
? obj.keyPhrases.map(item => {
|
|
45
|
+
return model.KeyPhrase.getJsonObj(item);
|
|
46
|
+
})
|
|
47
|
+
: undefined
|
|
48
|
+
});
|
|
49
|
+
return jsonObj;
|
|
50
|
+
}
|
|
51
|
+
KeyPhraseDocumentResult.getJsonObj = getJsonObj;
|
|
52
|
+
function getDeserializedJsonObj(obj) {
|
|
53
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
54
|
+
"keyPhrases": obj.keyPhrases
|
|
55
|
+
? obj.keyPhrases.map(item => {
|
|
56
|
+
return model.KeyPhrase.getDeserializedJsonObj(item);
|
|
57
|
+
})
|
|
58
|
+
: undefined
|
|
59
|
+
});
|
|
60
|
+
return jsonObj;
|
|
61
|
+
}
|
|
62
|
+
KeyPhraseDocumentResult.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
63
|
+
})(KeyPhraseDocumentResult = exports.KeyPhraseDocumentResult || (exports.KeyPhraseDocumentResult = {}));
|
|
64
|
+
//# sourceMappingURL=key-phrase-document-result.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"key-phrase-document-result.js","sourceRoot":"","sources":["../../../../../lib/ailanguage/lib/model/key-phrase-document-result.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAqBlC,IAAiB,uBAAuB,CA6BvC;AA7BD,WAAiB,uBAAuB;IACtC,SAAgB,UAAU,CAAC,GAA4B;QACrD,MAAM,OAAO,mCACR,GAAG,GACH;YACD,YAAY,EAAE,GAAG,CAAC,UAAU;gBAC1B,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACxB,OAAO,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBAC1C,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAbe,kCAAU,aAazB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAA4B;QACjE,MAAM,OAAO,mCACR,GAAG,GACH;YACD,YAAY,EAAE,GAAG,CAAC,UAAU;gBAC1B,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACxB,OAAO,KAAK,CAAC,SAAS,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBACtD,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAbe,8CAAsB,yBAarC,CAAA;AACH,CAAC,EA7BgB,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QA6BvC"}
|
|
@@ -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 keyPhrases detect call.
|
|
18
|
+
*/
|
|
19
|
+
export interface KeyPhraseDocument {
|
|
20
|
+
/**
|
|
21
|
+
* Document Unique Identifier.
|
|
22
|
+
*/
|
|
23
|
+
"key": string;
|
|
24
|
+
/**
|
|
25
|
+
* Document text for detect keyPhrases.
|
|
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 KeyPhraseDocument {
|
|
34
|
+
function getJsonObj(obj: KeyPhraseDocument): object;
|
|
35
|
+
function getDeserializedJsonObj(obj: KeyPhraseDocument): 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.KeyPhraseDocument = void 0;
|
|
19
|
+
var KeyPhraseDocument;
|
|
20
|
+
(function (KeyPhraseDocument) {
|
|
21
|
+
function getJsonObj(obj) {
|
|
22
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
23
|
+
return jsonObj;
|
|
24
|
+
}
|
|
25
|
+
KeyPhraseDocument.getJsonObj = getJsonObj;
|
|
26
|
+
function getDeserializedJsonObj(obj) {
|
|
27
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
28
|
+
return jsonObj;
|
|
29
|
+
}
|
|
30
|
+
KeyPhraseDocument.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
31
|
+
})(KeyPhraseDocument = exports.KeyPhraseDocument || (exports.KeyPhraseDocument = {}));
|
|
32
|
+
//# sourceMappingURL=key-phrase-document.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"key-phrase-document.js","sourceRoot":"","sources":["../../../../../lib/ailanguage/lib/model/key-phrase-document.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAuBH,IAAiB,iBAAiB,CAWjC;AAXD,WAAiB,iBAAiB;IAChC,SAAgB,UAAU,CAAC,GAAsB;QAC/C,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,4BAAU,aAIzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAsB;QAC3D,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,wCAAsB,yBAIrC,CAAA;AACH,CAAC,EAXgB,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAWjC"}
|
|
@@ -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,19 +10,21 @@
|
|
|
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
|
/**
|
|
17
|
-
* Key phrase
|
|
17
|
+
* Key phrase for the given text.
|
|
18
18
|
*/
|
|
19
19
|
export interface KeyPhrase {
|
|
20
20
|
/**
|
|
21
|
-
* Key phrase
|
|
21
|
+
* Key phrase exreacted from given text.
|
|
22
22
|
*/
|
|
23
23
|
"text": string;
|
|
24
24
|
/**
|
|
25
|
-
* Score of the
|
|
25
|
+
* Score or confidence of the key phrase.
|
|
26
|
+
* Example: `0.9999856066867399`
|
|
27
|
+
* Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
|
|
26
28
|
*/
|
|
27
29
|
"score": number;
|
|
28
30
|
}
|
package/lib/model/key-phrase.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 });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"key-phrase.js","sourceRoot":"","sources":["../../../../../lib/ailanguage/lib/model/key-phrase.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;
|
|
1
|
+
{"version":3,"file":"key-phrase.js","sourceRoot":"","sources":["../../../../../lib/ailanguage/lib/model/key-phrase.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAqBH,IAAiB,SAAS,CAWzB;AAXD,WAAiB,SAAS;IACxB,SAAgB,UAAU,CAAC,GAAc;QACvC,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,oBAAU,aAIzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAc;QACnD,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,gCAAsB,yBAIrC,CAAA;AACH,CAAC,EAXgB,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAWzB"}
|
|
@@ -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
|
/**
|
|
@@ -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 });
|
|
@@ -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,11 +10,11 @@
|
|
|
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
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Sentiment aspect object.
|
|
18
18
|
*/
|
|
19
19
|
export interface SentimentAspect {
|
|
20
20
|
/**
|
|
@@ -22,7 +22,7 @@ export interface SentimentAspect {
|
|
|
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 aspect text. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
|
|
26
26
|
*/
|
|
27
27
|
"length"?: number;
|
|
28
28
|
/**
|
|
@@ -34,8 +34,8 @@ export interface SentimentAspect {
|
|
|
34
34
|
*/
|
|
35
35
|
"sentiment"?: string;
|
|
36
36
|
/**
|
|
37
|
-
* Scores for each sentiment.
|
|
38
|
-
* Example: \"
|
|
37
|
+
* Scores or confidences for each sentiment.
|
|
38
|
+
* Example: `{\"positive\": 1.0, \"negative\": 0.0}`
|
|
39
39
|
*
|
|
40
40
|
*/
|
|
41
41
|
"scores"?: {
|
|
@@ -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 });
|
|
@@ -0,0 +1,53 @@
|
|
|
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 sentiment detect call.
|
|
19
|
+
*/
|
|
20
|
+
export interface SentimentDocumentResult {
|
|
21
|
+
/**
|
|
22
|
+
* Document Unique Identifier.
|
|
23
|
+
*/
|
|
24
|
+
"key": string;
|
|
25
|
+
/**
|
|
26
|
+
* Document level sentiment.
|
|
27
|
+
*/
|
|
28
|
+
"documentSentiment"?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Scores for each sentiment.
|
|
31
|
+
* Example: {\"positive\": 1.0, \"negative\": 0.0}
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
"documentScores"?: {
|
|
35
|
+
[key: string]: number;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* List of detected aspects sentiment.
|
|
39
|
+
*/
|
|
40
|
+
"aspects": Array<model.SentimentAspect>;
|
|
41
|
+
/**
|
|
42
|
+
* List of detected sentences sentiment.
|
|
43
|
+
*/
|
|
44
|
+
"sentences"?: Array<model.SentimentSentence>;
|
|
45
|
+
/**
|
|
46
|
+
* Language code as per [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) standard.
|
|
47
|
+
*/
|
|
48
|
+
"languageCode": string;
|
|
49
|
+
}
|
|
50
|
+
export declare namespace SentimentDocumentResult {
|
|
51
|
+
function getJsonObj(obj: SentimentDocumentResult): object;
|
|
52
|
+
function getDeserializedJsonObj(obj: SentimentDocumentResult): object;
|
|
53
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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.SentimentDocumentResult = void 0;
|
|
38
|
+
const model = __importStar(require("../model"));
|
|
39
|
+
var SentimentDocumentResult;
|
|
40
|
+
(function (SentimentDocumentResult) {
|
|
41
|
+
function getJsonObj(obj) {
|
|
42
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
43
|
+
"aspects": obj.aspects
|
|
44
|
+
? obj.aspects.map(item => {
|
|
45
|
+
return model.SentimentAspect.getJsonObj(item);
|
|
46
|
+
})
|
|
47
|
+
: undefined,
|
|
48
|
+
"sentences": obj.sentences
|
|
49
|
+
? obj.sentences.map(item => {
|
|
50
|
+
return model.SentimentSentence.getJsonObj(item);
|
|
51
|
+
})
|
|
52
|
+
: undefined
|
|
53
|
+
});
|
|
54
|
+
return jsonObj;
|
|
55
|
+
}
|
|
56
|
+
SentimentDocumentResult.getJsonObj = getJsonObj;
|
|
57
|
+
function getDeserializedJsonObj(obj) {
|
|
58
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
59
|
+
"aspects": obj.aspects
|
|
60
|
+
? obj.aspects.map(item => {
|
|
61
|
+
return model.SentimentAspect.getDeserializedJsonObj(item);
|
|
62
|
+
})
|
|
63
|
+
: undefined,
|
|
64
|
+
"sentences": obj.sentences
|
|
65
|
+
? obj.sentences.map(item => {
|
|
66
|
+
return model.SentimentSentence.getDeserializedJsonObj(item);
|
|
67
|
+
})
|
|
68
|
+
: undefined
|
|
69
|
+
});
|
|
70
|
+
return jsonObj;
|
|
71
|
+
}
|
|
72
|
+
SentimentDocumentResult.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
73
|
+
})(SentimentDocumentResult = exports.SentimentDocumentResult || (exports.SentimentDocumentResult = {}));
|
|
74
|
+
//# sourceMappingURL=sentiment-document-result.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sentiment-document-result.js","sourceRoot":"","sources":["../../../../../lib/ailanguage/lib/model/sentiment-document-result.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAmClC,IAAiB,uBAAuB,CAuCvC;AAvCD,WAAiB,uBAAuB;IACtC,SAAgB,UAAU,CAAC,GAA4B;QACrD,MAAM,OAAO,mCACR,GAAG,GACH;YACD,SAAS,EAAE,GAAG,CAAC,OAAO;gBACpB,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACrB,OAAO,KAAK,CAAC,eAAe,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBAChD,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;YACb,WAAW,EAAE,GAAG,CAAC,SAAS;gBACxB,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACvB,OAAO,KAAK,CAAC,iBAAiB,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBAClD,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAlBe,kCAAU,aAkBzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAA4B;QACjE,MAAM,OAAO,mCACR,GAAG,GACH;YACD,SAAS,EAAE,GAAG,CAAC,OAAO;gBACpB,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACrB,OAAO,KAAK,CAAC,eAAe,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBAC5D,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;YACb,WAAW,EAAE,GAAG,CAAC,SAAS;gBACxB,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACvB,OAAO,KAAK,CAAC,iBAAiB,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBAC9D,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAlBe,8CAAsB,yBAkBrC,CAAA;AACH,CAAC,EAvCgB,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAuCvC"}
|
|
@@ -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
|
+
* Sentiment sentence object.
|
|
18
|
+
*/
|
|
19
|
+
export interface SentimentSentence {
|
|
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 sentence text. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
|
|
26
|
+
*/
|
|
27
|
+
"length"?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Sentence text.
|
|
30
|
+
*/
|
|
31
|
+
"text"?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The highest-score sentiment for the sentence text.
|
|
34
|
+
*/
|
|
35
|
+
"sentiment"?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Scores or confidences for each sentiment.
|
|
38
|
+
* Example: `{\"positive\": 1.0, \"negative\": 0.0}`
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
"scores"?: {
|
|
42
|
+
[key: string]: number;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export declare namespace SentimentSentence {
|
|
46
|
+
function getJsonObj(obj: SentimentSentence): object;
|
|
47
|
+
function getDeserializedJsonObj(obj: SentimentSentence): 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.SentimentSentence = void 0;
|
|
19
|
+
var SentimentSentence;
|
|
20
|
+
(function (SentimentSentence) {
|
|
21
|
+
function getJsonObj(obj) {
|
|
22
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
23
|
+
return jsonObj;
|
|
24
|
+
}
|
|
25
|
+
SentimentSentence.getJsonObj = getJsonObj;
|
|
26
|
+
function getDeserializedJsonObj(obj) {
|
|
27
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
28
|
+
return jsonObj;
|
|
29
|
+
}
|
|
30
|
+
SentimentSentence.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
31
|
+
})(SentimentSentence = exports.SentimentSentence || (exports.SentimentSentence = {}));
|
|
32
|
+
//# sourceMappingURL=sentiment-sentence.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sentiment-sentence.js","sourceRoot":"","sources":["../../../../../lib/ailanguage/lib/model/sentiment-sentence.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAiCH,IAAiB,iBAAiB,CAWjC;AAXD,WAAiB,iBAAiB;IAChC,SAAgB,UAAU,CAAC,GAAsB;QAC/C,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,4BAAU,aAIzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAsB;QAC3D,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,wCAAsB,yBAIrC,CAAA;AACH,CAAC,EAXgB,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAWjC"}
|
|
@@ -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 sentiments detect call.
|
|
18
|
+
*/
|
|
19
|
+
export interface SentimentsDocument {
|
|
20
|
+
/**
|
|
21
|
+
* Document Unique Identifier.
|
|
22
|
+
*/
|
|
23
|
+
"key": string;
|
|
24
|
+
/**
|
|
25
|
+
* Document text for detect sentiments.
|
|
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 SentimentsDocument {
|
|
34
|
+
function getJsonObj(obj: SentimentsDocument): object;
|
|
35
|
+
function getDeserializedJsonObj(obj: SentimentsDocument): 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.SentimentsDocument = void 0;
|
|
19
|
+
var SentimentsDocument;
|
|
20
|
+
(function (SentimentsDocument) {
|
|
21
|
+
function getJsonObj(obj) {
|
|
22
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
23
|
+
return jsonObj;
|
|
24
|
+
}
|
|
25
|
+
SentimentsDocument.getJsonObj = getJsonObj;
|
|
26
|
+
function getDeserializedJsonObj(obj) {
|
|
27
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
28
|
+
return jsonObj;
|
|
29
|
+
}
|
|
30
|
+
SentimentsDocument.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
31
|
+
})(SentimentsDocument = exports.SentimentsDocument || (exports.SentimentsDocument = {}));
|
|
32
|
+
//# sourceMappingURL=sentiments-document.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sentiments-document.js","sourceRoot":"","sources":["../../../../../lib/ailanguage/lib/model/sentiments-document.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAuBH,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"}
|
|
@@ -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 test classification detect call.
|
|
19
|
+
*/
|
|
20
|
+
export interface TextClassificationDocumentResult {
|
|
21
|
+
/**
|
|
22
|
+
* Document Unique Identifier.
|
|
23
|
+
*/
|
|
24
|
+
"key": string;
|
|
25
|
+
/**
|
|
26
|
+
* List of detected text classes.
|
|
27
|
+
*/
|
|
28
|
+
"textClassification": Array<model.TextClassification>;
|
|
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 TextClassificationDocumentResult {
|
|
35
|
+
function getJsonObj(obj: TextClassificationDocumentResult): object;
|
|
36
|
+
function getDeserializedJsonObj(obj: TextClassificationDocumentResult): object;
|
|
37
|
+
}
|