@azure/ai-language-text 1.0.0-alpha.20220816.1 → 1.0.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.
@@ -274,11 +274,11 @@ export const JobState = {
274
274
  serializedName: "jobId",
275
275
  required: true,
276
276
  type: {
277
- name: "Uuid"
277
+ name: "String"
278
278
  }
279
279
  },
280
280
  modifiedOn: {
281
- serializedName: "lastUpdateDateTime",
281
+ serializedName: "lastUpdatedDateTime",
282
282
  required: true,
283
283
  type: {
284
284
  name: "DateTime"
@@ -288,16 +288,7 @@ export const JobState = {
288
288
  serializedName: "status",
289
289
  required: true,
290
290
  type: {
291
- name: "Enum",
292
- allowedValues: [
293
- "notStarted",
294
- "running",
295
- "succeeded",
296
- "partiallySucceeded",
297
- "failed",
298
- "cancelled",
299
- "cancelling"
300
- ]
291
+ name: "String"
301
292
  }
302
293
  },
303
294
  errors: {
@@ -400,16 +391,7 @@ export const TaskState = {
400
391
  serializedName: "status",
401
392
  required: true,
402
393
  type: {
403
- name: "Enum",
404
- allowedValues: [
405
- "notStarted",
406
- "running",
407
- "succeeded",
408
- "partiallySucceeded",
409
- "failed",
410
- "cancelled",
411
- "cancelling"
412
- ]
394
+ name: "String"
413
395
  }
414
396
  }
415
397
  }
@@ -1306,42 +1288,6 @@ export const Match = {
1306
1288
  }
1307
1289
  }
1308
1290
  };
1309
- export const SummarySentence = {
1310
- type: {
1311
- name: "Composite",
1312
- className: "SummarySentence",
1313
- modelProperties: {
1314
- text: {
1315
- serializedName: "text",
1316
- required: true,
1317
- type: {
1318
- name: "String"
1319
- }
1320
- },
1321
- rankScore: {
1322
- serializedName: "rankScore",
1323
- required: true,
1324
- type: {
1325
- name: "Number"
1326
- }
1327
- },
1328
- offset: {
1329
- serializedName: "offset",
1330
- required: true,
1331
- type: {
1332
- name: "Number"
1333
- }
1334
- },
1335
- length: {
1336
- serializedName: "length",
1337
- required: true,
1338
- type: {
1339
- name: "Number"
1340
- }
1341
- }
1342
- }
1343
- }
1344
- };
1345
1291
  export const DetectedLanguage = {
1346
1292
  type: {
1347
1293
  name: "Composite",
@@ -1385,63 +1331,6 @@ export const Pagination = {
1385
1331
  }
1386
1332
  }
1387
1333
  };
1388
- export const JobMetadata = {
1389
- type: {
1390
- name: "Composite",
1391
- className: "JobMetadata",
1392
- modelProperties: {
1393
- displayName: {
1394
- serializedName: "displayName",
1395
- type: {
1396
- name: "String"
1397
- }
1398
- },
1399
- createdDateTime: {
1400
- serializedName: "createdDateTime",
1401
- required: true,
1402
- type: {
1403
- name: "DateTime"
1404
- }
1405
- },
1406
- expirationDateTime: {
1407
- serializedName: "expirationDateTime",
1408
- type: {
1409
- name: "DateTime"
1410
- }
1411
- },
1412
- jobId: {
1413
- serializedName: "jobId",
1414
- required: true,
1415
- type: {
1416
- name: "Uuid"
1417
- }
1418
- },
1419
- lastUpdateDateTime: {
1420
- serializedName: "lastUpdateDateTime",
1421
- required: true,
1422
- type: {
1423
- name: "DateTime"
1424
- }
1425
- },
1426
- status: {
1427
- serializedName: "status",
1428
- required: true,
1429
- type: {
1430
- name: "Enum",
1431
- allowedValues: [
1432
- "notStarted",
1433
- "running",
1434
- "succeeded",
1435
- "partiallySucceeded",
1436
- "failed",
1437
- "cancelled",
1438
- "cancelling"
1439
- ]
1440
- }
1441
- }
1442
- }
1443
- }
1444
- };
1445
1334
  export const JobErrors = {
1446
1335
  type: {
1447
1336
  name: "Composite",
@@ -1862,25 +1751,6 @@ export const PiiResult = {
1862
1751
  } })
1863
1752
  }
1864
1753
  };
1865
- export const ExtractiveSummarizationResult = {
1866
- type: {
1867
- name: "Composite",
1868
- className: "ExtractiveSummarizationResult",
1869
- modelProperties: Object.assign(Object.assign({}, PreBuiltResult.type.modelProperties), { documents: {
1870
- serializedName: "documents",
1871
- required: true,
1872
- type: {
1873
- name: "Sequence",
1874
- element: {
1875
- type: {
1876
- name: "Composite",
1877
- className: "ExtractiveSummarizationResultDocumentsItem"
1878
- }
1879
- }
1880
- }
1881
- } })
1882
- }
1883
- };
1884
1754
  export const KeyPhraseResult = {
1885
1755
  type: {
1886
1756
  name: "Composite",
@@ -1938,10 +1808,10 @@ export const CustomEntitiesResult = {
1938
1808
  } })
1939
1809
  }
1940
1810
  };
1941
- export const CustomSingleLabelClassificationResult = {
1811
+ export const CustomLabelClassificationResult = {
1942
1812
  type: {
1943
1813
  name: "Composite",
1944
- className: "CustomSingleLabelClassificationResult",
1814
+ className: "CustomLabelClassificationResult",
1945
1815
  modelProperties: Object.assign(Object.assign({}, CustomResult.type.modelProperties), { documents: {
1946
1816
  serializedName: "documents",
1947
1817
  required: true,
@@ -1950,26 +1820,7 @@ export const CustomSingleLabelClassificationResult = {
1950
1820
  element: {
1951
1821
  type: {
1952
1822
  name: "Composite",
1953
- className: "CustomSingleLabelClassificationResultDocumentsItem"
1954
- }
1955
- }
1956
- }
1957
- } })
1958
- }
1959
- };
1960
- export const CustomMultiLabelClassificationResult = {
1961
- type: {
1962
- name: "Composite",
1963
- className: "CustomMultiLabelClassificationResult",
1964
- modelProperties: Object.assign(Object.assign({}, CustomResult.type.modelProperties), { documents: {
1965
- serializedName: "documents",
1966
- required: true,
1967
- type: {
1968
- name: "Sequence",
1969
- element: {
1970
- type: {
1971
- name: "Composite",
1972
- className: "CustomMultiLabelClassificationResultDocumentsItem"
1823
+ className: "CustomLabelClassificationResultDocumentsItem"
1973
1824
  }
1974
1825
  }
1975
1826
  }
@@ -1995,24 +1846,11 @@ export const EntitiesDocumentResult = {
1995
1846
  } })
1996
1847
  }
1997
1848
  };
1998
- export const SingleClassificationDocumentResult = {
1999
- type: {
2000
- name: "Composite",
2001
- className: "SingleClassificationDocumentResult",
2002
- modelProperties: Object.assign(Object.assign({}, DocumentResult.type.modelProperties), { classification: {
2003
- serializedName: "class",
2004
- type: {
2005
- name: "Composite",
2006
- className: "ClassificationCategory"
2007
- }
2008
- } })
2009
- }
2010
- };
2011
- export const MultiClassificationDocumentResult = {
1849
+ export const ClassificationDocumentResult = {
2012
1850
  type: {
2013
1851
  name: "Composite",
2014
- className: "MultiClassificationDocumentResult",
2015
- modelProperties: Object.assign(Object.assign({}, DocumentResult.type.modelProperties), { classifications: {
1852
+ className: "ClassificationDocumentResult",
1853
+ modelProperties: Object.assign(Object.assign({}, DocumentResult.type.modelProperties), { class: {
2016
1854
  serializedName: "class",
2017
1855
  required: true,
2018
1856
  type: {
@@ -2055,12 +1893,6 @@ export const HealthcareEntitiesDocumentResult = {
2055
1893
  }
2056
1894
  }
2057
1895
  }
2058
- }, fhirBundle: {
2059
- serializedName: "fhirBundle",
2060
- type: {
2061
- name: "Dictionary",
2062
- value: { type: { name: "any" } }
2063
- }
2064
1896
  } })
2065
1897
  }
2066
1898
  };
@@ -2140,25 +1972,6 @@ export const PiiEntitiesDocumentResult = {
2140
1972
  } })
2141
1973
  }
2142
1974
  };
2143
- export const ExtractedSummaryDocumentResult = {
2144
- type: {
2145
- name: "Composite",
2146
- className: "ExtractedSummaryDocumentResult",
2147
- modelProperties: Object.assign(Object.assign({}, DocumentResult.type.modelProperties), { sentences: {
2148
- serializedName: "sentences",
2149
- required: true,
2150
- type: {
2151
- name: "Sequence",
2152
- element: {
2153
- type: {
2154
- name: "Composite",
2155
- className: "SummarySentence"
2156
- }
2157
- }
2158
- }
2159
- } })
2160
- }
2161
- };
2162
1975
  export const KeyPhrasesDocumentResult = {
2163
1976
  type: {
2164
1977
  name: "Composite",
@@ -2318,22 +2131,6 @@ export const PiiLROTask = {
2318
2131
  } })
2319
2132
  }
2320
2133
  };
2321
- export const ExtractiveSummarizationLROTask = {
2322
- serializedName: "ExtractiveSummarization",
2323
- type: {
2324
- name: "Composite",
2325
- className: "ExtractiveSummarizationLROTask",
2326
- uberParent: "BatchActionState",
2327
- polymorphicDiscriminator: BatchActionState.type.polymorphicDiscriminator,
2328
- modelProperties: Object.assign(Object.assign({}, AnalyzeBatchAction.type.modelProperties), { parameters: {
2329
- serializedName: "parameters",
2330
- type: {
2331
- name: "Composite",
2332
- className: "ExtractiveSummarizationAction"
2333
- }
2334
- } })
2335
- }
2336
- };
2337
2134
  export const KeyPhraseLROTask = {
2338
2135
  serializedName: "KeyPhraseExtraction",
2339
2136
  type: {
@@ -2393,7 +2190,7 @@ export const CustomSingleLabelClassificationLROResult = {
2393
2190
  serializedName: "results",
2394
2191
  type: {
2395
2192
  name: "Composite",
2396
- className: "CustomSingleLabelClassificationResult"
2193
+ className: "CustomLabelClassificationResult"
2397
2194
  }
2398
2195
  } })
2399
2196
  }
@@ -2409,7 +2206,7 @@ export const CustomMultiLabelClassificationLROResult = {
2409
2206
  serializedName: "results",
2410
2207
  type: {
2411
2208
  name: "Composite",
2412
- className: "CustomMultiLabelClassificationResult"
2209
+ className: "CustomLabelClassificationResult"
2413
2210
  }
2414
2211
  } })
2415
2212
  }
@@ -2446,22 +2243,6 @@ export const PiiEntityRecognitionLROResult = {
2446
2243
  } })
2447
2244
  }
2448
2245
  };
2449
- export const ExtractiveSummarizationLROResult = {
2450
- serializedName: "ExtractiveSummarizationLROResults",
2451
- type: {
2452
- name: "Composite",
2453
- className: "ExtractiveSummarizationLROResult",
2454
- uberParent: "TaskState",
2455
- polymorphicDiscriminator: TaskState.type.polymorphicDiscriminator,
2456
- modelProperties: Object.assign(Object.assign({}, AnalyzeTextLROResult.type.modelProperties), { results: {
2457
- serializedName: "results",
2458
- type: {
2459
- name: "Composite",
2460
- className: "ExtractiveSummarizationResult"
2461
- }
2462
- } })
2463
- }
2464
- };
2465
2246
  export const HealthcareLROResult = {
2466
2247
  serializedName: "HealthcareLROResults",
2467
2248
  type: {
@@ -2605,37 +2386,7 @@ export const HealthcareAction = {
2605
2386
  type: {
2606
2387
  name: "Composite",
2607
2388
  className: "HealthcareAction",
2608
- modelProperties: Object.assign(Object.assign({}, ActionPrebuilt.type.modelProperties), { fhirVersion: {
2609
- serializedName: "fhirVersion",
2610
- type: {
2611
- name: "String"
2612
- }
2613
- }, stringIndexType: {
2614
- defaultValue: "Utf16CodeUnit",
2615
- serializedName: "stringIndexType",
2616
- type: {
2617
- name: "String"
2618
- }
2619
- } })
2620
- }
2621
- };
2622
- export const ExtractiveSummarizationAction = {
2623
- type: {
2624
- name: "Composite",
2625
- className: "ExtractiveSummarizationAction",
2626
- modelProperties: Object.assign(Object.assign({}, ActionPrebuilt.type.modelProperties), { maxSentenceCount: {
2627
- defaultValue: 3,
2628
- serializedName: "sentenceCount",
2629
- type: {
2630
- name: "Number"
2631
- }
2632
- }, orderBy: {
2633
- defaultValue: "Offset",
2634
- serializedName: "sortBy",
2635
- type: {
2636
- name: "String"
2637
- }
2638
- }, stringIndexType: {
2389
+ modelProperties: Object.assign(Object.assign({}, ActionPrebuilt.type.modelProperties), { stringIndexType: {
2639
2390
  defaultValue: "Utf16CodeUnit",
2640
2391
  serializedName: "stringIndexType",
2641
2392
  type: {
@@ -2685,18 +2436,11 @@ export const EntitiesResultDocumentsItem = {
2685
2436
  modelProperties: Object.assign({}, EntitiesDocumentResult.type.modelProperties)
2686
2437
  }
2687
2438
  };
2688
- export const CustomSingleLabelClassificationResultDocumentsItem = {
2689
- type: {
2690
- name: "Composite",
2691
- className: "CustomSingleLabelClassificationResultDocumentsItem",
2692
- modelProperties: Object.assign({}, SingleClassificationDocumentResult.type.modelProperties)
2693
- }
2694
- };
2695
- export const CustomMultiLabelClassificationResultDocumentsItem = {
2439
+ export const CustomLabelClassificationResultDocumentsItem = {
2696
2440
  type: {
2697
2441
  name: "Composite",
2698
- className: "CustomMultiLabelClassificationResultDocumentsItem",
2699
- modelProperties: Object.assign({}, MultiClassificationDocumentResult.type.modelProperties)
2442
+ className: "CustomLabelClassificationResultDocumentsItem",
2443
+ modelProperties: Object.assign({}, ClassificationDocumentResult.type.modelProperties)
2700
2444
  }
2701
2445
  };
2702
2446
  export const HealthcareResultDocumentsItem = {
@@ -2727,13 +2471,6 @@ export const PiiResultDocumentsItem = {
2727
2471
  modelProperties: Object.assign({}, PiiEntitiesDocumentResult.type.modelProperties)
2728
2472
  }
2729
2473
  };
2730
- export const ExtractiveSummarizationResultDocumentsItem = {
2731
- type: {
2732
- name: "Composite",
2733
- className: "ExtractiveSummarizationResultDocumentsItem",
2734
- modelProperties: Object.assign({}, ExtractedSummaryDocumentResult.type.modelProperties)
2735
- }
2736
- };
2737
2474
  export const KeyPhraseResultDocumentsItem = {
2738
2475
  type: {
2739
2476
  name: "Composite",
@@ -2794,7 +2531,6 @@ export let discriminators = {
2794
2531
  "BatchActionState.EntityRecognition": EntitiesLROTask,
2795
2532
  "BatchActionState.EntityLinking": EntityLinkingLROTask,
2796
2533
  "BatchActionState.PiiEntityRecognition": PiiLROTask,
2797
- "BatchActionState.ExtractiveSummarization": ExtractiveSummarizationLROTask,
2798
2534
  "BatchActionState.KeyPhraseExtraction": KeyPhraseLROTask,
2799
2535
  "TaskState.EntityRecognitionLROResults": EntityRecognitionLROResult,
2800
2536
  "TaskState.CustomEntityRecognitionLROResults": CustomEntityRecognitionLROResult,
@@ -2802,7 +2538,6 @@ export let discriminators = {
2802
2538
  "TaskState.CustomMultiLabelClassificationLROResults": CustomMultiLabelClassificationLROResult,
2803
2539
  "TaskState.EntityLinkingLROResults": EntityLinkingLROResult,
2804
2540
  "TaskState.PiiEntityRecognitionLROResults": PiiEntityRecognitionLROResult,
2805
- "TaskState.ExtractiveSummarizationLROResults": ExtractiveSummarizationLROResult,
2806
2541
  "TaskState.HealthcareLROResults": HealthcareLROResult,
2807
2542
  "TaskState.SentimentAnalysisLROResults": SentimentLROResult,
2808
2543
  "TaskState.KeyPhraseExtractionLROResults": KeyPhraseExtractionLROResult