@azure/ai-language-text 1.1.0-alpha.20221107.2 → 1.1.0-beta.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +92 -98
- package/dist/index.js.map +1 -1
- package/dist-esm/src/generated/models/index.js +28 -28
- package/dist-esm/src/generated/models/index.js.map +1 -1
- package/dist-esm/src/generated/models/mappers.js +53 -34
- package/dist-esm/src/generated/models/mappers.js.map +1 -1
- package/dist-esm/src/textAnalysisClient.js.map +1 -1
- package/dist-esm/src/transforms.js +4 -30
- package/dist-esm/src/transforms.js.map +1 -1
- package/package.json +5 -5
- package/types/ai-language-text.d.ts +39 -33
package/dist/index.js
CHANGED
@@ -1158,10 +1158,10 @@ const HealthcareRelationEntity = {
|
|
1158
1158
|
}
|
1159
1159
|
}
|
1160
1160
|
};
|
1161
|
-
const
|
1161
|
+
const DocumentDetectedLanguageString = {
|
1162
1162
|
type: {
|
1163
1163
|
name: "Composite",
|
1164
|
-
className: "
|
1164
|
+
className: "DocumentDetectedLanguageString",
|
1165
1165
|
modelProperties: {
|
1166
1166
|
detectedLanguage: {
|
1167
1167
|
serializedName: "detectedLanguage",
|
@@ -1576,6 +1576,21 @@ const Match = {
|
|
1576
1576
|
}
|
1577
1577
|
}
|
1578
1578
|
};
|
1579
|
+
const QuantityResolution = {
|
1580
|
+
type: {
|
1581
|
+
name: "Composite",
|
1582
|
+
className: "QuantityResolution",
|
1583
|
+
modelProperties: {
|
1584
|
+
value: {
|
1585
|
+
serializedName: "value",
|
1586
|
+
required: true,
|
1587
|
+
type: {
|
1588
|
+
name: "Number"
|
1589
|
+
}
|
1590
|
+
}
|
1591
|
+
}
|
1592
|
+
}
|
1593
|
+
};
|
1579
1594
|
const SummarySentence = {
|
1580
1595
|
type: {
|
1581
1596
|
name: "Composite",
|
@@ -1717,21 +1732,6 @@ const SummaryContext = {
|
|
1717
1732
|
}
|
1718
1733
|
}
|
1719
1734
|
};
|
1720
|
-
const QuantityResolution = {
|
1721
|
-
type: {
|
1722
|
-
name: "Composite",
|
1723
|
-
className: "QuantityResolution",
|
1724
|
-
modelProperties: {
|
1725
|
-
value: {
|
1726
|
-
serializedName: "value",
|
1727
|
-
required: true,
|
1728
|
-
type: {
|
1729
|
-
name: "Number"
|
1730
|
-
}
|
1731
|
-
}
|
1732
|
-
}
|
1733
|
-
}
|
1734
|
-
};
|
1735
1735
|
const AnalyzeTextEntityLinkingInput = {
|
1736
1736
|
serializedName: "EntityLinking",
|
1737
1737
|
type: {
|
@@ -2275,7 +2275,7 @@ const CurrencyResolution = {
|
|
2275
2275
|
uberParent: "BaseResolution",
|
2276
2276
|
polymorphicDiscriminator: BaseResolution.type.polymorphicDiscriminator,
|
2277
2277
|
modelProperties: Object.assign(Object.assign(Object.assign({}, BaseResolution.type.modelProperties), QuantityResolution.type.modelProperties), { iso4217: {
|
2278
|
-
serializedName: "
|
2278
|
+
serializedName: "iso4217",
|
2279
2279
|
type: {
|
2280
2280
|
name: "String"
|
2281
2281
|
}
|
@@ -2354,7 +2354,7 @@ const NumberResolution = {
|
|
2354
2354
|
serializedName: "value",
|
2355
2355
|
required: true,
|
2356
2356
|
type: {
|
2357
|
-
name: "
|
2357
|
+
name: "Number"
|
2358
2358
|
}
|
2359
2359
|
} })
|
2360
2360
|
}
|
@@ -2491,7 +2491,7 @@ const ClassificationDocumentResult = {
|
|
2491
2491
|
type: {
|
2492
2492
|
name: "Composite",
|
2493
2493
|
className: "ClassificationDocumentResult",
|
2494
|
-
modelProperties: Object.assign(Object.assign({}, DocumentResult.type.modelProperties), {
|
2494
|
+
modelProperties: Object.assign(Object.assign({}, DocumentResult.type.modelProperties), { classifications: {
|
2495
2495
|
serializedName: "class",
|
2496
2496
|
required: true,
|
2497
2497
|
type: {
|
@@ -2506,6 +2506,25 @@ const ClassificationDocumentResult = {
|
|
2506
2506
|
} })
|
2507
2507
|
}
|
2508
2508
|
};
|
2509
|
+
const DynamicClassificationDocumentResult = {
|
2510
|
+
type: {
|
2511
|
+
name: "Composite",
|
2512
|
+
className: "DynamicClassificationDocumentResult",
|
2513
|
+
modelProperties: Object.assign(Object.assign({}, DocumentResult.type.modelProperties), { classifications: {
|
2514
|
+
serializedName: "classifications",
|
2515
|
+
required: true,
|
2516
|
+
type: {
|
2517
|
+
name: "Sequence",
|
2518
|
+
element: {
|
2519
|
+
type: {
|
2520
|
+
name: "Composite",
|
2521
|
+
className: "ClassificationCategory"
|
2522
|
+
}
|
2523
|
+
}
|
2524
|
+
}
|
2525
|
+
} })
|
2526
|
+
}
|
2527
|
+
};
|
2509
2528
|
const HealthcareEntitiesDocumentResult = {
|
2510
2529
|
type: {
|
2511
2530
|
name: "Composite",
|
@@ -2709,24 +2728,24 @@ const SentimentResponseDocumentsItem = {
|
|
2709
2728
|
modelProperties: Object.assign(Object.assign({}, SentimentDocumentResult.type.modelProperties), DocumentDetectedLanguage.type.modelProperties)
|
2710
2729
|
}
|
2711
2730
|
};
|
2712
|
-
const
|
2731
|
+
const EntitiesResultWithDetectedLanguage = {
|
2713
2732
|
type: {
|
2714
2733
|
name: "Composite",
|
2715
|
-
className: "
|
2734
|
+
className: "EntitiesResultWithDetectedLanguage",
|
2716
2735
|
modelProperties: Object.assign(Object.assign({}, EntitiesDocumentResult.type.modelProperties), DocumentDetectedLanguage.type.modelProperties)
|
2717
2736
|
}
|
2718
2737
|
};
|
2719
|
-
const
|
2738
|
+
const EntityLinkingResultWithDetectedLanguage = {
|
2720
2739
|
type: {
|
2721
2740
|
name: "Composite",
|
2722
|
-
className: "
|
2741
|
+
className: "EntityLinkingResultWithDetectedLanguage",
|
2723
2742
|
modelProperties: Object.assign(Object.assign({}, LinkedEntitiesDocumentResult.type.modelProperties), DocumentDetectedLanguage.type.modelProperties)
|
2724
2743
|
}
|
2725
2744
|
};
|
2726
|
-
const
|
2745
|
+
const PIIResultWithDetectedLanguage = {
|
2727
2746
|
type: {
|
2728
2747
|
name: "Composite",
|
2729
|
-
className: "
|
2748
|
+
className: "PIIResultWithDetectedLanguage",
|
2730
2749
|
modelProperties: Object.assign(Object.assign({}, PiiEntitiesDocumentResult.type.modelProperties), DocumentDetectedLanguage.type.modelProperties)
|
2731
2750
|
}
|
2732
2751
|
};
|
@@ -2751,11 +2770,11 @@ const AbstractiveSummaryDocumentResultWithDetectedLanguage = {
|
|
2751
2770
|
modelProperties: Object.assign(Object.assign({}, AbstractiveSummaryDocumentResult.type.modelProperties), DocumentDetectedLanguage.type.modelProperties)
|
2752
2771
|
}
|
2753
2772
|
};
|
2754
|
-
const
|
2773
|
+
const HealthcareEntitiesDocumentResultWithDocumentDetectedLanguage = {
|
2755
2774
|
type: {
|
2756
2775
|
name: "Composite",
|
2757
|
-
className: "
|
2758
|
-
modelProperties: Object.assign(Object.assign({}, HealthcareEntitiesDocumentResult.type.modelProperties),
|
2776
|
+
className: "HealthcareEntitiesDocumentResultWithDocumentDetectedLanguage",
|
2777
|
+
modelProperties: Object.assign(Object.assign({}, HealthcareEntitiesDocumentResult.type.modelProperties), DocumentDetectedLanguageString.type.modelProperties)
|
2759
2778
|
}
|
2760
2779
|
};
|
2761
2780
|
const HealthcareResult = {
|
@@ -2770,7 +2789,7 @@ const HealthcareResult = {
|
|
2770
2789
|
element: {
|
2771
2790
|
type: {
|
2772
2791
|
name: "Composite",
|
2773
|
-
className: "
|
2792
|
+
className: "HealthcareEntitiesDocumentResultWithDocumentDetectedLanguage"
|
2774
2793
|
}
|
2775
2794
|
}
|
2776
2795
|
}
|
@@ -2808,7 +2827,7 @@ const EntitiesResult = {
|
|
2808
2827
|
element: {
|
2809
2828
|
type: {
|
2810
2829
|
name: "Composite",
|
2811
|
-
className: "
|
2830
|
+
className: "EntitiesResultWithDetectedLanguage"
|
2812
2831
|
}
|
2813
2832
|
}
|
2814
2833
|
}
|
@@ -2827,7 +2846,7 @@ const EntityLinkingResult = {
|
|
2827
2846
|
element: {
|
2828
2847
|
type: {
|
2829
2848
|
name: "Composite",
|
2830
|
-
className: "
|
2849
|
+
className: "EntityLinkingResultWithDetectedLanguage"
|
2831
2850
|
}
|
2832
2851
|
}
|
2833
2852
|
}
|
@@ -2846,7 +2865,7 @@ const PiiResult = {
|
|
2846
2865
|
element: {
|
2847
2866
|
type: {
|
2848
2867
|
name: "Composite",
|
2849
|
-
className: "
|
2868
|
+
className: "PIIResultWithDetectedLanguage"
|
2850
2869
|
}
|
2851
2870
|
}
|
2852
2871
|
}
|
@@ -3489,7 +3508,7 @@ const DynamicClassificationResultDocumentsItem = {
|
|
3489
3508
|
type: {
|
3490
3509
|
name: "Composite",
|
3491
3510
|
className: "DynamicClassificationResultDocumentsItem",
|
3492
|
-
modelProperties: Object.assign({},
|
3511
|
+
modelProperties: Object.assign({}, DynamicClassificationDocumentResult.type.modelProperties)
|
3493
3512
|
}
|
3494
3513
|
};
|
3495
3514
|
const GeneratedClientAnalyzeBatchHeaders = {
|
@@ -3614,7 +3633,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
3614
3633
|
EntityDataSource: EntityDataSource,
|
3615
3634
|
HealthcareRelation: HealthcareRelation,
|
3616
3635
|
HealthcareRelationEntity: HealthcareRelationEntity,
|
3617
|
-
|
3636
|
+
DocumentDetectedLanguageString: DocumentDetectedLanguageString,
|
3618
3637
|
PreBuiltResult: PreBuiltResult,
|
3619
3638
|
InputError: InputError,
|
3620
3639
|
SentimentConfidenceScores: SentimentConfidenceScores,
|
@@ -3625,13 +3644,13 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
3625
3644
|
AssessmentSentiment: AssessmentSentiment,
|
3626
3645
|
LinkedEntity: LinkedEntity,
|
3627
3646
|
Match: Match,
|
3647
|
+
QuantityResolution: QuantityResolution,
|
3628
3648
|
SummarySentence: SummarySentence,
|
3629
3649
|
Pagination: Pagination,
|
3630
3650
|
AbstractiveSummarizationTaskParametersBase: AbstractiveSummarizationTaskParametersBase,
|
3631
3651
|
AbstractiveSummarizationResultBase: AbstractiveSummarizationResultBase,
|
3632
3652
|
AbstractiveSummary: AbstractiveSummary,
|
3633
3653
|
SummaryContext: SummaryContext,
|
3634
|
-
QuantityResolution: QuantityResolution,
|
3635
3654
|
AnalyzeTextEntityLinkingInput: AnalyzeTextEntityLinkingInput,
|
3636
3655
|
AnalyzeTextEntityRecognitionInput: AnalyzeTextEntityRecognitionInput,
|
3637
3656
|
AnalyzeTextKeyPhraseExtractionInput: AnalyzeTextKeyPhraseExtractionInput,
|
@@ -3672,6 +3691,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
3672
3691
|
EntityWithResolution: EntityWithResolution,
|
3673
3692
|
EntitiesDocumentResult: EntitiesDocumentResult,
|
3674
3693
|
ClassificationDocumentResult: ClassificationDocumentResult,
|
3694
|
+
DynamicClassificationDocumentResult: DynamicClassificationDocumentResult,
|
3675
3695
|
HealthcareEntitiesDocumentResult: HealthcareEntitiesDocumentResult,
|
3676
3696
|
SentimentDocumentResult: SentimentDocumentResult,
|
3677
3697
|
LinkedEntitiesDocumentResult: LinkedEntitiesDocumentResult,
|
@@ -3683,13 +3703,13 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
3683
3703
|
CustomEntitiesResultDocumentsItem: CustomEntitiesResultDocumentsItem,
|
3684
3704
|
CustomLabelClassificationResultDocumentsItem: CustomLabelClassificationResultDocumentsItem,
|
3685
3705
|
SentimentResponseDocumentsItem: SentimentResponseDocumentsItem,
|
3686
|
-
|
3687
|
-
|
3688
|
-
|
3706
|
+
EntitiesResultWithDetectedLanguage: EntitiesResultWithDetectedLanguage,
|
3707
|
+
EntityLinkingResultWithDetectedLanguage: EntityLinkingResultWithDetectedLanguage,
|
3708
|
+
PIIResultWithDetectedLanguage: PIIResultWithDetectedLanguage,
|
3689
3709
|
ExtractedSummaryDocumentResultWithDetectedLanguage: ExtractedSummaryDocumentResultWithDetectedLanguage,
|
3690
3710
|
KeyPhraseResultDocumentsItem: KeyPhraseResultDocumentsItem,
|
3691
3711
|
AbstractiveSummaryDocumentResultWithDetectedLanguage: AbstractiveSummaryDocumentResultWithDetectedLanguage,
|
3692
|
-
|
3712
|
+
HealthcareEntitiesDocumentResultWithDocumentDetectedLanguage: HealthcareEntitiesDocumentResultWithDocumentDetectedLanguage,
|
3693
3713
|
HealthcareResult: HealthcareResult,
|
3694
3714
|
SentimentResponse: SentimentResponse,
|
3695
3715
|
EntitiesResult: EntitiesResult,
|
@@ -3891,11 +3911,7 @@ function toSentimentAnalysisResult(docIds, results) {
|
|
3891
3911
|
});
|
3892
3912
|
}
|
3893
3913
|
function toDynamicClassificationResult(docIds, results) {
|
3894
|
-
return transformDocumentResults(docIds, results
|
3895
|
-
// FIXME: Fixing a service bug, see https://github.com/Azure/azure-sdk-for-js/issues/23617
|
3896
|
-
processSuccess: ({ class: classes, id, warnings, statistics, classifications, }) => (Object.assign({ id,
|
3897
|
-
warnings, classifications: classes ? classes : classifications !== null && classifications !== void 0 ? classifications : [] }, (statistics ? { statistics } : {}))),
|
3898
|
-
});
|
3914
|
+
return transformDocumentResults(docIds, results);
|
3899
3915
|
}
|
3900
3916
|
/**
|
3901
3917
|
* Converts a sentence sentiment object returned by the service to another that
|
@@ -4034,18 +4050,6 @@ async function throwError(p) {
|
|
4034
4050
|
throw transformError(e);
|
4035
4051
|
}
|
4036
4052
|
}
|
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
|
-
}
|
4049
4053
|
function toHealthcareResult(docIds, results) {
|
4050
4054
|
function makeHealthcareEntity(entity) {
|
4051
4055
|
const { dataSources } = entity, rest = tslib.__rest(entity, ["dataSources"]);
|
@@ -4065,17 +4069,7 @@ function toHealthcareResult(docIds, results) {
|
|
4065
4069
|
processSuccess: (_a) => {
|
4066
4070
|
var { entities, relations, detectedLanguage } = _a, rest = tslib.__rest(_a, ["entities", "relations", "detectedLanguage"]);
|
4067
4071
|
const newEntities = entities.map(makeHealthcareEntity);
|
4068
|
-
return Object.assign(Object.assign({ entities: newEntities, entityRelations: relations.map(makeHealthcareRelation(newEntities)) }, (detectedLanguage
|
4069
|
-
? { detectedLanguage: deserializeDetectedLanguage(detectedLanguage) }
|
4070
|
-
: {})), rest);
|
4071
|
-
},
|
4072
|
-
});
|
4073
|
-
}
|
4074
|
-
function toCustomSingleLabelClassificationResult(docIds, results) {
|
4075
|
-
return transformDocumentResults(docIds, results, {
|
4076
|
-
processSuccess: (_a) => {
|
4077
|
-
var { class: classification } = _a, rest = tslib.__rest(_a, ["class"]);
|
4078
|
-
return Object.assign({ classifications: classification }, rest);
|
4072
|
+
return Object.assign(Object.assign({ entities: newEntities, entityRelations: relations.map(makeHealthcareRelation(newEntities)) }, (detectedLanguage ? { detectedLanguage: { iso6391Name: detectedLanguage } } : {})), rest);
|
4079
4073
|
},
|
4080
4074
|
});
|
4081
4075
|
}
|
@@ -4125,13 +4119,13 @@ function transformAnalyzeBatchResults(docIds, response = []) {
|
|
4125
4119
|
case "CustomSingleLabelClassificationLROResults": {
|
4126
4120
|
const { results } = actionData;
|
4127
4121
|
const { deploymentName, projectName, statistics } = results;
|
4128
|
-
return Object.assign(Object.assign(Object.assign({ kind: "CustomSingleLabelClassification", results:
|
4122
|
+
return Object.assign(Object.assign(Object.assign({ kind: "CustomSingleLabelClassification", results: transformDocumentResults(docIds, results), completedOn }, (actionName ? { actionName } : {})), (statistics ? { statistics } : {})), { deploymentName,
|
4129
4123
|
projectName });
|
4130
4124
|
}
|
4131
4125
|
case "CustomMultiLabelClassificationLROResults": {
|
4132
4126
|
const { results } = actionData;
|
4133
4127
|
const { deploymentName, projectName, statistics } = results;
|
4134
|
-
return Object.assign(Object.assign(Object.assign({ kind: "CustomMultiLabelClassification", results:
|
4128
|
+
return Object.assign(Object.assign(Object.assign({ kind: "CustomMultiLabelClassification", results: transformDocumentResults(docIds, results), completedOn }, (actionName ? { actionName } : {})), (statistics ? { statistics } : {})), { deploymentName,
|
4135
4129
|
projectName });
|
4136
4130
|
}
|
4137
4131
|
case "ExtractiveSummarizationLROResults": {
|
@@ -5489,14 +5483,6 @@ exports.KnownRelationType = void 0;
|
|
5489
5483
|
/** ValueOfExamination */
|
5490
5484
|
KnownRelationType["ValueOfExamination"] = "ValueOfExamination";
|
5491
5485
|
})(exports.KnownRelationType || (exports.KnownRelationType = {}));
|
5492
|
-
/** Known values of {@link ExtractiveSummarizationOrderingCriteria} that the service accepts. */
|
5493
|
-
exports.KnownExtractiveSummarizationOrderingCriteria = void 0;
|
5494
|
-
(function (KnownExtractiveSummarizationOrderingCriteria) {
|
5495
|
-
/** Indicates that results should be sorted in order of appearance in the text. */
|
5496
|
-
KnownExtractiveSummarizationOrderingCriteria["Offset"] = "Offset";
|
5497
|
-
/** Indicates that results should be sorted in order of importance (i.e. rank score) according to the model. */
|
5498
|
-
KnownExtractiveSummarizationOrderingCriteria["Rank"] = "Rank";
|
5499
|
-
})(exports.KnownExtractiveSummarizationOrderingCriteria || (exports.KnownExtractiveSummarizationOrderingCriteria = {}));
|
5500
5486
|
/** Known values of {@link AgeUnit} that the service accepts. */
|
5501
5487
|
exports.KnownAgeUnit = void 0;
|
5502
5488
|
(function (KnownAgeUnit) {
|
@@ -5576,32 +5562,32 @@ exports.KnownSpeedUnit = void 0;
|
|
5576
5562
|
(function (KnownSpeedUnit) {
|
5577
5563
|
/** Unspecified */
|
5578
5564
|
KnownSpeedUnit["Unspecified"] = "Unspecified";
|
5579
|
-
/**
|
5580
|
-
KnownSpeedUnit["
|
5581
|
-
/**
|
5582
|
-
KnownSpeedUnit["
|
5583
|
-
/**
|
5584
|
-
KnownSpeedUnit["
|
5585
|
-
/**
|
5586
|
-
KnownSpeedUnit["
|
5587
|
-
/**
|
5588
|
-
KnownSpeedUnit["
|
5565
|
+
/** MeterPerSecond */
|
5566
|
+
KnownSpeedUnit["MeterPerSecond"] = "MeterPerSecond";
|
5567
|
+
/** KilometerPerHour */
|
5568
|
+
KnownSpeedUnit["KilometerPerHour"] = "KilometerPerHour";
|
5569
|
+
/** KilometerPerMinute */
|
5570
|
+
KnownSpeedUnit["KilometerPerMinute"] = "KilometerPerMinute";
|
5571
|
+
/** KilometerPerSecond */
|
5572
|
+
KnownSpeedUnit["KilometerPerSecond"] = "KilometerPerSecond";
|
5573
|
+
/** MilePerHour */
|
5574
|
+
KnownSpeedUnit["MilePerHour"] = "MilePerHour";
|
5589
5575
|
/** Knot */
|
5590
5576
|
KnownSpeedUnit["Knot"] = "Knot";
|
5591
5577
|
/** FootPerSecond */
|
5592
5578
|
KnownSpeedUnit["FootPerSecond"] = "FootPerSecond";
|
5593
5579
|
/** FootPerMinute */
|
5594
5580
|
KnownSpeedUnit["FootPerMinute"] = "FootPerMinute";
|
5595
|
-
/**
|
5596
|
-
KnownSpeedUnit["
|
5597
|
-
/**
|
5598
|
-
KnownSpeedUnit["
|
5599
|
-
/**
|
5600
|
-
KnownSpeedUnit["
|
5601
|
-
/**
|
5602
|
-
KnownSpeedUnit["
|
5603
|
-
/**
|
5604
|
-
KnownSpeedUnit["
|
5581
|
+
/** YardPerMinute */
|
5582
|
+
KnownSpeedUnit["YardPerMinute"] = "YardPerMinute";
|
5583
|
+
/** YardPerSecond */
|
5584
|
+
KnownSpeedUnit["YardPerSecond"] = "YardPerSecond";
|
5585
|
+
/** MeterPerMillisecond */
|
5586
|
+
KnownSpeedUnit["MeterPerMillisecond"] = "MeterPerMillisecond";
|
5587
|
+
/** CentimeterPerMillisecond */
|
5588
|
+
KnownSpeedUnit["CentimeterPerMillisecond"] = "CentimeterPerMillisecond";
|
5589
|
+
/** KilometerPerMillisecond */
|
5590
|
+
KnownSpeedUnit["KilometerPerMillisecond"] = "KilometerPerMillisecond";
|
5605
5591
|
})(exports.KnownSpeedUnit || (exports.KnownSpeedUnit = {}));
|
5606
5592
|
/** Known values of {@link AreaUnit} that the service accepts. */
|
5607
5593
|
exports.KnownAreaUnit = void 0;
|
@@ -5855,6 +5841,14 @@ exports.KnownRangeKind = void 0;
|
|
5855
5841
|
/** Currency */
|
5856
5842
|
KnownRangeKind["Currency"] = "Currency";
|
5857
5843
|
})(exports.KnownRangeKind || (exports.KnownRangeKind = {}));
|
5844
|
+
/** Known values of {@link ExtractiveSummarizationOrderingCriteria} that the service accepts. */
|
5845
|
+
exports.KnownExtractiveSummarizationOrderingCriteria = void 0;
|
5846
|
+
(function (KnownExtractiveSummarizationOrderingCriteria) {
|
5847
|
+
/** Indicates that results should be sorted in order of appearance in the text. */
|
5848
|
+
KnownExtractiveSummarizationOrderingCriteria["Offset"] = "Offset";
|
5849
|
+
/** Indicates that results should be sorted in order of importance (i.e. rank score) according to the model. */
|
5850
|
+
KnownExtractiveSummarizationOrderingCriteria["Rank"] = "Rank";
|
5851
|
+
})(exports.KnownExtractiveSummarizationOrderingCriteria || (exports.KnownExtractiveSummarizationOrderingCriteria = {}));
|
5858
5852
|
|
5859
5853
|
// Copyright (c) Microsoft Corporation.
|
5860
5854
|
/**
|