@azure/ai-language-text 1.1.0-alpha.20230411.2 → 1.1.0-alpha.20230508.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.
@@ -105,14 +105,6 @@ export declare interface ActionPrebuilt extends ActionCommon {
105
105
  modelVersion?: string;
106
106
  }
107
107
 
108
- /** Represents the Age entity resolution model. */
109
- export declare interface AgeResolution extends BaseResolution, QuantityResolution {
110
- /** Polymorphic discriminator, which specifies the different types this object can be */
111
- resolutionKind: "AgeResolution";
112
- /** The Age Unit of measurement */
113
- unit: AgeUnit;
114
- }
115
-
116
108
  /**
117
109
  * Defines values for AgeUnit. \
118
110
  * {@link KnownAgeUnit} can be used interchangeably with AgeUnit,
@@ -258,14 +250,6 @@ export declare type AnalyzeResult<ActionName extends AnalyzeActionName> = {
258
250
  LanguageDetection: LanguageDetectionResult[];
259
251
  }[ActionName];
260
252
 
261
- /** Represents the area entity resolution model. */
262
- export declare interface AreaResolution extends BaseResolution, QuantityResolution {
263
- /** Polymorphic discriminator, which specifies the different types this object can be */
264
- resolutionKind: "AreaResolution";
265
- /** The area Unit of measurement */
266
- unit: AreaUnit;
267
- }
268
-
269
253
  /**
270
254
  * Defines values for AreaUnit. \
271
255
  * {@link KnownAreaUnit} can be used interchangeably with AreaUnit,
@@ -305,14 +289,6 @@ export declare interface AssessmentSentiment {
305
289
 
306
290
  export { AzureKeyCredential }
307
291
 
308
- /** The abstract base class for entity resolutions. */
309
- export declare interface BaseResolution {
310
- /** Polymorphic discriminator, which specifies the different types this object can be */
311
- resolutionKind: "AgeResolution" | "VolumeResolution" | "SpeedResolution" | "AreaResolution" | "LengthResolution" | "InformationResolution" | "TemperatureResolution" | "WeightResolution" | "CurrencyResolution" | "BooleanResolution" | "DateTimeResolution" | "NumberResolution" | "OrdinalResolution" | "TemporalSpanResolution" | "NumericRangeResolution";
312
- }
313
-
314
- export declare type BaseResolutionUnion = BaseResolution | AgeResolution | VolumeResolution | SpeedResolution | AreaResolution | LengthResolution | InformationResolution | TemperatureResolution | WeightResolution | CurrencyResolution | BooleanResolution | DateTimeResolution | NumberResolution | OrdinalResolution | TemporalSpanResolution | NumericRangeResolution;
315
-
316
292
  /**
317
293
  * The error of an analyze batch action.
318
294
  */
@@ -355,7 +331,7 @@ export declare interface BatchActionSuccessResult<T, Kind extends AnalyzeBatchAc
355
331
  /**
356
332
  * The list of document results.
357
333
  */
358
- readonly results: WithDetectedLanguage<T>[];
334
+ readonly results: T[];
359
335
  /**
360
336
  * When this action was completed by the service.
361
337
  */
@@ -380,13 +356,6 @@ export declare interface BeginAnalyzeBatchOptions extends TextAnalysisOperationO
380
356
  displayName?: string;
381
357
  }
382
358
 
383
- /** A resolution for boolean expressions */
384
- export declare interface BooleanResolution extends BaseResolution {
385
- /** Polymorphic discriminator, which specifies the different types this object can be */
386
- resolutionKind: "BooleanResolution";
387
- value: boolean;
388
- }
389
-
390
359
  /** A classification result from a custom classify document single category action */
391
360
  export declare interface ClassificationCategory {
392
361
  /** Classification type. */
@@ -395,16 +364,6 @@ export declare interface ClassificationCategory {
395
364
  confidenceScore: number;
396
365
  }
397
366
 
398
- /** Represents the currency entity resolution model. */
399
- export declare interface CurrencyResolution extends BaseResolution, QuantityResolution {
400
- /** Polymorphic discriminator, which specifies the different types this object can be */
401
- resolutionKind: "CurrencyResolution";
402
- /** The alphabetic code based on another ISO standard, ISO 3166, which lists the codes for country names. The first two letters of the ISO 4217 three-letter code are the same as the code for the country name, and, where possible, the third letter corresponds to the first letter of the currency name. */
403
- iso4217?: string;
404
- /** The unit of the amount captured in the extracted entity */
405
- unit: string;
406
- }
407
-
408
367
  /**
409
368
  * Custom action metadata.
410
369
  */
@@ -539,20 +498,6 @@ export declare interface CustomSingleLabelClassificationSuccessResult extends Te
539
498
  readonly classifications: ClassificationCategory[];
540
499
  }
541
500
 
542
- /** A resolution for datetime entity instances. */
543
- export declare interface DateTimeResolution extends BaseResolution {
544
- /** Polymorphic discriminator, which specifies the different types this object can be */
545
- resolutionKind: "DateTimeResolution";
546
- /** An extended ISO 8601 date/time representation as described in (https://github.com/Microsoft/Recognizers-Text/blob/master/Patterns/English/English-DateTime.yaml) */
547
- timex: string;
548
- /** The DateTime SubKind */
549
- dateTimeSubKind: DateTimeSubKind;
550
- /** The actual time that the extracted text denote. */
551
- value: string;
552
- /** An optional modifier of a date/time instance. */
553
- modifier?: TemporalModifier;
554
- }
555
-
556
501
  /**
557
502
  * Defines values for DateTimeSubKind. \
558
503
  * {@link KnownDateTimeSubKind} can be used interchangeably with DateTimeSubKind,
@@ -578,12 +523,6 @@ export declare interface DetectedLanguage {
578
523
  script?: ScriptKind;
579
524
  }
580
525
 
581
- /** The auto-detected language of the input document. */
582
- export declare interface DocumentDetectedLanguage {
583
- /** If 'language' is set to 'auto' for the document in the request this field will contain a 2 letter ISO 639-1 representation of the language detected for this document. */
584
- detectedLanguage?: DetectedLanguage;
585
- }
586
-
587
526
  /** Defines values for DocumentSentimentLabel. */
588
527
  export declare type DocumentSentimentLabel = "positive" | "neutral" | "negative" | "mixed";
589
528
 
@@ -713,13 +652,7 @@ export declare interface EntityRecognitionSuccessResult extends TextAnalysisSucc
713
652
  /**
714
653
  * The collection of entities identified in the input document.
715
654
  */
716
- readonly entities: EntityWithResolution[];
717
- }
718
-
719
- /** An entity with resolution. */
720
- export declare interface EntityWithResolution extends Entity {
721
- /** The collection of entity resolution objects. */
722
- resolutions?: BaseResolutionUnion[];
655
+ readonly entities: Entity[];
723
656
  }
724
657
 
725
658
  /** Supported parameters for an Extractive Summarization task. */
@@ -780,21 +713,8 @@ export declare interface ExtractiveSummarizationSuccessResult extends TextAnalys
780
713
  readonly sentences: SummarySentence[];
781
714
  }
782
715
 
783
- /**
784
- * Defines values for FhirVersion. \
785
- * {@link KnownFhirVersion} can be used interchangeably with FhirVersion,
786
- * this enum contains the known values that the service supports.
787
- * ### Known values supported by the service
788
- * **4.0.1**
789
- */
790
- export declare type FhirVersion = string;
791
-
792
716
  /** Supported parameters for a Healthcare task. */
793
717
  export declare interface HealthcareAction extends ActionPrebuilt {
794
- /** The FHIR Spec version that the result will use to format the fhirBundle. For additional information see https://www.hl7.org/fhir/overview.html. */
795
- fhirVersion?: FhirVersion;
796
- /** Document type that can be provided as input for Fhir Documents. Expect to have fhirVersion provided when used. Behavior of using None enum is the same as not using the documentType parameter. */
797
- documentType?: HealthcareDocumentType;
798
718
  /**
799
719
  * Specifies the measurement unit used to calculate the offset and length properties. For a list of possible values, see {@link KnownStringIndexType}.
800
720
  *
@@ -826,23 +746,6 @@ export declare interface HealthcareBatchAction extends AnalyzeBatchActionCommon,
826
746
  */
827
747
  export declare type HealthcareBatchResult = ActionMetadata & BatchActionResult<HealthcareResult, "Healthcare">;
828
748
 
829
- /**
830
- * Defines values for HealthcareDocumentType. \
831
- * {@link KnownHealthcareDocumentType} can be used interchangeably with HealthcareDocumentType,
832
- * this enum contains the known values that the service supports.
833
- * ### Known values supported by the service
834
- * **None** \
835
- * **ClinicalTrial** \
836
- * **DischargeSummary** \
837
- * **ProgressNote** \
838
- * **HistoryAndPhysical** \
839
- * **Consult** \
840
- * **Imaging** \
841
- * **Pathology** \
842
- * **ProcedureNote**
843
- */
844
- export declare type HealthcareDocumentType = string;
845
-
846
749
  /**
847
750
  * A healthcare entity represented as a node in a directed graph where the edges are
848
751
  * a particular type of relationship between the source and target nodes.
@@ -988,19 +891,6 @@ export declare interface HealthcareSuccessResult extends TextAnalysisSuccessResu
988
891
  * Relations between healthcare entities.
989
892
  */
990
893
  readonly entityRelations: HealthcareEntityRelation[];
991
- /**
992
- * JSON bundle containing a FHIR compatible object for consumption in other
993
- * Healthcare tools. For additional information see {@link https://www.hl7.org/fhir/overview.html}.
994
- */
995
- readonly fhirBundle?: Record<string, any>;
996
- }
997
-
998
- /** Represents the information (data) entity resolution model. */
999
- export declare interface InformationResolution extends BaseResolution, QuantityResolution {
1000
- /** Polymorphic discriminator, which specifies the different types this object can be */
1001
- resolutionKind: "InformationResolution";
1002
- /** The information (data) Unit of measurement. */
1003
- unit: InformationUnit;
1004
894
  }
1005
895
 
1006
896
  /**
@@ -1169,36 +1059,6 @@ export declare enum KnownExtractiveSummarizationOrderingCriteria {
1169
1059
  Rank = "Rank"
1170
1060
  }
1171
1061
 
1172
- /**
1173
- * Known values of the {@link HealthcareAction.fhirVersion} parameter.
1174
- */
1175
- export declare enum KnownFhirVersion {
1176
- /** 4.0.1 */
1177
- "4.0.1" = "4.0.1"
1178
- }
1179
-
1180
- /** Known values of {@link HealthcareDocumentType} that the service accepts. */
1181
- export declare enum KnownHealthcareDocumentType {
1182
- /** None */
1183
- None = "None",
1184
- /** ClinicalTrial */
1185
- ClinicalTrial = "ClinicalTrial",
1186
- /** DischargeSummary */
1187
- DischargeSummary = "DischargeSummary",
1188
- /** ProgressNote */
1189
- ProgressNote = "ProgressNote",
1190
- /** HistoryAndPhysical */
1191
- HistoryAndPhysical = "HistoryAndPhysical",
1192
- /** Consult */
1193
- Consult = "Consult",
1194
- /** Imaging */
1195
- Imaging = "Imaging",
1196
- /** Pathology */
1197
- Pathology = "Pathology",
1198
- /** ProcedureNote */
1199
- ProcedureNote = "ProcedureNote"
1200
- }
1201
-
1202
1062
  /** Known values of {@link HealthcareEntityCategory} that the service accepts. */
1203
1063
  export declare enum KnownHealthcareEntityCategory {
1204
1064
  /** BodyStructure */
@@ -1809,40 +1669,6 @@ export declare enum KnownRelativeTo {
1809
1669
  Start = "Start"
1810
1670
  }
1811
1671
 
1812
- /** Known values of {@link ResolutionKind} that the service accepts. */
1813
- export declare enum KnownResolutionKind {
1814
- /** BooleanResolution */
1815
- BooleanResolution = "BooleanResolution",
1816
- /** DateTimeResolution */
1817
- DateTimeResolution = "DateTimeResolution",
1818
- /** NumberResolution */
1819
- NumberResolution = "NumberResolution",
1820
- /** OrdinalResolution */
1821
- OrdinalResolution = "OrdinalResolution",
1822
- /** SpeedResolution */
1823
- SpeedResolution = "SpeedResolution",
1824
- /** WeightResolution */
1825
- WeightResolution = "WeightResolution",
1826
- /** LengthResolution */
1827
- LengthResolution = "LengthResolution",
1828
- /** VolumeResolution */
1829
- VolumeResolution = "VolumeResolution",
1830
- /** AreaResolution */
1831
- AreaResolution = "AreaResolution",
1832
- /** AgeResolution */
1833
- AgeResolution = "AgeResolution",
1834
- /** InformationResolution */
1835
- InformationResolution = "InformationResolution",
1836
- /** TemperatureResolution */
1837
- TemperatureResolution = "TemperatureResolution",
1838
- /** CurrencyResolution */
1839
- CurrencyResolution = "CurrencyResolution",
1840
- /** NumericRangeResolution */
1841
- NumericRangeResolution = "NumericRangeResolution",
1842
- /** TemporalSpanResolution */
1843
- TemporalSpanResolution = "TemporalSpanResolution"
1844
- }
1845
-
1846
1672
  /** Known values of {@link ScriptKind} that the service accepts. */
1847
1673
  export declare enum KnownScriptKind {
1848
1674
  /** Latin */
@@ -2111,14 +1937,6 @@ export declare interface LanguageDetectionSuccessResult extends TextAnalysisSucc
2111
1937
  readonly primaryLanguage: DetectedLanguage;
2112
1938
  }
2113
1939
 
2114
- /** Represents the length entity resolution model. */
2115
- export declare interface LengthResolution extends BaseResolution, QuantityResolution {
2116
- /** Polymorphic discriminator, which specifies the different types this object can be */
2117
- resolutionKind: "LengthResolution";
2118
- /** The length Unit of measurement */
2119
- unit: LengthUnit;
2120
- }
2121
-
2122
1940
  /**
2123
1941
  * Defines values for LengthUnit. \
2124
1942
  * {@link KnownLengthUnit} can be used interchangeably with LengthUnit,
@@ -2188,28 +2006,6 @@ export declare interface Match {
2188
2006
  */
2189
2007
  export declare type NumberKind = string;
2190
2008
 
2191
- /** A resolution for numeric entity instances. */
2192
- export declare interface NumberResolution extends BaseResolution {
2193
- /** Polymorphic discriminator, which specifies the different types this object can be */
2194
- resolutionKind: "NumberResolution";
2195
- /** The type of the extracted number entity. */
2196
- numberKind: NumberKind;
2197
- /** A numeric representation of what the extracted text denotes. */
2198
- value: number;
2199
- }
2200
-
2201
- /** represents the resolution of numeric intervals. */
2202
- export declare interface NumericRangeResolution extends BaseResolution {
2203
- /** Polymorphic discriminator, which specifies the different types this object can be */
2204
- resolutionKind: "NumericRangeResolution";
2205
- /** The kind of range that the resolution object represents. */
2206
- rangeKind: RangeKind;
2207
- /** The beginning value of the interval. */
2208
- minimum: number;
2209
- /** The ending value of the interval. */
2210
- maximum: number;
2211
- }
2212
-
2213
2009
  /**
2214
2010
  * A mined opinion object represents an opinion we've extracted from a sentence.
2215
2011
  * It consists of both a target that these assessments are about, and the actual
@@ -2226,18 +2022,6 @@ export declare interface Opinion {
2226
2022
  readonly assessments: AssessmentSentiment[];
2227
2023
  }
2228
2024
 
2229
- /** A resolution for ordinal numbers entity instances. */
2230
- export declare interface OrdinalResolution extends BaseResolution {
2231
- /** Polymorphic discriminator, which specifies the different types this object can be */
2232
- resolutionKind: "OrdinalResolution";
2233
- /** The offset With respect to the reference (e.g., offset = -1 in "show me the second to last" */
2234
- offset: string;
2235
- /** The reference point that the ordinal number denotes. */
2236
- relativeTo: RelativeTo;
2237
- /** A simple arithmetic expression that the ordinal denotes. */
2238
- value: string;
2239
- }
2240
-
2241
2025
  /**
2242
2026
  * Paged results of the {@link TextAnalysisClient.beginAnalyzeBatch} operation.
2243
2027
  */
@@ -2501,12 +2285,6 @@ export declare interface PollerLike<TState extends OperationState<TResult>, TRes
2501
2285
  sendCancellationRequest: () => Promise<void>;
2502
2286
  }
2503
2287
 
2504
- /** Represents resolutions for quantities. */
2505
- export declare interface QuantityResolution {
2506
- /** The numeric value that the extracted text denotes. */
2507
- value: number;
2508
- }
2509
-
2510
2288
  /**
2511
2289
  * Defines values for RangeKind. \
2512
2290
  * {@link KnownRangeKind} can be used interchangeably with RangeKind,
@@ -2691,14 +2469,6 @@ export declare interface SentimentConfidenceScores {
2691
2469
  negative: number;
2692
2470
  }
2693
2471
 
2694
- /** Represents the speed entity resolution model. */
2695
- export declare interface SpeedResolution extends BaseResolution, QuantityResolution {
2696
- /** Polymorphic discriminator, which specifies the different types this object can be */
2697
- resolutionKind: "SpeedResolution";
2698
- /** The speed Unit of measurement */
2699
- unit: SpeedUnit;
2700
- }
2701
-
2702
2472
  /**
2703
2473
  * Defines values for SpeedUnit. \
2704
2474
  * {@link KnownSpeedUnit} can be used interchangeably with SpeedUnit,
@@ -2791,14 +2561,6 @@ export declare interface TargetSentiment {
2791
2561
  readonly length: number;
2792
2562
  }
2793
2563
 
2794
- /** Represents the temperature entity resolution model. */
2795
- export declare interface TemperatureResolution extends BaseResolution, QuantityResolution {
2796
- /** Polymorphic discriminator, which specifies the different types this object can be */
2797
- resolutionKind: "TemperatureResolution";
2798
- /** The temperature Unit of measurement. */
2799
- unit: TemperatureUnit;
2800
- }
2801
-
2802
2564
  /**
2803
2565
  * Defines values for TemperatureUnit. \
2804
2566
  * {@link KnownTemperatureUnit} can be used interchangeably with TemperatureUnit,
@@ -2838,22 +2600,6 @@ export declare type TemperatureUnit = string;
2838
2600
  */
2839
2601
  export declare type TemporalModifier = string;
2840
2602
 
2841
- /** represents the resolution of a date and/or time span. */
2842
- export declare interface TemporalSpanResolution extends BaseResolution {
2843
- /** Polymorphic discriminator, which specifies the different types this object can be */
2844
- resolutionKind: "TemporalSpanResolution";
2845
- /** An extended ISO 8601 date/time representation as described in (https://github.com/Microsoft/Recognizers-Text/blob/master/Patterns/English/English-DateTime.yaml) */
2846
- begin?: string;
2847
- /** An extended ISO 8601 date/time representation as described in (https://github.com/Microsoft/Recognizers-Text/blob/master/Patterns/English/English-DateTime.yaml) */
2848
- end?: string;
2849
- /** An optional duration value formatted based on the ISO 8601 (https://en.wikipedia.org/wiki/ISO_8601#Durations) */
2850
- duration?: string;
2851
- /** An optional modifier of a date/time instance. */
2852
- modifier?: TemporalModifier;
2853
- /** An optional triplet containing the beginning, the end, and the duration all stated as ISO 8601 formatted strings. */
2854
- timex?: string;
2855
- }
2856
-
2857
2603
  /**
2858
2604
  * A client for interacting with the text analysis features in Azure Cognitive
2859
2605
  * Language Service.
@@ -3459,14 +3205,6 @@ export declare interface TextDocumentStatistics {
3459
3205
  /** Defines values for TokenSentimentLabel. */
3460
3206
  export declare type TokenSentimentLabel = "positive" | "mixed" | "negative";
3461
3207
 
3462
- /** Represents the volume entity resolution model. */
3463
- export declare interface VolumeResolution extends BaseResolution, QuantityResolution {
3464
- /** Polymorphic discriminator, which specifies the different types this object can be */
3465
- resolutionKind: "VolumeResolution";
3466
- /** The Volume Unit of measurement */
3467
- unit: VolumeUnit;
3468
- }
3469
-
3470
3208
  /**
3471
3209
  * Defines values for VolumeUnit. \
3472
3210
  * {@link KnownVolumeUnit} can be used interchangeably with VolumeUnit,
@@ -3513,14 +3251,6 @@ export declare type VolumeUnit = string;
3513
3251
  */
3514
3252
  export declare type WarningCode = string;
3515
3253
 
3516
- /** Represents the weight entity resolution model. */
3517
- export declare interface WeightResolution extends BaseResolution, QuantityResolution {
3518
- /** Polymorphic discriminator, which specifies the different types this object can be */
3519
- resolutionKind: "WeightResolution";
3520
- /** The weight Unit of measurement. */
3521
- unit: WeightUnit;
3522
- }
3523
-
3524
3254
  /**
3525
3255
  * Defines values for WeightUnit. \
3526
3256
  * {@link KnownWeightUnit} can be used interchangeably with WeightUnit,
@@ -3545,12 +3275,4 @@ export declare interface WeightResolution extends BaseResolution, QuantityResolu
3545
3275
  */
3546
3276
  export declare type WeightUnit = string;
3547
3277
 
3548
- /**
3549
- * Document results with potentially automatically detected language.
3550
- */
3551
- export declare type WithDetectedLanguage<T> = T & DocumentDetectedLanguage & {
3552
- /** Indicates whether the default language hint was used */
3553
- isLanguageDefaulted?: boolean;
3554
- };
3555
-
3556
3278
  export { }