@azure/ai-language-text 1.1.0-alpha.20221101.3 → 1.1.0-alpha.20221104.3
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/dist/index.js +131 -150
- package/dist/index.js.map +1 -1
- package/dist-esm/src/generated/generatedClient.js +0 -17
- package/dist-esm/src/generated/generatedClient.js.map +1 -1
- package/dist-esm/src/generated/models/index.js +13 -13
- package/dist-esm/src/generated/models/index.js.map +1 -1
- package/dist-esm/src/generated/models/mappers.js +98 -114
- package/dist-esm/src/generated/models/mappers.js.map +1 -1
- package/dist-esm/src/index.js +1 -1
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models.js.map +1 -1
- package/dist-esm/src/textAnalysisClient.js.map +1 -1
- package/dist-esm/src/transforms.js +16 -2
- package/dist-esm/src/transforms.js.map +1 -1
- package/package.json +1 -1
- package/types/ai-language-text.d.ts +52 -55
package/dist/index.js
CHANGED
@@ -30,7 +30,6 @@ function _interopNamespace(e) {
|
|
30
30
|
}
|
31
31
|
|
32
32
|
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
33
|
-
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
34
33
|
|
35
34
|
// Copyright (c) Microsoft Corporation.
|
36
35
|
// Licensed under the MIT license.
|
@@ -1159,6 +1158,20 @@ const HealthcareRelationEntity = {
|
|
1159
1158
|
}
|
1160
1159
|
}
|
1161
1160
|
};
|
1161
|
+
const DocumentDetectedLanguageForHealthcare = {
|
1162
|
+
type: {
|
1163
|
+
name: "Composite",
|
1164
|
+
className: "DocumentDetectedLanguageForHealthcare",
|
1165
|
+
modelProperties: {
|
1166
|
+
detectedLanguage: {
|
1167
|
+
serializedName: "detectedLanguage",
|
1168
|
+
type: {
|
1169
|
+
name: "String"
|
1170
|
+
}
|
1171
|
+
}
|
1172
|
+
}
|
1173
|
+
}
|
1174
|
+
};
|
1162
1175
|
const PreBuiltResult = {
|
1163
1176
|
type: {
|
1164
1177
|
name: "Composite",
|
@@ -1630,41 +1643,6 @@ const AbstractiveSummarizationTaskParametersBase = {
|
|
1630
1643
|
type: {
|
1631
1644
|
name: "String"
|
1632
1645
|
}
|
1633
|
-
},
|
1634
|
-
phraseControls: {
|
1635
|
-
serializedName: "phraseControls",
|
1636
|
-
type: {
|
1637
|
-
name: "Sequence",
|
1638
|
-
element: {
|
1639
|
-
type: {
|
1640
|
-
name: "Composite",
|
1641
|
-
className: "PhraseControl"
|
1642
|
-
}
|
1643
|
-
}
|
1644
|
-
}
|
1645
|
-
}
|
1646
|
-
}
|
1647
|
-
}
|
1648
|
-
};
|
1649
|
-
const PhraseControl = {
|
1650
|
-
type: {
|
1651
|
-
name: "Composite",
|
1652
|
-
className: "PhraseControl",
|
1653
|
-
modelProperties: {
|
1654
|
-
targetPhrase: {
|
1655
|
-
serializedName: "targetPhrase",
|
1656
|
-
required: true,
|
1657
|
-
type: {
|
1658
|
-
name: "String"
|
1659
|
-
}
|
1660
|
-
},
|
1661
|
-
strategy: {
|
1662
|
-
serializedName: "strategy",
|
1663
|
-
required: true,
|
1664
|
-
type: {
|
1665
|
-
name: "Enum",
|
1666
|
-
allowedValues: ["encourage", "discourage", "disallow"]
|
1667
|
-
}
|
1668
1646
|
}
|
1669
1647
|
}
|
1670
1648
|
}
|
@@ -1682,7 +1660,7 @@ const AbstractiveSummarizationResultBase = {
|
|
1682
1660
|
element: {
|
1683
1661
|
type: {
|
1684
1662
|
name: "Composite",
|
1685
|
-
className: "
|
1663
|
+
className: "AbstractiveSummaryDocumentResultWithDetectedLanguage"
|
1686
1664
|
}
|
1687
1665
|
}
|
1688
1666
|
}
|
@@ -2436,6 +2414,11 @@ const TemporalSpanResolution = {
|
|
2436
2414
|
type: {
|
2437
2415
|
name: "String"
|
2438
2416
|
}
|
2417
|
+
}, timex: {
|
2418
|
+
serializedName: "timex",
|
2419
|
+
type: {
|
2420
|
+
name: "String"
|
2421
|
+
}
|
2439
2422
|
} })
|
2440
2423
|
}
|
2441
2424
|
};
|
@@ -2719,13 +2702,6 @@ const CustomLabelClassificationResultDocumentsItem = {
|
|
2719
2702
|
modelProperties: Object.assign(Object.assign({}, ClassificationDocumentResult.type.modelProperties), DocumentDetectedLanguage.type.modelProperties)
|
2720
2703
|
}
|
2721
2704
|
};
|
2722
|
-
const HealthcareResultDocumentsItem = {
|
2723
|
-
type: {
|
2724
|
-
name: "Composite",
|
2725
|
-
className: "HealthcareResultDocumentsItem",
|
2726
|
-
modelProperties: Object.assign(Object.assign({}, HealthcareEntitiesDocumentResult.type.modelProperties), DocumentDetectedLanguage.type.modelProperties)
|
2727
|
-
}
|
2728
|
-
};
|
2729
2705
|
const SentimentResponseDocumentsItem = {
|
2730
2706
|
type: {
|
2731
2707
|
name: "Composite",
|
@@ -2754,10 +2730,10 @@ const PiiResultDocumentsItem = {
|
|
2754
2730
|
modelProperties: Object.assign(Object.assign({}, PiiEntitiesDocumentResult.type.modelProperties), DocumentDetectedLanguage.type.modelProperties)
|
2755
2731
|
}
|
2756
2732
|
};
|
2757
|
-
const
|
2733
|
+
const ExtractedSummaryDocumentResultWithDetectedLanguage = {
|
2758
2734
|
type: {
|
2759
2735
|
name: "Composite",
|
2760
|
-
className: "
|
2736
|
+
className: "ExtractedSummaryDocumentResultWithDetectedLanguage",
|
2761
2737
|
modelProperties: Object.assign(Object.assign({}, ExtractedSummaryDocumentResult.type.modelProperties), DocumentDetectedLanguage.type.modelProperties)
|
2762
2738
|
}
|
2763
2739
|
};
|
@@ -2768,13 +2744,20 @@ const KeyPhraseResultDocumentsItem = {
|
|
2768
2744
|
modelProperties: Object.assign(Object.assign({}, KeyPhrasesDocumentResult.type.modelProperties), DocumentDetectedLanguage.type.modelProperties)
|
2769
2745
|
}
|
2770
2746
|
};
|
2771
|
-
const
|
2747
|
+
const AbstractiveSummaryDocumentResultWithDetectedLanguage = {
|
2772
2748
|
type: {
|
2773
2749
|
name: "Composite",
|
2774
|
-
className: "
|
2750
|
+
className: "AbstractiveSummaryDocumentResultWithDetectedLanguage",
|
2775
2751
|
modelProperties: Object.assign(Object.assign({}, AbstractiveSummaryDocumentResult.type.modelProperties), DocumentDetectedLanguage.type.modelProperties)
|
2776
2752
|
}
|
2777
2753
|
};
|
2754
|
+
const HealthcareResultDocumentsItem = {
|
2755
|
+
type: {
|
2756
|
+
name: "Composite",
|
2757
|
+
className: "HealthcareResultDocumentsItem",
|
2758
|
+
modelProperties: Object.assign(Object.assign({}, HealthcareEntitiesDocumentResult.type.modelProperties), DocumentDetectedLanguageForHealthcare.type.modelProperties)
|
2759
|
+
}
|
2760
|
+
};
|
2778
2761
|
const HealthcareResult = {
|
2779
2762
|
type: {
|
2780
2763
|
name: "Composite",
|
@@ -2882,7 +2865,7 @@ const ExtractiveSummarizationResult = {
|
|
2882
2865
|
element: {
|
2883
2866
|
type: {
|
2884
2867
|
name: "Composite",
|
2885
|
-
className: "
|
2868
|
+
className: "ExtractedSummaryDocumentResultWithDetectedLanguage"
|
2886
2869
|
}
|
2887
2870
|
}
|
2888
2871
|
}
|
@@ -2965,8 +2948,8 @@ const CustomEntitiesLROTask = {
|
|
2965
2948
|
type: {
|
2966
2949
|
name: "Composite",
|
2967
2950
|
className: "CustomEntitiesLROTask",
|
2968
|
-
uberParent: "
|
2969
|
-
polymorphicDiscriminator:
|
2951
|
+
uberParent: "AnalyzeBatchAction",
|
2952
|
+
polymorphicDiscriminator: AnalyzeBatchAction.type.polymorphicDiscriminator,
|
2970
2953
|
modelProperties: Object.assign(Object.assign({}, AnalyzeBatchAction.type.modelProperties), { parameters: {
|
2971
2954
|
serializedName: "parameters",
|
2972
2955
|
type: {
|
@@ -2981,8 +2964,8 @@ const CustomSingleLabelClassificationLROTask = {
|
|
2981
2964
|
type: {
|
2982
2965
|
name: "Composite",
|
2983
2966
|
className: "CustomSingleLabelClassificationLROTask",
|
2984
|
-
uberParent: "
|
2985
|
-
polymorphicDiscriminator:
|
2967
|
+
uberParent: "AnalyzeBatchAction",
|
2968
|
+
polymorphicDiscriminator: AnalyzeBatchAction.type.polymorphicDiscriminator,
|
2986
2969
|
modelProperties: Object.assign(Object.assign({}, AnalyzeBatchAction.type.modelProperties), { parameters: {
|
2987
2970
|
serializedName: "parameters",
|
2988
2971
|
type: {
|
@@ -2997,8 +2980,8 @@ const CustomMultiLabelClassificationLROTask = {
|
|
2997
2980
|
type: {
|
2998
2981
|
name: "Composite",
|
2999
2982
|
className: "CustomMultiLabelClassificationLROTask",
|
3000
|
-
uberParent: "
|
3001
|
-
polymorphicDiscriminator:
|
2983
|
+
uberParent: "AnalyzeBatchAction",
|
2984
|
+
polymorphicDiscriminator: AnalyzeBatchAction.type.polymorphicDiscriminator,
|
3002
2985
|
modelProperties: Object.assign(Object.assign({}, AnalyzeBatchAction.type.modelProperties), { parameters: {
|
3003
2986
|
serializedName: "parameters",
|
3004
2987
|
type: {
|
@@ -3013,8 +2996,8 @@ const HealthcareLROTask = {
|
|
3013
2996
|
type: {
|
3014
2997
|
name: "Composite",
|
3015
2998
|
className: "HealthcareLROTask",
|
3016
|
-
uberParent: "
|
3017
|
-
polymorphicDiscriminator:
|
2999
|
+
uberParent: "AnalyzeBatchAction",
|
3000
|
+
polymorphicDiscriminator: AnalyzeBatchAction.type.polymorphicDiscriminator,
|
3018
3001
|
modelProperties: Object.assign(Object.assign({}, AnalyzeBatchAction.type.modelProperties), { parameters: {
|
3019
3002
|
serializedName: "parameters",
|
3020
3003
|
type: {
|
@@ -3029,8 +3012,8 @@ const SentimentAnalysisLROTask = {
|
|
3029
3012
|
type: {
|
3030
3013
|
name: "Composite",
|
3031
3014
|
className: "SentimentAnalysisLROTask",
|
3032
|
-
uberParent: "
|
3033
|
-
polymorphicDiscriminator:
|
3015
|
+
uberParent: "AnalyzeBatchAction",
|
3016
|
+
polymorphicDiscriminator: AnalyzeBatchAction.type.polymorphicDiscriminator,
|
3034
3017
|
modelProperties: Object.assign(Object.assign({}, AnalyzeBatchAction.type.modelProperties), { parameters: {
|
3035
3018
|
serializedName: "parameters",
|
3036
3019
|
type: {
|
@@ -3045,8 +3028,8 @@ const EntitiesLROTask = {
|
|
3045
3028
|
type: {
|
3046
3029
|
name: "Composite",
|
3047
3030
|
className: "EntitiesLROTask",
|
3048
|
-
uberParent: "
|
3049
|
-
polymorphicDiscriminator:
|
3031
|
+
uberParent: "AnalyzeBatchAction",
|
3032
|
+
polymorphicDiscriminator: AnalyzeBatchAction.type.polymorphicDiscriminator,
|
3050
3033
|
modelProperties: Object.assign(Object.assign({}, AnalyzeBatchAction.type.modelProperties), { parameters: {
|
3051
3034
|
serializedName: "parameters",
|
3052
3035
|
type: {
|
@@ -3061,8 +3044,8 @@ const EntityLinkingLROTask = {
|
|
3061
3044
|
type: {
|
3062
3045
|
name: "Composite",
|
3063
3046
|
className: "EntityLinkingLROTask",
|
3064
|
-
uberParent: "
|
3065
|
-
polymorphicDiscriminator:
|
3047
|
+
uberParent: "AnalyzeBatchAction",
|
3048
|
+
polymorphicDiscriminator: AnalyzeBatchAction.type.polymorphicDiscriminator,
|
3066
3049
|
modelProperties: Object.assign(Object.assign({}, AnalyzeBatchAction.type.modelProperties), { parameters: {
|
3067
3050
|
serializedName: "parameters",
|
3068
3051
|
type: {
|
@@ -3077,8 +3060,8 @@ const PiiLROTask = {
|
|
3077
3060
|
type: {
|
3078
3061
|
name: "Composite",
|
3079
3062
|
className: "PiiLROTask",
|
3080
|
-
uberParent: "
|
3081
|
-
polymorphicDiscriminator:
|
3063
|
+
uberParent: "AnalyzeBatchAction",
|
3064
|
+
polymorphicDiscriminator: AnalyzeBatchAction.type.polymorphicDiscriminator,
|
3082
3065
|
modelProperties: Object.assign(Object.assign({}, AnalyzeBatchAction.type.modelProperties), { parameters: {
|
3083
3066
|
serializedName: "parameters",
|
3084
3067
|
type: {
|
@@ -3093,8 +3076,8 @@ const ExtractiveSummarizationLROTask = {
|
|
3093
3076
|
type: {
|
3094
3077
|
name: "Composite",
|
3095
3078
|
className: "ExtractiveSummarizationLROTask",
|
3096
|
-
uberParent: "
|
3097
|
-
polymorphicDiscriminator:
|
3079
|
+
uberParent: "AnalyzeBatchAction",
|
3080
|
+
polymorphicDiscriminator: AnalyzeBatchAction.type.polymorphicDiscriminator,
|
3098
3081
|
modelProperties: Object.assign(Object.assign({}, AnalyzeBatchAction.type.modelProperties), { parameters: {
|
3099
3082
|
serializedName: "parameters",
|
3100
3083
|
type: {
|
@@ -3109,8 +3092,8 @@ const KeyPhraseLROTask = {
|
|
3109
3092
|
type: {
|
3110
3093
|
name: "Composite",
|
3111
3094
|
className: "KeyPhraseLROTask",
|
3112
|
-
uberParent: "
|
3113
|
-
polymorphicDiscriminator:
|
3095
|
+
uberParent: "AnalyzeBatchAction",
|
3096
|
+
polymorphicDiscriminator: AnalyzeBatchAction.type.polymorphicDiscriminator,
|
3114
3097
|
modelProperties: Object.assign(Object.assign({}, AnalyzeBatchAction.type.modelProperties), { parameters: {
|
3115
3098
|
serializedName: "parameters",
|
3116
3099
|
type: {
|
@@ -3125,8 +3108,8 @@ const AbstractiveSummarizationLROTask = {
|
|
3125
3108
|
type: {
|
3126
3109
|
name: "Composite",
|
3127
3110
|
className: "AbstractiveSummarizationLROTask",
|
3128
|
-
uberParent: "
|
3129
|
-
polymorphicDiscriminator:
|
3111
|
+
uberParent: "AnalyzeBatchAction",
|
3112
|
+
polymorphicDiscriminator: AnalyzeBatchAction.type.polymorphicDiscriminator,
|
3130
3113
|
modelProperties: Object.assign(Object.assign({}, AnalyzeBatchAction.type.modelProperties), { parameters: {
|
3131
3114
|
serializedName: "parameters",
|
3132
3115
|
type: {
|
@@ -3141,8 +3124,8 @@ const EntityRecognitionLROResult = {
|
|
3141
3124
|
type: {
|
3142
3125
|
name: "Composite",
|
3143
3126
|
className: "EntityRecognitionLROResult",
|
3144
|
-
uberParent: "
|
3145
|
-
polymorphicDiscriminator:
|
3127
|
+
uberParent: "AnalyzeTextLROResult",
|
3128
|
+
polymorphicDiscriminator: AnalyzeTextLROResult.type.polymorphicDiscriminator,
|
3146
3129
|
modelProperties: Object.assign(Object.assign({}, AnalyzeTextLROResult.type.modelProperties), { results: {
|
3147
3130
|
serializedName: "results",
|
3148
3131
|
type: {
|
@@ -3157,8 +3140,8 @@ const CustomEntityRecognitionLROResult = {
|
|
3157
3140
|
type: {
|
3158
3141
|
name: "Composite",
|
3159
3142
|
className: "CustomEntityRecognitionLROResult",
|
3160
|
-
uberParent: "
|
3161
|
-
polymorphicDiscriminator:
|
3143
|
+
uberParent: "AnalyzeTextLROResult",
|
3144
|
+
polymorphicDiscriminator: AnalyzeTextLROResult.type.polymorphicDiscriminator,
|
3162
3145
|
modelProperties: Object.assign(Object.assign({}, AnalyzeTextLROResult.type.modelProperties), { results: {
|
3163
3146
|
serializedName: "results",
|
3164
3147
|
type: {
|
@@ -3173,8 +3156,8 @@ const CustomSingleLabelClassificationLROResult = {
|
|
3173
3156
|
type: {
|
3174
3157
|
name: "Composite",
|
3175
3158
|
className: "CustomSingleLabelClassificationLROResult",
|
3176
|
-
uberParent: "
|
3177
|
-
polymorphicDiscriminator:
|
3159
|
+
uberParent: "AnalyzeTextLROResult",
|
3160
|
+
polymorphicDiscriminator: AnalyzeTextLROResult.type.polymorphicDiscriminator,
|
3178
3161
|
modelProperties: Object.assign(Object.assign({}, AnalyzeTextLROResult.type.modelProperties), { results: {
|
3179
3162
|
serializedName: "results",
|
3180
3163
|
type: {
|
@@ -3189,8 +3172,8 @@ const CustomMultiLabelClassificationLROResult = {
|
|
3189
3172
|
type: {
|
3190
3173
|
name: "Composite",
|
3191
3174
|
className: "CustomMultiLabelClassificationLROResult",
|
3192
|
-
uberParent: "
|
3193
|
-
polymorphicDiscriminator:
|
3175
|
+
uberParent: "AnalyzeTextLROResult",
|
3176
|
+
polymorphicDiscriminator: AnalyzeTextLROResult.type.polymorphicDiscriminator,
|
3194
3177
|
modelProperties: Object.assign(Object.assign({}, AnalyzeTextLROResult.type.modelProperties), { results: {
|
3195
3178
|
serializedName: "results",
|
3196
3179
|
type: {
|
@@ -3205,8 +3188,8 @@ const EntityLinkingLROResult = {
|
|
3205
3188
|
type: {
|
3206
3189
|
name: "Composite",
|
3207
3190
|
className: "EntityLinkingLROResult",
|
3208
|
-
uberParent: "
|
3209
|
-
polymorphicDiscriminator:
|
3191
|
+
uberParent: "AnalyzeTextLROResult",
|
3192
|
+
polymorphicDiscriminator: AnalyzeTextLROResult.type.polymorphicDiscriminator,
|
3210
3193
|
modelProperties: Object.assign(Object.assign({}, AnalyzeTextLROResult.type.modelProperties), { results: {
|
3211
3194
|
serializedName: "results",
|
3212
3195
|
type: {
|
@@ -3221,8 +3204,8 @@ const PiiEntityRecognitionLROResult = {
|
|
3221
3204
|
type: {
|
3222
3205
|
name: "Composite",
|
3223
3206
|
className: "PiiEntityRecognitionLROResult",
|
3224
|
-
uberParent: "
|
3225
|
-
polymorphicDiscriminator:
|
3207
|
+
uberParent: "AnalyzeTextLROResult",
|
3208
|
+
polymorphicDiscriminator: AnalyzeTextLROResult.type.polymorphicDiscriminator,
|
3226
3209
|
modelProperties: Object.assign(Object.assign({}, AnalyzeTextLROResult.type.modelProperties), { results: {
|
3227
3210
|
serializedName: "results",
|
3228
3211
|
type: {
|
@@ -3237,8 +3220,8 @@ const ExtractiveSummarizationLROResult = {
|
|
3237
3220
|
type: {
|
3238
3221
|
name: "Composite",
|
3239
3222
|
className: "ExtractiveSummarizationLROResult",
|
3240
|
-
uberParent: "
|
3241
|
-
polymorphicDiscriminator:
|
3223
|
+
uberParent: "AnalyzeTextLROResult",
|
3224
|
+
polymorphicDiscriminator: AnalyzeTextLROResult.type.polymorphicDiscriminator,
|
3242
3225
|
modelProperties: Object.assign(Object.assign({}, AnalyzeTextLROResult.type.modelProperties), { results: {
|
3243
3226
|
serializedName: "results",
|
3244
3227
|
type: {
|
@@ -3253,8 +3236,8 @@ const HealthcareLROResult = {
|
|
3253
3236
|
type: {
|
3254
3237
|
name: "Composite",
|
3255
3238
|
className: "HealthcareLROResult",
|
3256
|
-
uberParent: "
|
3257
|
-
polymorphicDiscriminator:
|
3239
|
+
uberParent: "AnalyzeTextLROResult",
|
3240
|
+
polymorphicDiscriminator: AnalyzeTextLROResult.type.polymorphicDiscriminator,
|
3258
3241
|
modelProperties: Object.assign(Object.assign({}, AnalyzeTextLROResult.type.modelProperties), { results: {
|
3259
3242
|
serializedName: "results",
|
3260
3243
|
type: {
|
@@ -3269,8 +3252,8 @@ const SentimentLROResult = {
|
|
3269
3252
|
type: {
|
3270
3253
|
name: "Composite",
|
3271
3254
|
className: "SentimentLROResult",
|
3272
|
-
uberParent: "
|
3273
|
-
polymorphicDiscriminator:
|
3255
|
+
uberParent: "AnalyzeTextLROResult",
|
3256
|
+
polymorphicDiscriminator: AnalyzeTextLROResult.type.polymorphicDiscriminator,
|
3274
3257
|
modelProperties: Object.assign(Object.assign({}, AnalyzeTextLROResult.type.modelProperties), { results: {
|
3275
3258
|
serializedName: "results",
|
3276
3259
|
type: {
|
@@ -3285,8 +3268,8 @@ const KeyPhraseExtractionLROResult = {
|
|
3285
3268
|
type: {
|
3286
3269
|
name: "Composite",
|
3287
3270
|
className: "KeyPhraseExtractionLROResult",
|
3288
|
-
uberParent: "
|
3289
|
-
polymorphicDiscriminator:
|
3271
|
+
uberParent: "AnalyzeTextLROResult",
|
3272
|
+
polymorphicDiscriminator: AnalyzeTextLROResult.type.polymorphicDiscriminator,
|
3290
3273
|
modelProperties: Object.assign(Object.assign({}, AnalyzeTextLROResult.type.modelProperties), { results: {
|
3291
3274
|
serializedName: "results",
|
3292
3275
|
type: {
|
@@ -3301,8 +3284,8 @@ const AbstractiveSummarizationLROResult = {
|
|
3301
3284
|
type: {
|
3302
3285
|
name: "Composite",
|
3303
3286
|
className: "AbstractiveSummarizationLROResult",
|
3304
|
-
uberParent: "
|
3305
|
-
polymorphicDiscriminator:
|
3287
|
+
uberParent: "AnalyzeTextLROResult",
|
3288
|
+
polymorphicDiscriminator: AnalyzeTextLROResult.type.polymorphicDiscriminator,
|
3306
3289
|
modelProperties: Object.assign(Object.assign({}, AnalyzeTextLROResult.type.modelProperties), { results: {
|
3307
3290
|
serializedName: "results",
|
3308
3291
|
type: {
|
@@ -3572,28 +3555,28 @@ let discriminators = {
|
|
3572
3555
|
"BaseResolution.OrdinalResolution": OrdinalResolution,
|
3573
3556
|
"BaseResolution.TemporalSpanResolution": TemporalSpanResolution,
|
3574
3557
|
"BaseResolution.NumericRangeResolution": NumericRangeResolution,
|
3575
|
-
"
|
3576
|
-
"
|
3577
|
-
"
|
3578
|
-
"
|
3579
|
-
"
|
3580
|
-
"
|
3581
|
-
"
|
3582
|
-
"
|
3583
|
-
"
|
3584
|
-
"
|
3585
|
-
"
|
3586
|
-
"
|
3587
|
-
"
|
3588
|
-
"
|
3589
|
-
"
|
3590
|
-
"
|
3591
|
-
"
|
3592
|
-
"
|
3593
|
-
"
|
3594
|
-
"
|
3595
|
-
"
|
3596
|
-
"
|
3558
|
+
"AnalyzeBatchAction.CustomEntityRecognition": CustomEntitiesLROTask,
|
3559
|
+
"AnalyzeBatchAction.CustomSingleLabelClassification": CustomSingleLabelClassificationLROTask,
|
3560
|
+
"AnalyzeBatchAction.CustomMultiLabelClassification": CustomMultiLabelClassificationLROTask,
|
3561
|
+
"AnalyzeBatchAction.Healthcare": HealthcareLROTask,
|
3562
|
+
"AnalyzeBatchAction.SentimentAnalysis": SentimentAnalysisLROTask,
|
3563
|
+
"AnalyzeBatchAction.EntityRecognition": EntitiesLROTask,
|
3564
|
+
"AnalyzeBatchAction.EntityLinking": EntityLinkingLROTask,
|
3565
|
+
"AnalyzeBatchAction.PiiEntityRecognition": PiiLROTask,
|
3566
|
+
"AnalyzeBatchAction.ExtractiveSummarization": ExtractiveSummarizationLROTask,
|
3567
|
+
"AnalyzeBatchAction.KeyPhraseExtraction": KeyPhraseLROTask,
|
3568
|
+
"AnalyzeBatchAction.AbstractiveSummarization": AbstractiveSummarizationLROTask,
|
3569
|
+
"AnalyzeTextLROResult.EntityRecognitionLROResults": EntityRecognitionLROResult,
|
3570
|
+
"AnalyzeTextLROResult.CustomEntityRecognitionLROResults": CustomEntityRecognitionLROResult,
|
3571
|
+
"AnalyzeTextLROResult.CustomSingleLabelClassificationLROResults": CustomSingleLabelClassificationLROResult,
|
3572
|
+
"AnalyzeTextLROResult.CustomMultiLabelClassificationLROResults": CustomMultiLabelClassificationLROResult,
|
3573
|
+
"AnalyzeTextLROResult.EntityLinkingLROResults": EntityLinkingLROResult,
|
3574
|
+
"AnalyzeTextLROResult.PiiEntityRecognitionLROResults": PiiEntityRecognitionLROResult,
|
3575
|
+
"AnalyzeTextLROResult.ExtractiveSummarizationLROResults": ExtractiveSummarizationLROResult,
|
3576
|
+
"AnalyzeTextLROResult.HealthcareLROResults": HealthcareLROResult,
|
3577
|
+
"AnalyzeTextLROResult.SentimentAnalysisLROResults": SentimentLROResult,
|
3578
|
+
"AnalyzeTextLROResult.KeyPhraseExtractionLROResults": KeyPhraseExtractionLROResult,
|
3579
|
+
"AnalyzeTextLROResult.AbstractiveSummarizationLROResults": AbstractiveSummarizationLROResult
|
3597
3580
|
};
|
3598
3581
|
|
3599
3582
|
var Mappers = /*#__PURE__*/Object.freeze({
|
@@ -3631,6 +3614,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
3631
3614
|
EntityDataSource: EntityDataSource,
|
3632
3615
|
HealthcareRelation: HealthcareRelation,
|
3633
3616
|
HealthcareRelationEntity: HealthcareRelationEntity,
|
3617
|
+
DocumentDetectedLanguageForHealthcare: DocumentDetectedLanguageForHealthcare,
|
3634
3618
|
PreBuiltResult: PreBuiltResult,
|
3635
3619
|
InputError: InputError,
|
3636
3620
|
SentimentConfidenceScores: SentimentConfidenceScores,
|
@@ -3644,7 +3628,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
3644
3628
|
SummarySentence: SummarySentence,
|
3645
3629
|
Pagination: Pagination,
|
3646
3630
|
AbstractiveSummarizationTaskParametersBase: AbstractiveSummarizationTaskParametersBase,
|
3647
|
-
PhraseControl: PhraseControl,
|
3648
3631
|
AbstractiveSummarizationResultBase: AbstractiveSummarizationResultBase,
|
3649
3632
|
AbstractiveSummary: AbstractiveSummary,
|
3650
3633
|
SummaryContext: SummaryContext,
|
@@ -3699,14 +3682,14 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
3699
3682
|
AbstractiveSummaryDocumentResult: AbstractiveSummaryDocumentResult,
|
3700
3683
|
CustomEntitiesResultDocumentsItem: CustomEntitiesResultDocumentsItem,
|
3701
3684
|
CustomLabelClassificationResultDocumentsItem: CustomLabelClassificationResultDocumentsItem,
|
3702
|
-
HealthcareResultDocumentsItem: HealthcareResultDocumentsItem,
|
3703
3685
|
SentimentResponseDocumentsItem: SentimentResponseDocumentsItem,
|
3704
3686
|
EntitiesResultDocumentsItem: EntitiesResultDocumentsItem,
|
3705
3687
|
EntityLinkingResultDocumentsItem: EntityLinkingResultDocumentsItem,
|
3706
3688
|
PiiResultDocumentsItem: PiiResultDocumentsItem,
|
3707
|
-
|
3689
|
+
ExtractedSummaryDocumentResultWithDetectedLanguage: ExtractedSummaryDocumentResultWithDetectedLanguage,
|
3708
3690
|
KeyPhraseResultDocumentsItem: KeyPhraseResultDocumentsItem,
|
3709
|
-
|
3691
|
+
AbstractiveSummaryDocumentResultWithDetectedLanguage: AbstractiveSummaryDocumentResultWithDetectedLanguage,
|
3692
|
+
HealthcareResultDocumentsItem: HealthcareResultDocumentsItem,
|
3710
3693
|
HealthcareResult: HealthcareResult,
|
3711
3694
|
SentimentResponse: SentimentResponse,
|
3712
3695
|
EntitiesResult: EntitiesResult,
|
@@ -4051,6 +4034,18 @@ async function throwError(p) {
|
|
4051
4034
|
throw transformError(e);
|
4052
4035
|
}
|
4053
4036
|
}
|
4037
|
+
function deserializeDetectedLanguage(input) {
|
4038
|
+
function helper(str) {
|
4039
|
+
try {
|
4040
|
+
return JSON.parse(str);
|
4041
|
+
}
|
4042
|
+
catch (e) {
|
4043
|
+
return undefined;
|
4044
|
+
}
|
4045
|
+
}
|
4046
|
+
const obj = helper(input);
|
4047
|
+
return obj !== undefined ? obj : { iso6391Name: input };
|
4048
|
+
}
|
4054
4049
|
function toHealthcareResult(docIds, results) {
|
4055
4050
|
function makeHealthcareEntity(entity) {
|
4056
4051
|
const { dataSources } = entity, rest = tslib.__rest(entity, ["dataSources"]);
|
@@ -4068,9 +4063,11 @@ function toHealthcareResult(docIds, results) {
|
|
4068
4063
|
}
|
4069
4064
|
return transformDocumentResults(docIds, results, {
|
4070
4065
|
processSuccess: (_a) => {
|
4071
|
-
var { entities, relations } = _a, rest = tslib.__rest(_a, ["entities", "relations"]);
|
4066
|
+
var { entities, relations, detectedLanguage } = _a, rest = tslib.__rest(_a, ["entities", "relations", "detectedLanguage"]);
|
4072
4067
|
const newEntities = entities.map(makeHealthcareEntity);
|
4073
|
-
return Object.assign({ entities: newEntities, entityRelations: relations.map(makeHealthcareRelation(newEntities)) },
|
4068
|
+
return Object.assign(Object.assign({ entities: newEntities, entityRelations: relations.map(makeHealthcareRelation(newEntities)) }, (detectedLanguage
|
4069
|
+
? { detectedLanguage: deserializeDetectedLanguage(detectedLanguage) }
|
4070
|
+
: {})), rest);
|
4074
4071
|
},
|
4075
4072
|
});
|
4076
4073
|
}
|
@@ -4430,22 +4427,6 @@ class GeneratedClient extends coreClient__namespace.ServiceClient {
|
|
4430
4427
|
userAgentPrefix
|
4431
4428
|
}, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "{Endpoint}/language" });
|
4432
4429
|
super(optionsWithDefaults);
|
4433
|
-
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
4434
|
-
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
4435
|
-
const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
4436
|
-
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
4437
|
-
if (!bearerTokenAuthenticationPolicyFound) {
|
4438
|
-
this.pipeline.removePolicy({
|
4439
|
-
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
4440
|
-
});
|
4441
|
-
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
4442
|
-
scopes: `${optionsWithDefaults.baseUri}/.default`,
|
4443
|
-
challengeCallbacks: {
|
4444
|
-
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
4445
|
-
}
|
4446
|
-
}));
|
4447
|
-
}
|
4448
|
-
}
|
4449
4430
|
// Parameter assignments
|
4450
4431
|
this.endpoint = endpoint;
|
4451
4432
|
// Assigning values to Constant parameters
|
@@ -5383,28 +5364,28 @@ var KnownFhirVersion;
|
|
5383
5364
|
/** Four01 */
|
5384
5365
|
KnownFhirVersion["Four01"] = "4.0.1";
|
5385
5366
|
})(KnownFhirVersion || (KnownFhirVersion = {}));
|
5386
|
-
/** Known values of {@link
|
5387
|
-
exports.
|
5388
|
-
(function (
|
5367
|
+
/** Known values of {@link HealthcareDocumentType} that the service accepts. */
|
5368
|
+
exports.KnownHealthcareDocumentType = void 0;
|
5369
|
+
(function (KnownHealthcareDocumentType) {
|
5389
5370
|
/** None */
|
5390
|
-
|
5371
|
+
KnownHealthcareDocumentType["None"] = "None";
|
5391
5372
|
/** ClinicalTrial */
|
5392
|
-
|
5373
|
+
KnownHealthcareDocumentType["ClinicalTrial"] = "ClinicalTrial";
|
5393
5374
|
/** DischargeSummary */
|
5394
|
-
|
5375
|
+
KnownHealthcareDocumentType["DischargeSummary"] = "DischargeSummary";
|
5395
5376
|
/** ProgressNote */
|
5396
|
-
|
5377
|
+
KnownHealthcareDocumentType["ProgressNote"] = "ProgressNote";
|
5397
5378
|
/** HistoryAndPhysical */
|
5398
|
-
|
5379
|
+
KnownHealthcareDocumentType["HistoryAndPhysical"] = "HistoryAndPhysical";
|
5399
5380
|
/** Consult */
|
5400
|
-
|
5381
|
+
KnownHealthcareDocumentType["Consult"] = "Consult";
|
5401
5382
|
/** Imaging */
|
5402
|
-
|
5383
|
+
KnownHealthcareDocumentType["Imaging"] = "Imaging";
|
5403
5384
|
/** Pathology */
|
5404
|
-
|
5385
|
+
KnownHealthcareDocumentType["Pathology"] = "Pathology";
|
5405
5386
|
/** ProcedureNote */
|
5406
|
-
|
5407
|
-
})(exports.
|
5387
|
+
KnownHealthcareDocumentType["ProcedureNote"] = "ProcedureNote";
|
5388
|
+
})(exports.KnownHealthcareDocumentType || (exports.KnownHealthcareDocumentType = {}));
|
5408
5389
|
/** Known values of {@link HealthcareEntityCategory} that the service accepts. */
|
5409
5390
|
exports.KnownHealthcareEntityCategory = void 0;
|
5410
5391
|
(function (KnownHealthcareEntityCategory) {
|