oci-ailanguage 2.9.1 → 2.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +2 -2
- package/index.js +2 -2
- package/lib/client.d.ts +52 -7
- package/lib/client.js +284 -7
- package/lib/client.js.map +1 -1
- package/lib/model/batch-detect-dominant-language-details.d.ts +29 -0
- package/lib/model/batch-detect-dominant-language-details.js +64 -0
- package/lib/model/batch-detect-dominant-language-details.js.map +1 -0
- package/lib/model/batch-detect-dominant-language-result.d.ts +33 -0
- package/lib/model/batch-detect-dominant-language-result.js +74 -0
- package/lib/model/batch-detect-dominant-language-result.js.map +1 -0
- package/lib/model/batch-detect-language-entities-details.d.ts +29 -0
- package/lib/model/batch-detect-language-entities-details.js +64 -0
- package/lib/model/batch-detect-language-entities-details.js.map +1 -0
- package/lib/model/batch-detect-language-entities-result.d.ts +33 -0
- package/lib/model/batch-detect-language-entities-result.js +74 -0
- package/lib/model/batch-detect-language-entities-result.js.map +1 -0
- package/lib/model/batch-detect-language-key-phrases-details.d.ts +29 -0
- package/lib/model/batch-detect-language-key-phrases-details.js +64 -0
- package/lib/model/batch-detect-language-key-phrases-details.js.map +1 -0
- package/lib/model/batch-detect-language-key-phrases-result.d.ts +33 -0
- package/lib/model/batch-detect-language-key-phrases-result.js +74 -0
- package/lib/model/batch-detect-language-key-phrases-result.js.map +1 -0
- package/lib/model/batch-detect-language-sentiments-details.d.ts +29 -0
- package/lib/model/batch-detect-language-sentiments-details.js +64 -0
- package/lib/model/batch-detect-language-sentiments-details.js.map +1 -0
- package/lib/model/batch-detect-language-sentiments-result.d.ts +33 -0
- package/lib/model/batch-detect-language-sentiments-result.js +74 -0
- package/lib/model/batch-detect-language-sentiments-result.js.map +1 -0
- package/lib/model/batch-detect-language-text-classification-details.d.ts +29 -0
- package/lib/model/batch-detect-language-text-classification-details.js +64 -0
- package/lib/model/batch-detect-language-text-classification-details.js.map +1 -0
- package/lib/model/batch-detect-language-text-classification-result.d.ts +33 -0
- package/lib/model/batch-detect-language-text-classification-result.js +74 -0
- package/lib/model/batch-detect-language-text-classification-result.js.map +1 -0
- package/lib/model/detect-dominant-language-details.d.ts +2 -2
- package/lib/model/detect-dominant-language-details.js +2 -2
- package/lib/model/detect-dominant-language-result.d.ts +3 -6
- package/lib/model/detect-dominant-language-result.js +2 -2
- package/lib/model/detect-dominant-language-result.js.map +1 -1
- package/lib/model/detect-language-entities-details.d.ts +2 -2
- package/lib/model/detect-language-entities-details.js +2 -2
- package/lib/model/detect-language-entities-result.d.ts +3 -3
- package/lib/model/detect-language-entities-result.js +2 -2
- package/lib/model/detect-language-key-phrases-details.d.ts +2 -2
- package/lib/model/detect-language-key-phrases-details.js +2 -2
- package/lib/model/detect-language-key-phrases-result.d.ts +3 -3
- package/lib/model/detect-language-key-phrases-result.js +2 -2
- package/lib/model/detect-language-sentiments-details.d.ts +2 -2
- package/lib/model/detect-language-sentiments-details.js +2 -2
- package/lib/model/detect-language-sentiments-result.d.ts +3 -3
- package/lib/model/detect-language-sentiments-result.js +2 -2
- package/lib/model/detect-language-text-classification-details.d.ts +3 -3
- package/lib/model/detect-language-text-classification-details.js +2 -2
- package/lib/model/detect-language-text-classification-result.d.ts +4 -4
- package/lib/model/detect-language-text-classification-result.js +2 -2
- package/lib/model/detected-language.d.ts +10 -6
- package/lib/model/detected-language.js +2 -2
- package/lib/model/detected-language.js.map +1 -1
- package/lib/model/document-error.d.ts +30 -0
- package/lib/model/document-error.js +56 -0
- package/lib/model/document-error.js.map +1 -0
- package/lib/model/dominant-language-document-result.d.ts +34 -0
- package/lib/model/dominant-language-document-result.js +64 -0
- package/lib/model/dominant-language-document-result.js.map +1 -0
- package/lib/model/dominant-language-document.d.ts +32 -0
- package/lib/model/dominant-language-document.js +32 -0
- package/lib/model/dominant-language-document.js.map +1 -0
- package/lib/model/entity-document-result.d.ts +37 -0
- package/lib/model/entity-document-result.js +64 -0
- package/lib/model/entity-document-result.js.map +1 -0
- package/lib/model/entity-document.d.ts +36 -0
- package/lib/model/entity-document.js +32 -0
- package/lib/model/entity-document.js.map +1 -0
- package/lib/model/entity.d.ts +6 -4
- package/lib/model/entity.js +2 -2
- package/lib/model/entity.js.map +1 -1
- package/lib/model/error-details.d.ts +32 -0
- package/lib/model/error-details.js +32 -0
- package/lib/model/error-details.js.map +1 -0
- package/lib/model/hierarchical-entity.d.ts +48 -0
- package/lib/model/hierarchical-entity.js +32 -0
- package/lib/model/hierarchical-entity.js.map +1 -0
- package/lib/model/index.d.ts +50 -2
- package/lib/model/index.js +51 -3
- package/lib/model/index.js.map +1 -1
- package/lib/model/key-phrase-document-result.d.ts +37 -0
- package/lib/model/key-phrase-document-result.js +64 -0
- package/lib/model/key-phrase-document-result.js.map +1 -0
- package/lib/model/key-phrase-document.d.ts +36 -0
- package/lib/model/key-phrase-document.js +32 -0
- package/lib/model/key-phrase-document.js.map +1 -0
- package/lib/model/key-phrase.d.ts +7 -5
- package/lib/model/key-phrase.js +2 -2
- package/lib/model/key-phrase.js.map +1 -1
- package/lib/model/ner-model-version.d.ts +2 -2
- package/lib/model/ner-model-version.js +2 -2
- package/lib/model/sentiment-aspect.d.ts +6 -6
- package/lib/model/sentiment-aspect.js +2 -2
- package/lib/model/sentiment-document-result.d.ts +53 -0
- package/lib/model/sentiment-document-result.js +74 -0
- package/lib/model/sentiment-document-result.js.map +1 -0
- package/lib/model/sentiment-sentence.d.ts +48 -0
- package/lib/model/sentiment-sentence.js +32 -0
- package/lib/model/sentiment-sentence.js.map +1 -0
- package/lib/model/sentiments-document.d.ts +36 -0
- package/lib/model/sentiments-document.js +32 -0
- package/lib/model/sentiments-document.js.map +1 -0
- package/lib/model/text-classification-document-result.d.ts +37 -0
- package/lib/model/text-classification-document-result.js +64 -0
- package/lib/model/text-classification-document-result.js.map +1 -0
- package/lib/model/text-classification-document.d.ts +36 -0
- package/lib/model/text-classification-document.js +32 -0
- package/lib/model/text-classification-document.js.map +1 -0
- package/lib/model/text-classification.d.ts +5 -3
- package/lib/model/text-classification.js +2 -2
- package/lib/model/text-classification.js.map +1 -1
- package/lib/request/batch-detect-dominant-language-request.d.ts +28 -0
- package/lib/request/batch-detect-dominant-language-request.js +15 -0
- package/lib/request/batch-detect-dominant-language-request.js.map +1 -0
- package/lib/request/batch-detect-language-entities-request.d.ts +28 -0
- package/lib/request/batch-detect-language-entities-request.js +15 -0
- package/lib/request/batch-detect-language-entities-request.js.map +1 -0
- package/lib/request/batch-detect-language-key-phrases-request.d.ts +28 -0
- package/lib/request/batch-detect-language-key-phrases-request.js +15 -0
- package/lib/request/batch-detect-language-key-phrases-request.js.map +1 -0
- package/lib/request/batch-detect-language-sentiments-request.d.ts +42 -0
- package/lib/request/batch-detect-language-sentiments-request.js +24 -0
- package/lib/request/batch-detect-language-sentiments-request.js.map +1 -0
- package/lib/request/batch-detect-language-text-classification-request.d.ts +28 -0
- package/lib/request/batch-detect-language-text-classification-request.js +15 -0
- package/lib/request/batch-detect-language-text-classification-request.js.map +1 -0
- package/lib/request/detect-dominant-language-request.d.ts +1 -3
- package/lib/request/detect-language-entities-request.d.ts +1 -3
- package/lib/request/detect-language-key-phrases-request.d.ts +1 -3
- package/lib/request/detect-language-sentiments-request.d.ts +1 -3
- package/lib/request/detect-language-text-classification-request.d.ts +1 -2
- package/lib/request/index.d.ts +12 -2
- package/lib/request/index.js +24 -2
- package/lib/request/index.js.map +1 -1
- package/lib/response/batch-detect-dominant-language-response.d.ts +25 -0
- package/lib/response/batch-detect-dominant-language-response.js +15 -0
- package/lib/response/batch-detect-dominant-language-response.js.map +1 -0
- package/lib/response/batch-detect-language-entities-response.d.ts +25 -0
- package/lib/response/batch-detect-language-entities-response.js +15 -0
- package/lib/response/batch-detect-language-entities-response.js.map +1 -0
- package/lib/response/batch-detect-language-key-phrases-response.d.ts +25 -0
- package/lib/response/batch-detect-language-key-phrases-response.js +15 -0
- package/lib/response/batch-detect-language-key-phrases-response.js.map +1 -0
- package/lib/response/batch-detect-language-sentiments-response.d.ts +25 -0
- package/lib/response/batch-detect-language-sentiments-response.js +15 -0
- package/lib/response/batch-detect-language-sentiments-response.js.map +1 -0
- package/lib/response/batch-detect-language-text-classification-response.d.ts +25 -0
- package/lib/response/batch-detect-language-text-classification-response.js +15 -0
- package/lib/response/batch-detect-language-text-classification-response.js.map +1 -0
- package/lib/response/index.d.ts +12 -2
- package/lib/response/index.js +2 -2
- package/package.json +3 -3
|
@@ -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, 2021, Oracle and/or its affiliates. All rights reserved.
|
|
14
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* 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, 2021, Oracle and/or its affiliates. All rights reserved.
|
|
15
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.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
|
|
|
@@ -13,6 +13,26 @@
|
|
|
13
13
|
* Copyright (c) 2020, 2021, 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
|
|
|
@@ -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, 2021, Oracle and/or its affiliates. All rights reserved.
|
|
14
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
15
|
+
*/
|
|
16
|
+
import * as model from "../model";
|
|
17
|
+
/**
|
|
18
|
+
* The document response for 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
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Language API
|
|
4
|
+
* OCI Language Service solutions can help enterprise customers integrate AI into their products immediately using our proven,
|
|
5
|
+
pre-trained and custom models or containers, without a need to set up an house team of AI and ML experts.
|
|
6
|
+
This allows enterprises to focus on business drivers and development work rather than AI and ML operations, which shortens the time to market.
|
|
7
|
+
|
|
8
|
+
* OpenAPI spec version: 20210101
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
|
|
15
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
16
|
+
*/
|
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.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, 2021, Oracle and/or its affiliates. All rights reserved.
|
|
14
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* The document details for 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, 2021, Oracle and/or its affiliates. All rights reserved.
|
|
15
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.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
|
|
|
@@ -14,15 +14,17 @@
|
|
|
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
|
|
|
@@ -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
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
* OCI
|
|
3
|
+
* Language API
|
|
4
|
+
* OCI Language Service solutions can help enterprise customers integrate AI into their products immediately using our proven,
|
|
5
5
|
pre-trained and custom models or containers, without a need to set up an house team of AI and ML experts.
|
|
6
6
|
This allows enterprises to focus on business drivers and development work rather than AI and ML operations, which shortens the time to market.
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* OCI
|
|
2
|
+
* Language API
|
|
3
|
+
* OCI Language Service solutions can help enterprise customers integrate AI into their products immediately using our proven,
|
|
4
4
|
pre-trained and custom models or containers, without a need to set up an house team of AI and ML experts.
|
|
5
5
|
This allows enterprises to focus on business drivers and development work rather than AI and ML operations, which shortens the time to market.
|
|
6
6
|
|
|
@@ -14,7 +14,7 @@
|
|
|
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
|
|
|
@@ -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, 2021, Oracle and/or its affiliates. All rights reserved.
|
|
14
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
15
|
+
*/
|
|
16
|
+
import * as model from "../model";
|
|
17
|
+
/**
|
|
18
|
+
* The document response for 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
|
+
}
|