@azure/ai-language-text 1.1.0-alpha.20240110.1 → 1.1.0-alpha.20240112.1
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 +586 -245
- package/dist/index.js.map +1 -1
- package/dist-esm/src/generated/generatedClient.js +7 -3
- package/dist-esm/src/generated/generatedClient.js.map +1 -1
- package/dist-esm/src/generated/models/mappers.js +407 -161
- package/dist-esm/src/generated/models/mappers.js.map +1 -1
- package/dist-esm/src/lro.js +22 -11
- package/dist-esm/src/lro.js.map +1 -1
- package/dist-esm/src/models.js +1 -1
- package/dist-esm/src/models.js.map +1 -1
- package/dist-esm/src/textAnalysisClient.js +21 -22
- package/dist-esm/src/textAnalysisClient.js.map +1 -1
- package/dist-esm/src/transforms.js +127 -47
- package/dist-esm/src/transforms.js.map +1 -1
- package/dist-esm/src/util.js +1 -2
- package/dist-esm/src/util.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -3,7 +3,6 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
var coreAuth = require('@azure/core-auth');
|
6
|
-
var tslib = require('tslib');
|
7
6
|
var coreTracing = require('@azure/core-tracing');
|
8
7
|
var logger$1 = require('@azure/logger');
|
9
8
|
var coreClient = require('@azure/core-client');
|
@@ -154,7 +153,7 @@ function convertToLanguageDetectionInput(inputs, countryHint) {
|
|
154
153
|
* @internal
|
155
154
|
*/
|
156
155
|
function getOperationOptions(options) {
|
157
|
-
const { abortSignal, includeStatistics, onResponse, requestOptions, serializerOptions, tracingOptions
|
156
|
+
const { abortSignal, includeStatistics, onResponse, requestOptions, serializerOptions, tracingOptions, ...rest } = options;
|
158
157
|
return {
|
159
158
|
options: {
|
160
159
|
abortSignal,
|
@@ -1677,19 +1676,23 @@ const AnalyzeTextEntityLinkingInput = {
|
|
1677
1676
|
className: "AnalyzeTextEntityLinkingInput",
|
1678
1677
|
uberParent: "AnalyzeAction",
|
1679
1678
|
polymorphicDiscriminator: AnalyzeAction.type.polymorphicDiscriminator,
|
1680
|
-
modelProperties:
|
1679
|
+
modelProperties: {
|
1680
|
+
...AnalyzeAction.type.modelProperties,
|
1681
|
+
analysisInput: {
|
1681
1682
|
serializedName: "analysisInput",
|
1682
1683
|
type: {
|
1683
1684
|
name: "Composite",
|
1684
1685
|
className: "MultiLanguageAnalysisInput"
|
1685
1686
|
}
|
1686
|
-
},
|
1687
|
+
},
|
1688
|
+
parameters: {
|
1687
1689
|
serializedName: "parameters",
|
1688
1690
|
type: {
|
1689
1691
|
name: "Composite",
|
1690
1692
|
className: "EntityLinkingAction"
|
1691
1693
|
}
|
1692
|
-
}
|
1694
|
+
}
|
1695
|
+
}
|
1693
1696
|
}
|
1694
1697
|
};
|
1695
1698
|
const AnalyzeTextEntityRecognitionInput = {
|
@@ -1699,19 +1702,23 @@ const AnalyzeTextEntityRecognitionInput = {
|
|
1699
1702
|
className: "AnalyzeTextEntityRecognitionInput",
|
1700
1703
|
uberParent: "AnalyzeAction",
|
1701
1704
|
polymorphicDiscriminator: AnalyzeAction.type.polymorphicDiscriminator,
|
1702
|
-
modelProperties:
|
1705
|
+
modelProperties: {
|
1706
|
+
...AnalyzeAction.type.modelProperties,
|
1707
|
+
analysisInput: {
|
1703
1708
|
serializedName: "analysisInput",
|
1704
1709
|
type: {
|
1705
1710
|
name: "Composite",
|
1706
1711
|
className: "MultiLanguageAnalysisInput"
|
1707
1712
|
}
|
1708
|
-
},
|
1713
|
+
},
|
1714
|
+
parameters: {
|
1709
1715
|
serializedName: "parameters",
|
1710
1716
|
type: {
|
1711
1717
|
name: "Composite",
|
1712
1718
|
className: "EntityRecognitionAction"
|
1713
1719
|
}
|
1714
|
-
}
|
1720
|
+
}
|
1721
|
+
}
|
1715
1722
|
}
|
1716
1723
|
};
|
1717
1724
|
const AnalyzeTextKeyPhraseExtractionInput = {
|
@@ -1721,19 +1728,23 @@ const AnalyzeTextKeyPhraseExtractionInput = {
|
|
1721
1728
|
className: "AnalyzeTextKeyPhraseExtractionInput",
|
1722
1729
|
uberParent: "AnalyzeAction",
|
1723
1730
|
polymorphicDiscriminator: AnalyzeAction.type.polymorphicDiscriminator,
|
1724
|
-
modelProperties:
|
1731
|
+
modelProperties: {
|
1732
|
+
...AnalyzeAction.type.modelProperties,
|
1733
|
+
analysisInput: {
|
1725
1734
|
serializedName: "analysisInput",
|
1726
1735
|
type: {
|
1727
1736
|
name: "Composite",
|
1728
1737
|
className: "MultiLanguageAnalysisInput"
|
1729
1738
|
}
|
1730
|
-
},
|
1739
|
+
},
|
1740
|
+
parameters: {
|
1731
1741
|
serializedName: "parameters",
|
1732
1742
|
type: {
|
1733
1743
|
name: "Composite",
|
1734
1744
|
className: "KeyPhraseExtractionAction"
|
1735
1745
|
}
|
1736
|
-
}
|
1746
|
+
}
|
1747
|
+
}
|
1737
1748
|
}
|
1738
1749
|
};
|
1739
1750
|
const AnalyzeTextPiiEntitiesRecognitionInput = {
|
@@ -1743,19 +1754,23 @@ const AnalyzeTextPiiEntitiesRecognitionInput = {
|
|
1743
1754
|
className: "AnalyzeTextPiiEntitiesRecognitionInput",
|
1744
1755
|
uberParent: "AnalyzeAction",
|
1745
1756
|
polymorphicDiscriminator: AnalyzeAction.type.polymorphicDiscriminator,
|
1746
|
-
modelProperties:
|
1757
|
+
modelProperties: {
|
1758
|
+
...AnalyzeAction.type.modelProperties,
|
1759
|
+
analysisInput: {
|
1747
1760
|
serializedName: "analysisInput",
|
1748
1761
|
type: {
|
1749
1762
|
name: "Composite",
|
1750
1763
|
className: "MultiLanguageAnalysisInput"
|
1751
1764
|
}
|
1752
|
-
},
|
1765
|
+
},
|
1766
|
+
parameters: {
|
1753
1767
|
serializedName: "parameters",
|
1754
1768
|
type: {
|
1755
1769
|
name: "Composite",
|
1756
1770
|
className: "PiiEntityRecognitionAction"
|
1757
1771
|
}
|
1758
|
-
}
|
1772
|
+
}
|
1773
|
+
}
|
1759
1774
|
}
|
1760
1775
|
};
|
1761
1776
|
const AnalyzeTextLanguageDetectionInput = {
|
@@ -1765,19 +1780,23 @@ const AnalyzeTextLanguageDetectionInput = {
|
|
1765
1780
|
className: "AnalyzeTextLanguageDetectionInput",
|
1766
1781
|
uberParent: "AnalyzeAction",
|
1767
1782
|
polymorphicDiscriminator: AnalyzeAction.type.polymorphicDiscriminator,
|
1768
|
-
modelProperties:
|
1783
|
+
modelProperties: {
|
1784
|
+
...AnalyzeAction.type.modelProperties,
|
1785
|
+
analysisInput: {
|
1769
1786
|
serializedName: "analysisInput",
|
1770
1787
|
type: {
|
1771
1788
|
name: "Composite",
|
1772
1789
|
className: "LanguageDetectionAnalysisInput"
|
1773
1790
|
}
|
1774
|
-
},
|
1791
|
+
},
|
1792
|
+
parameters: {
|
1775
1793
|
serializedName: "parameters",
|
1776
1794
|
type: {
|
1777
1795
|
name: "Composite",
|
1778
1796
|
className: "LanguageDetectionAction"
|
1779
1797
|
}
|
1780
|
-
}
|
1798
|
+
}
|
1799
|
+
}
|
1781
1800
|
}
|
1782
1801
|
};
|
1783
1802
|
const AnalyzeTextSentimentAnalysisInput = {
|
@@ -1787,19 +1806,23 @@ const AnalyzeTextSentimentAnalysisInput = {
|
|
1787
1806
|
className: "AnalyzeTextSentimentAnalysisInput",
|
1788
1807
|
uberParent: "AnalyzeAction",
|
1789
1808
|
polymorphicDiscriminator: AnalyzeAction.type.polymorphicDiscriminator,
|
1790
|
-
modelProperties:
|
1809
|
+
modelProperties: {
|
1810
|
+
...AnalyzeAction.type.modelProperties,
|
1811
|
+
analysisInput: {
|
1791
1812
|
serializedName: "analysisInput",
|
1792
1813
|
type: {
|
1793
1814
|
name: "Composite",
|
1794
1815
|
className: "MultiLanguageAnalysisInput"
|
1795
1816
|
}
|
1796
|
-
},
|
1817
|
+
},
|
1818
|
+
parameters: {
|
1797
1819
|
serializedName: "parameters",
|
1798
1820
|
type: {
|
1799
1821
|
name: "Composite",
|
1800
1822
|
className: "SentimentAnalysisAction"
|
1801
1823
|
}
|
1802
|
-
}
|
1824
|
+
}
|
1825
|
+
}
|
1803
1826
|
}
|
1804
1827
|
};
|
1805
1828
|
const SentimentTaskResult = {
|
@@ -1809,13 +1832,16 @@ const SentimentTaskResult = {
|
|
1809
1832
|
className: "SentimentTaskResult",
|
1810
1833
|
uberParent: "AnalyzeTextTaskResult",
|
1811
1834
|
polymorphicDiscriminator: AnalyzeTextTaskResult.type.polymorphicDiscriminator,
|
1812
|
-
modelProperties:
|
1835
|
+
modelProperties: {
|
1836
|
+
...AnalyzeTextTaskResult.type.modelProperties,
|
1837
|
+
results: {
|
1813
1838
|
serializedName: "results",
|
1814
1839
|
type: {
|
1815
1840
|
name: "Composite",
|
1816
1841
|
className: "SentimentResponse"
|
1817
1842
|
}
|
1818
|
-
}
|
1843
|
+
}
|
1844
|
+
}
|
1819
1845
|
}
|
1820
1846
|
};
|
1821
1847
|
const EntitiesTaskResult = {
|
@@ -1825,13 +1851,16 @@ const EntitiesTaskResult = {
|
|
1825
1851
|
className: "EntitiesTaskResult",
|
1826
1852
|
uberParent: "AnalyzeTextTaskResult",
|
1827
1853
|
polymorphicDiscriminator: AnalyzeTextTaskResult.type.polymorphicDiscriminator,
|
1828
|
-
modelProperties:
|
1854
|
+
modelProperties: {
|
1855
|
+
...AnalyzeTextTaskResult.type.modelProperties,
|
1856
|
+
results: {
|
1829
1857
|
serializedName: "results",
|
1830
1858
|
type: {
|
1831
1859
|
name: "Composite",
|
1832
1860
|
className: "EntitiesResult"
|
1833
1861
|
}
|
1834
|
-
}
|
1862
|
+
}
|
1863
|
+
}
|
1835
1864
|
}
|
1836
1865
|
};
|
1837
1866
|
const EntityLinkingTaskResult = {
|
@@ -1841,13 +1870,16 @@ const EntityLinkingTaskResult = {
|
|
1841
1870
|
className: "EntityLinkingTaskResult",
|
1842
1871
|
uberParent: "AnalyzeTextTaskResult",
|
1843
1872
|
polymorphicDiscriminator: AnalyzeTextTaskResult.type.polymorphicDiscriminator,
|
1844
|
-
modelProperties:
|
1873
|
+
modelProperties: {
|
1874
|
+
...AnalyzeTextTaskResult.type.modelProperties,
|
1875
|
+
results: {
|
1845
1876
|
serializedName: "results",
|
1846
1877
|
type: {
|
1847
1878
|
name: "Composite",
|
1848
1879
|
className: "EntityLinkingResult"
|
1849
1880
|
}
|
1850
|
-
}
|
1881
|
+
}
|
1882
|
+
}
|
1851
1883
|
}
|
1852
1884
|
};
|
1853
1885
|
const PiiTaskResult = {
|
@@ -1857,13 +1889,16 @@ const PiiTaskResult = {
|
|
1857
1889
|
className: "PiiTaskResult",
|
1858
1890
|
uberParent: "AnalyzeTextTaskResult",
|
1859
1891
|
polymorphicDiscriminator: AnalyzeTextTaskResult.type.polymorphicDiscriminator,
|
1860
|
-
modelProperties:
|
1892
|
+
modelProperties: {
|
1893
|
+
...AnalyzeTextTaskResult.type.modelProperties,
|
1894
|
+
results: {
|
1861
1895
|
serializedName: "results",
|
1862
1896
|
type: {
|
1863
1897
|
name: "Composite",
|
1864
1898
|
className: "PiiResult"
|
1865
1899
|
}
|
1866
|
-
}
|
1900
|
+
}
|
1901
|
+
}
|
1867
1902
|
}
|
1868
1903
|
};
|
1869
1904
|
const KeyPhraseTaskResult = {
|
@@ -1873,13 +1908,16 @@ const KeyPhraseTaskResult = {
|
|
1873
1908
|
className: "KeyPhraseTaskResult",
|
1874
1909
|
uberParent: "AnalyzeTextTaskResult",
|
1875
1910
|
polymorphicDiscriminator: AnalyzeTextTaskResult.type.polymorphicDiscriminator,
|
1876
|
-
modelProperties:
|
1911
|
+
modelProperties: {
|
1912
|
+
...AnalyzeTextTaskResult.type.modelProperties,
|
1913
|
+
results: {
|
1877
1914
|
serializedName: "results",
|
1878
1915
|
type: {
|
1879
1916
|
name: "Composite",
|
1880
1917
|
className: "KeyPhraseResult"
|
1881
1918
|
}
|
1882
|
-
}
|
1919
|
+
}
|
1920
|
+
}
|
1883
1921
|
}
|
1884
1922
|
};
|
1885
1923
|
const LanguageDetectionTaskResult = {
|
@@ -1889,13 +1927,16 @@ const LanguageDetectionTaskResult = {
|
|
1889
1927
|
className: "LanguageDetectionTaskResult",
|
1890
1928
|
uberParent: "AnalyzeTextTaskResult",
|
1891
1929
|
polymorphicDiscriminator: AnalyzeTextTaskResult.type.polymorphicDiscriminator,
|
1892
|
-
modelProperties:
|
1930
|
+
modelProperties: {
|
1931
|
+
...AnalyzeTextTaskResult.type.modelProperties,
|
1932
|
+
results: {
|
1893
1933
|
serializedName: "results",
|
1894
1934
|
type: {
|
1895
1935
|
name: "Composite",
|
1896
1936
|
className: "LanguageDetectionResult"
|
1897
1937
|
}
|
1898
|
-
}
|
1938
|
+
}
|
1939
|
+
}
|
1899
1940
|
}
|
1900
1941
|
};
|
1901
1942
|
const AnalyzeBatchAction = {
|
@@ -1908,13 +1949,16 @@ const AnalyzeBatchAction = {
|
|
1908
1949
|
serializedName: "kind",
|
1909
1950
|
clientName: "kind"
|
1910
1951
|
},
|
1911
|
-
modelProperties:
|
1952
|
+
modelProperties: {
|
1953
|
+
...BatchActionState.type.modelProperties,
|
1954
|
+
kind: {
|
1912
1955
|
serializedName: "kind",
|
1913
1956
|
required: true,
|
1914
1957
|
type: {
|
1915
1958
|
name: "String"
|
1916
1959
|
}
|
1917
|
-
}
|
1960
|
+
}
|
1961
|
+
}
|
1918
1962
|
}
|
1919
1963
|
};
|
1920
1964
|
const AnalyzeTextLROResult = {
|
@@ -1927,59 +1971,76 @@ const AnalyzeTextLROResult = {
|
|
1927
1971
|
serializedName: "kind",
|
1928
1972
|
clientName: "kind"
|
1929
1973
|
},
|
1930
|
-
modelProperties:
|
1974
|
+
modelProperties: {
|
1975
|
+
...TaskState.type.modelProperties,
|
1976
|
+
...BatchActionState.type.modelProperties,
|
1977
|
+
kind: {
|
1931
1978
|
serializedName: "kind",
|
1932
1979
|
required: true,
|
1933
1980
|
type: {
|
1934
1981
|
name: "String"
|
1935
1982
|
}
|
1936
|
-
}
|
1983
|
+
}
|
1984
|
+
}
|
1937
1985
|
}
|
1938
1986
|
};
|
1939
1987
|
const AnalyzeTextJobState = {
|
1940
1988
|
type: {
|
1941
1989
|
name: "Composite",
|
1942
1990
|
className: "AnalyzeTextJobState",
|
1943
|
-
modelProperties:
|
1991
|
+
modelProperties: {
|
1992
|
+
...JobState.type.modelProperties,
|
1993
|
+
...TasksState.type.modelProperties,
|
1994
|
+
...AnalyzeTextJobStatistics.type.modelProperties
|
1995
|
+
}
|
1944
1996
|
}
|
1945
1997
|
};
|
1946
1998
|
const ActionPrebuilt = {
|
1947
1999
|
type: {
|
1948
2000
|
name: "Composite",
|
1949
2001
|
className: "ActionPrebuilt",
|
1950
|
-
modelProperties:
|
2002
|
+
modelProperties: {
|
2003
|
+
...ActionCommon.type.modelProperties,
|
2004
|
+
modelVersion: {
|
1951
2005
|
defaultValue: "latest",
|
1952
2006
|
serializedName: "modelVersion",
|
1953
2007
|
type: {
|
1954
2008
|
name: "String"
|
1955
2009
|
}
|
1956
|
-
}
|
2010
|
+
}
|
2011
|
+
}
|
1957
2012
|
}
|
1958
2013
|
};
|
1959
2014
|
const ActionCustom = {
|
1960
2015
|
type: {
|
1961
2016
|
name: "Composite",
|
1962
2017
|
className: "ActionCustom",
|
1963
|
-
modelProperties:
|
2018
|
+
modelProperties: {
|
2019
|
+
...ActionCommon.type.modelProperties,
|
2020
|
+
projectName: {
|
1964
2021
|
serializedName: "projectName",
|
1965
2022
|
required: true,
|
1966
2023
|
type: {
|
1967
2024
|
name: "String"
|
1968
2025
|
}
|
1969
|
-
},
|
2026
|
+
},
|
2027
|
+
deploymentName: {
|
1970
2028
|
serializedName: "deploymentName",
|
1971
2029
|
required: true,
|
1972
2030
|
type: {
|
1973
2031
|
name: "String"
|
1974
2032
|
}
|
1975
|
-
}
|
2033
|
+
}
|
2034
|
+
}
|
1976
2035
|
}
|
1977
2036
|
};
|
1978
2037
|
const CustomEntitiesResult = {
|
1979
2038
|
type: {
|
1980
2039
|
name: "Composite",
|
1981
2040
|
className: "CustomEntitiesResult",
|
1982
|
-
modelProperties:
|
2041
|
+
modelProperties: {
|
2042
|
+
...CustomResult.type.modelProperties,
|
2043
|
+
documents: {
|
1983
2044
|
serializedName: "documents",
|
1984
2045
|
required: true,
|
1985
2046
|
type: {
|
@@ -1991,14 +2052,17 @@ const CustomEntitiesResult = {
|
|
1991
2052
|
}
|
1992
2053
|
}
|
1993
2054
|
}
|
1994
|
-
}
|
2055
|
+
}
|
2056
|
+
}
|
1995
2057
|
}
|
1996
2058
|
};
|
1997
2059
|
const CustomLabelClassificationResult = {
|
1998
2060
|
type: {
|
1999
2061
|
name: "Composite",
|
2000
2062
|
className: "CustomLabelClassificationResult",
|
2001
|
-
modelProperties:
|
2063
|
+
modelProperties: {
|
2064
|
+
...CustomResult.type.modelProperties,
|
2065
|
+
documents: {
|
2002
2066
|
serializedName: "documents",
|
2003
2067
|
required: true,
|
2004
2068
|
type: {
|
@@ -2010,14 +2074,17 @@ const CustomLabelClassificationResult = {
|
|
2010
2074
|
}
|
2011
2075
|
}
|
2012
2076
|
}
|
2013
|
-
}
|
2077
|
+
}
|
2078
|
+
}
|
2014
2079
|
}
|
2015
2080
|
};
|
2016
2081
|
const EntitiesDocumentResult = {
|
2017
2082
|
type: {
|
2018
2083
|
name: "Composite",
|
2019
2084
|
className: "EntitiesDocumentResult",
|
2020
|
-
modelProperties:
|
2085
|
+
modelProperties: {
|
2086
|
+
...DocumentResult.type.modelProperties,
|
2087
|
+
entities: {
|
2021
2088
|
serializedName: "entities",
|
2022
2089
|
required: true,
|
2023
2090
|
type: {
|
@@ -2029,14 +2096,17 @@ const EntitiesDocumentResult = {
|
|
2029
2096
|
}
|
2030
2097
|
}
|
2031
2098
|
}
|
2032
|
-
}
|
2099
|
+
}
|
2100
|
+
}
|
2033
2101
|
}
|
2034
2102
|
};
|
2035
2103
|
const ClassificationDocumentResult = {
|
2036
2104
|
type: {
|
2037
2105
|
name: "Composite",
|
2038
2106
|
className: "ClassificationDocumentResult",
|
2039
|
-
modelProperties:
|
2107
|
+
modelProperties: {
|
2108
|
+
...DocumentResult.type.modelProperties,
|
2109
|
+
classifications: {
|
2040
2110
|
serializedName: "class",
|
2041
2111
|
required: true,
|
2042
2112
|
type: {
|
@@ -2048,14 +2118,17 @@ const ClassificationDocumentResult = {
|
|
2048
2118
|
}
|
2049
2119
|
}
|
2050
2120
|
}
|
2051
|
-
}
|
2121
|
+
}
|
2122
|
+
}
|
2052
2123
|
}
|
2053
2124
|
};
|
2054
2125
|
const HealthcareEntitiesDocumentResult = {
|
2055
2126
|
type: {
|
2056
2127
|
name: "Composite",
|
2057
2128
|
className: "HealthcareEntitiesDocumentResult",
|
2058
|
-
modelProperties:
|
2129
|
+
modelProperties: {
|
2130
|
+
...DocumentResult.type.modelProperties,
|
2131
|
+
entities: {
|
2059
2132
|
serializedName: "entities",
|
2060
2133
|
required: true,
|
2061
2134
|
type: {
|
@@ -2067,7 +2140,8 @@ const HealthcareEntitiesDocumentResult = {
|
|
2067
2140
|
}
|
2068
2141
|
}
|
2069
2142
|
}
|
2070
|
-
},
|
2143
|
+
},
|
2144
|
+
relations: {
|
2071
2145
|
serializedName: "relations",
|
2072
2146
|
required: true,
|
2073
2147
|
type: {
|
@@ -2079,27 +2153,32 @@ const HealthcareEntitiesDocumentResult = {
|
|
2079
2153
|
}
|
2080
2154
|
}
|
2081
2155
|
}
|
2082
|
-
}
|
2156
|
+
}
|
2157
|
+
}
|
2083
2158
|
}
|
2084
2159
|
};
|
2085
2160
|
const SentimentDocumentResult = {
|
2086
2161
|
type: {
|
2087
2162
|
name: "Composite",
|
2088
2163
|
className: "SentimentDocumentResult",
|
2089
|
-
modelProperties:
|
2164
|
+
modelProperties: {
|
2165
|
+
...DocumentResult.type.modelProperties,
|
2166
|
+
sentiment: {
|
2090
2167
|
serializedName: "sentiment",
|
2091
2168
|
required: true,
|
2092
2169
|
type: {
|
2093
2170
|
name: "Enum",
|
2094
2171
|
allowedValues: ["positive", "neutral", "negative", "mixed"]
|
2095
2172
|
}
|
2096
|
-
},
|
2173
|
+
},
|
2174
|
+
confidenceScores: {
|
2097
2175
|
serializedName: "confidenceScores",
|
2098
2176
|
type: {
|
2099
2177
|
name: "Composite",
|
2100
2178
|
className: "SentimentConfidenceScores"
|
2101
2179
|
}
|
2102
|
-
},
|
2180
|
+
},
|
2181
|
+
sentences: {
|
2103
2182
|
serializedName: "sentences",
|
2104
2183
|
required: true,
|
2105
2184
|
type: {
|
@@ -2111,14 +2190,17 @@ const SentimentDocumentResult = {
|
|
2111
2190
|
}
|
2112
2191
|
}
|
2113
2192
|
}
|
2114
|
-
}
|
2193
|
+
}
|
2194
|
+
}
|
2115
2195
|
}
|
2116
2196
|
};
|
2117
2197
|
const LinkedEntitiesDocumentResult = {
|
2118
2198
|
type: {
|
2119
2199
|
name: "Composite",
|
2120
2200
|
className: "LinkedEntitiesDocumentResult",
|
2121
|
-
modelProperties:
|
2201
|
+
modelProperties: {
|
2202
|
+
...DocumentResult.type.modelProperties,
|
2203
|
+
entities: {
|
2122
2204
|
serializedName: "entities",
|
2123
2205
|
required: true,
|
2124
2206
|
type: {
|
@@ -2130,20 +2212,24 @@ const LinkedEntitiesDocumentResult = {
|
|
2130
2212
|
}
|
2131
2213
|
}
|
2132
2214
|
}
|
2133
|
-
}
|
2215
|
+
}
|
2216
|
+
}
|
2134
2217
|
}
|
2135
2218
|
};
|
2136
2219
|
const PiiEntitiesDocumentResult = {
|
2137
2220
|
type: {
|
2138
2221
|
name: "Composite",
|
2139
2222
|
className: "PiiEntitiesDocumentResult",
|
2140
|
-
modelProperties:
|
2223
|
+
modelProperties: {
|
2224
|
+
...DocumentResult.type.modelProperties,
|
2225
|
+
redactedText: {
|
2141
2226
|
serializedName: "redactedText",
|
2142
2227
|
required: true,
|
2143
2228
|
type: {
|
2144
2229
|
name: "String"
|
2145
2230
|
}
|
2146
|
-
},
|
2231
|
+
},
|
2232
|
+
entities: {
|
2147
2233
|
serializedName: "entities",
|
2148
2234
|
required: true,
|
2149
2235
|
type: {
|
@@ -2155,14 +2241,17 @@ const PiiEntitiesDocumentResult = {
|
|
2155
2241
|
}
|
2156
2242
|
}
|
2157
2243
|
}
|
2158
|
-
}
|
2244
|
+
}
|
2245
|
+
}
|
2159
2246
|
}
|
2160
2247
|
};
|
2161
2248
|
const ExtractedSummaryDocumentResult = {
|
2162
2249
|
type: {
|
2163
2250
|
name: "Composite",
|
2164
2251
|
className: "ExtractedSummaryDocumentResult",
|
2165
|
-
modelProperties:
|
2252
|
+
modelProperties: {
|
2253
|
+
...DocumentResult.type.modelProperties,
|
2254
|
+
sentences: {
|
2166
2255
|
serializedName: "sentences",
|
2167
2256
|
required: true,
|
2168
2257
|
type: {
|
@@ -2174,14 +2263,17 @@ const ExtractedSummaryDocumentResult = {
|
|
2174
2263
|
}
|
2175
2264
|
}
|
2176
2265
|
}
|
2177
|
-
}
|
2266
|
+
}
|
2267
|
+
}
|
2178
2268
|
}
|
2179
2269
|
};
|
2180
2270
|
const KeyPhrasesDocumentResult = {
|
2181
2271
|
type: {
|
2182
2272
|
name: "Composite",
|
2183
2273
|
className: "KeyPhrasesDocumentResult",
|
2184
|
-
modelProperties:
|
2274
|
+
modelProperties: {
|
2275
|
+
...DocumentResult.type.modelProperties,
|
2276
|
+
keyPhrases: {
|
2185
2277
|
serializedName: "keyPhrases",
|
2186
2278
|
required: true,
|
2187
2279
|
type: {
|
@@ -2192,27 +2284,33 @@ const KeyPhrasesDocumentResult = {
|
|
2192
2284
|
}
|
2193
2285
|
}
|
2194
2286
|
}
|
2195
|
-
}
|
2287
|
+
}
|
2288
|
+
}
|
2196
2289
|
}
|
2197
2290
|
};
|
2198
2291
|
const LanguageDetectionDocumentResult = {
|
2199
2292
|
type: {
|
2200
2293
|
name: "Composite",
|
2201
2294
|
className: "LanguageDetectionDocumentResult",
|
2202
|
-
modelProperties:
|
2295
|
+
modelProperties: {
|
2296
|
+
...DocumentResult.type.modelProperties,
|
2297
|
+
detectedLanguage: {
|
2203
2298
|
serializedName: "detectedLanguage",
|
2204
2299
|
type: {
|
2205
2300
|
name: "Composite",
|
2206
2301
|
className: "DetectedLanguage"
|
2207
2302
|
}
|
2208
|
-
}
|
2303
|
+
}
|
2304
|
+
}
|
2209
2305
|
}
|
2210
2306
|
};
|
2211
2307
|
const AbstractiveSummaryDocumentResult = {
|
2212
2308
|
type: {
|
2213
2309
|
name: "Composite",
|
2214
2310
|
className: "AbstractiveSummaryDocumentResult",
|
2215
|
-
modelProperties:
|
2311
|
+
modelProperties: {
|
2312
|
+
...DocumentResult.type.modelProperties,
|
2313
|
+
summaries: {
|
2216
2314
|
serializedName: "summaries",
|
2217
2315
|
required: true,
|
2218
2316
|
type: {
|
@@ -2224,14 +2322,17 @@ const AbstractiveSummaryDocumentResult = {
|
|
2224
2322
|
}
|
2225
2323
|
}
|
2226
2324
|
}
|
2227
|
-
}
|
2325
|
+
}
|
2326
|
+
}
|
2228
2327
|
}
|
2229
2328
|
};
|
2230
2329
|
const HealthcareResult = {
|
2231
2330
|
type: {
|
2232
2331
|
name: "Composite",
|
2233
2332
|
className: "HealthcareResult",
|
2234
|
-
modelProperties:
|
2333
|
+
modelProperties: {
|
2334
|
+
...PreBuiltResult.type.modelProperties,
|
2335
|
+
documents: {
|
2235
2336
|
serializedName: "documents",
|
2236
2337
|
required: true,
|
2237
2338
|
type: {
|
@@ -2243,14 +2344,17 @@ const HealthcareResult = {
|
|
2243
2344
|
}
|
2244
2345
|
}
|
2245
2346
|
}
|
2246
|
-
}
|
2347
|
+
}
|
2348
|
+
}
|
2247
2349
|
}
|
2248
2350
|
};
|
2249
2351
|
const SentimentResponse = {
|
2250
2352
|
type: {
|
2251
2353
|
name: "Composite",
|
2252
2354
|
className: "SentimentResponse",
|
2253
|
-
modelProperties:
|
2355
|
+
modelProperties: {
|
2356
|
+
...PreBuiltResult.type.modelProperties,
|
2357
|
+
documents: {
|
2254
2358
|
serializedName: "documents",
|
2255
2359
|
required: true,
|
2256
2360
|
type: {
|
@@ -2262,14 +2366,17 @@ const SentimentResponse = {
|
|
2262
2366
|
}
|
2263
2367
|
}
|
2264
2368
|
}
|
2265
|
-
}
|
2369
|
+
}
|
2370
|
+
}
|
2266
2371
|
}
|
2267
2372
|
};
|
2268
2373
|
const EntitiesResult = {
|
2269
2374
|
type: {
|
2270
2375
|
name: "Composite",
|
2271
2376
|
className: "EntitiesResult",
|
2272
|
-
modelProperties:
|
2377
|
+
modelProperties: {
|
2378
|
+
...PreBuiltResult.type.modelProperties,
|
2379
|
+
documents: {
|
2273
2380
|
serializedName: "documents",
|
2274
2381
|
required: true,
|
2275
2382
|
type: {
|
@@ -2281,14 +2388,17 @@ const EntitiesResult = {
|
|
2281
2388
|
}
|
2282
2389
|
}
|
2283
2390
|
}
|
2284
|
-
}
|
2391
|
+
}
|
2392
|
+
}
|
2285
2393
|
}
|
2286
2394
|
};
|
2287
2395
|
const EntityLinkingResult = {
|
2288
2396
|
type: {
|
2289
2397
|
name: "Composite",
|
2290
2398
|
className: "EntityLinkingResult",
|
2291
|
-
modelProperties:
|
2399
|
+
modelProperties: {
|
2400
|
+
...PreBuiltResult.type.modelProperties,
|
2401
|
+
documents: {
|
2292
2402
|
serializedName: "documents",
|
2293
2403
|
required: true,
|
2294
2404
|
type: {
|
@@ -2300,14 +2410,17 @@ const EntityLinkingResult = {
|
|
2300
2410
|
}
|
2301
2411
|
}
|
2302
2412
|
}
|
2303
|
-
}
|
2413
|
+
}
|
2414
|
+
}
|
2304
2415
|
}
|
2305
2416
|
};
|
2306
2417
|
const PiiResult = {
|
2307
2418
|
type: {
|
2308
2419
|
name: "Composite",
|
2309
2420
|
className: "PiiResult",
|
2310
|
-
modelProperties:
|
2421
|
+
modelProperties: {
|
2422
|
+
...PreBuiltResult.type.modelProperties,
|
2423
|
+
documents: {
|
2311
2424
|
serializedName: "documents",
|
2312
2425
|
required: true,
|
2313
2426
|
type: {
|
@@ -2319,14 +2432,17 @@ const PiiResult = {
|
|
2319
2432
|
}
|
2320
2433
|
}
|
2321
2434
|
}
|
2322
|
-
}
|
2435
|
+
}
|
2436
|
+
}
|
2323
2437
|
}
|
2324
2438
|
};
|
2325
2439
|
const ExtractiveSummarizationResult = {
|
2326
2440
|
type: {
|
2327
2441
|
name: "Composite",
|
2328
2442
|
className: "ExtractiveSummarizationResult",
|
2329
|
-
modelProperties:
|
2443
|
+
modelProperties: {
|
2444
|
+
...PreBuiltResult.type.modelProperties,
|
2445
|
+
documents: {
|
2330
2446
|
serializedName: "documents",
|
2331
2447
|
required: true,
|
2332
2448
|
type: {
|
@@ -2338,14 +2454,17 @@ const ExtractiveSummarizationResult = {
|
|
2338
2454
|
}
|
2339
2455
|
}
|
2340
2456
|
}
|
2341
|
-
}
|
2457
|
+
}
|
2458
|
+
}
|
2342
2459
|
}
|
2343
2460
|
};
|
2344
2461
|
const KeyPhraseResult = {
|
2345
2462
|
type: {
|
2346
2463
|
name: "Composite",
|
2347
2464
|
className: "KeyPhraseResult",
|
2348
|
-
modelProperties:
|
2465
|
+
modelProperties: {
|
2466
|
+
...PreBuiltResult.type.modelProperties,
|
2467
|
+
documents: {
|
2349
2468
|
serializedName: "documents",
|
2350
2469
|
required: true,
|
2351
2470
|
type: {
|
@@ -2357,14 +2476,17 @@ const KeyPhraseResult = {
|
|
2357
2476
|
}
|
2358
2477
|
}
|
2359
2478
|
}
|
2360
|
-
}
|
2479
|
+
}
|
2480
|
+
}
|
2361
2481
|
}
|
2362
2482
|
};
|
2363
2483
|
const LanguageDetectionResult = {
|
2364
2484
|
type: {
|
2365
2485
|
name: "Composite",
|
2366
2486
|
className: "LanguageDetectionResult",
|
2367
|
-
modelProperties:
|
2487
|
+
modelProperties: {
|
2488
|
+
...PreBuiltResult.type.modelProperties,
|
2489
|
+
documents: {
|
2368
2490
|
serializedName: "documents",
|
2369
2491
|
required: true,
|
2370
2492
|
type: {
|
@@ -2376,21 +2498,28 @@ const LanguageDetectionResult = {
|
|
2376
2498
|
}
|
2377
2499
|
}
|
2378
2500
|
}
|
2379
|
-
}
|
2501
|
+
}
|
2502
|
+
}
|
2380
2503
|
}
|
2381
2504
|
};
|
2382
2505
|
const AbstractiveSummarizationResult = {
|
2383
2506
|
type: {
|
2384
2507
|
name: "Composite",
|
2385
2508
|
className: "AbstractiveSummarizationResult",
|
2386
|
-
modelProperties:
|
2509
|
+
modelProperties: {
|
2510
|
+
...AbstractiveSummarizationResultBase.type.modelProperties,
|
2511
|
+
...PreBuiltResult.type.modelProperties
|
2512
|
+
}
|
2387
2513
|
}
|
2388
2514
|
};
|
2389
2515
|
const AbstractiveSummarizationAction = {
|
2390
2516
|
type: {
|
2391
2517
|
name: "Composite",
|
2392
2518
|
className: "AbstractiveSummarizationAction",
|
2393
|
-
modelProperties:
|
2519
|
+
modelProperties: {
|
2520
|
+
...AbstractiveSummarizationTaskParametersBase.type.modelProperties,
|
2521
|
+
...ActionPrebuilt.type.modelProperties
|
2522
|
+
}
|
2394
2523
|
}
|
2395
2524
|
};
|
2396
2525
|
const CustomEntitiesLROTask = {
|
@@ -2400,13 +2529,16 @@ const CustomEntitiesLROTask = {
|
|
2400
2529
|
className: "CustomEntitiesLROTask",
|
2401
2530
|
uberParent: "AnalyzeBatchAction",
|
2402
2531
|
polymorphicDiscriminator: AnalyzeBatchAction.type.polymorphicDiscriminator,
|
2403
|
-
modelProperties:
|
2532
|
+
modelProperties: {
|
2533
|
+
...AnalyzeBatchAction.type.modelProperties,
|
2534
|
+
parameters: {
|
2404
2535
|
serializedName: "parameters",
|
2405
2536
|
type: {
|
2406
2537
|
name: "Composite",
|
2407
2538
|
className: "CustomEntityRecognitionAction"
|
2408
2539
|
}
|
2409
|
-
}
|
2540
|
+
}
|
2541
|
+
}
|
2410
2542
|
}
|
2411
2543
|
};
|
2412
2544
|
const CustomSingleLabelClassificationLROTask = {
|
@@ -2416,13 +2548,16 @@ const CustomSingleLabelClassificationLROTask = {
|
|
2416
2548
|
className: "CustomSingleLabelClassificationLROTask",
|
2417
2549
|
uberParent: "AnalyzeBatchAction",
|
2418
2550
|
polymorphicDiscriminator: AnalyzeBatchAction.type.polymorphicDiscriminator,
|
2419
|
-
modelProperties:
|
2551
|
+
modelProperties: {
|
2552
|
+
...AnalyzeBatchAction.type.modelProperties,
|
2553
|
+
parameters: {
|
2420
2554
|
serializedName: "parameters",
|
2421
2555
|
type: {
|
2422
2556
|
name: "Composite",
|
2423
2557
|
className: "CustomSingleLabelClassificationAction"
|
2424
2558
|
}
|
2425
|
-
}
|
2559
|
+
}
|
2560
|
+
}
|
2426
2561
|
}
|
2427
2562
|
};
|
2428
2563
|
const CustomMultiLabelClassificationLROTask = {
|
@@ -2432,13 +2567,16 @@ const CustomMultiLabelClassificationLROTask = {
|
|
2432
2567
|
className: "CustomMultiLabelClassificationLROTask",
|
2433
2568
|
uberParent: "AnalyzeBatchAction",
|
2434
2569
|
polymorphicDiscriminator: AnalyzeBatchAction.type.polymorphicDiscriminator,
|
2435
|
-
modelProperties:
|
2570
|
+
modelProperties: {
|
2571
|
+
...AnalyzeBatchAction.type.modelProperties,
|
2572
|
+
parameters: {
|
2436
2573
|
serializedName: "parameters",
|
2437
2574
|
type: {
|
2438
2575
|
name: "Composite",
|
2439
2576
|
className: "CustomMultiLabelClassificationAction"
|
2440
2577
|
}
|
2441
|
-
}
|
2578
|
+
}
|
2579
|
+
}
|
2442
2580
|
}
|
2443
2581
|
};
|
2444
2582
|
const HealthcareLROTask = {
|
@@ -2448,13 +2586,16 @@ const HealthcareLROTask = {
|
|
2448
2586
|
className: "HealthcareLROTask",
|
2449
2587
|
uberParent: "AnalyzeBatchAction",
|
2450
2588
|
polymorphicDiscriminator: AnalyzeBatchAction.type.polymorphicDiscriminator,
|
2451
|
-
modelProperties:
|
2589
|
+
modelProperties: {
|
2590
|
+
...AnalyzeBatchAction.type.modelProperties,
|
2591
|
+
parameters: {
|
2452
2592
|
serializedName: "parameters",
|
2453
2593
|
type: {
|
2454
2594
|
name: "Composite",
|
2455
2595
|
className: "HealthcareAction"
|
2456
2596
|
}
|
2457
|
-
}
|
2597
|
+
}
|
2598
|
+
}
|
2458
2599
|
}
|
2459
2600
|
};
|
2460
2601
|
const SentimentAnalysisLROTask = {
|
@@ -2464,13 +2605,16 @@ const SentimentAnalysisLROTask = {
|
|
2464
2605
|
className: "SentimentAnalysisLROTask",
|
2465
2606
|
uberParent: "AnalyzeBatchAction",
|
2466
2607
|
polymorphicDiscriminator: AnalyzeBatchAction.type.polymorphicDiscriminator,
|
2467
|
-
modelProperties:
|
2608
|
+
modelProperties: {
|
2609
|
+
...AnalyzeBatchAction.type.modelProperties,
|
2610
|
+
parameters: {
|
2468
2611
|
serializedName: "parameters",
|
2469
2612
|
type: {
|
2470
2613
|
name: "Composite",
|
2471
2614
|
className: "SentimentAnalysisAction"
|
2472
2615
|
}
|
2473
|
-
}
|
2616
|
+
}
|
2617
|
+
}
|
2474
2618
|
}
|
2475
2619
|
};
|
2476
2620
|
const EntitiesLROTask = {
|
@@ -2480,13 +2624,16 @@ const EntitiesLROTask = {
|
|
2480
2624
|
className: "EntitiesLROTask",
|
2481
2625
|
uberParent: "AnalyzeBatchAction",
|
2482
2626
|
polymorphicDiscriminator: AnalyzeBatchAction.type.polymorphicDiscriminator,
|
2483
|
-
modelProperties:
|
2627
|
+
modelProperties: {
|
2628
|
+
...AnalyzeBatchAction.type.modelProperties,
|
2629
|
+
parameters: {
|
2484
2630
|
serializedName: "parameters",
|
2485
2631
|
type: {
|
2486
2632
|
name: "Composite",
|
2487
2633
|
className: "EntityRecognitionAction"
|
2488
2634
|
}
|
2489
|
-
}
|
2635
|
+
}
|
2636
|
+
}
|
2490
2637
|
}
|
2491
2638
|
};
|
2492
2639
|
const EntityLinkingLROTask = {
|
@@ -2496,13 +2643,16 @@ const EntityLinkingLROTask = {
|
|
2496
2643
|
className: "EntityLinkingLROTask",
|
2497
2644
|
uberParent: "AnalyzeBatchAction",
|
2498
2645
|
polymorphicDiscriminator: AnalyzeBatchAction.type.polymorphicDiscriminator,
|
2499
|
-
modelProperties:
|
2646
|
+
modelProperties: {
|
2647
|
+
...AnalyzeBatchAction.type.modelProperties,
|
2648
|
+
parameters: {
|
2500
2649
|
serializedName: "parameters",
|
2501
2650
|
type: {
|
2502
2651
|
name: "Composite",
|
2503
2652
|
className: "EntityLinkingAction"
|
2504
2653
|
}
|
2505
|
-
}
|
2654
|
+
}
|
2655
|
+
}
|
2506
2656
|
}
|
2507
2657
|
};
|
2508
2658
|
const PiiLROTask = {
|
@@ -2512,13 +2662,16 @@ const PiiLROTask = {
|
|
2512
2662
|
className: "PiiLROTask",
|
2513
2663
|
uberParent: "AnalyzeBatchAction",
|
2514
2664
|
polymorphicDiscriminator: AnalyzeBatchAction.type.polymorphicDiscriminator,
|
2515
|
-
modelProperties:
|
2665
|
+
modelProperties: {
|
2666
|
+
...AnalyzeBatchAction.type.modelProperties,
|
2667
|
+
parameters: {
|
2516
2668
|
serializedName: "parameters",
|
2517
2669
|
type: {
|
2518
2670
|
name: "Composite",
|
2519
2671
|
className: "PiiEntityRecognitionAction"
|
2520
2672
|
}
|
2521
|
-
}
|
2673
|
+
}
|
2674
|
+
}
|
2522
2675
|
}
|
2523
2676
|
};
|
2524
2677
|
const ExtractiveSummarizationLROTask = {
|
@@ -2528,13 +2681,16 @@ const ExtractiveSummarizationLROTask = {
|
|
2528
2681
|
className: "ExtractiveSummarizationLROTask",
|
2529
2682
|
uberParent: "AnalyzeBatchAction",
|
2530
2683
|
polymorphicDiscriminator: AnalyzeBatchAction.type.polymorphicDiscriminator,
|
2531
|
-
modelProperties:
|
2684
|
+
modelProperties: {
|
2685
|
+
...AnalyzeBatchAction.type.modelProperties,
|
2686
|
+
parameters: {
|
2532
2687
|
serializedName: "parameters",
|
2533
2688
|
type: {
|
2534
2689
|
name: "Composite",
|
2535
2690
|
className: "ExtractiveSummarizationAction"
|
2536
2691
|
}
|
2537
|
-
}
|
2692
|
+
}
|
2693
|
+
}
|
2538
2694
|
}
|
2539
2695
|
};
|
2540
2696
|
const KeyPhraseLROTask = {
|
@@ -2544,13 +2700,16 @@ const KeyPhraseLROTask = {
|
|
2544
2700
|
className: "KeyPhraseLROTask",
|
2545
2701
|
uberParent: "AnalyzeBatchAction",
|
2546
2702
|
polymorphicDiscriminator: AnalyzeBatchAction.type.polymorphicDiscriminator,
|
2547
|
-
modelProperties:
|
2703
|
+
modelProperties: {
|
2704
|
+
...AnalyzeBatchAction.type.modelProperties,
|
2705
|
+
parameters: {
|
2548
2706
|
serializedName: "parameters",
|
2549
2707
|
type: {
|
2550
2708
|
name: "Composite",
|
2551
2709
|
className: "KeyPhraseExtractionAction"
|
2552
2710
|
}
|
2553
|
-
}
|
2711
|
+
}
|
2712
|
+
}
|
2554
2713
|
}
|
2555
2714
|
};
|
2556
2715
|
const AbstractiveSummarizationLROTask = {
|
@@ -2560,13 +2719,16 @@ const AbstractiveSummarizationLROTask = {
|
|
2560
2719
|
className: "AbstractiveSummarizationLROTask",
|
2561
2720
|
uberParent: "AnalyzeBatchAction",
|
2562
2721
|
polymorphicDiscriminator: AnalyzeBatchAction.type.polymorphicDiscriminator,
|
2563
|
-
modelProperties:
|
2722
|
+
modelProperties: {
|
2723
|
+
...AnalyzeBatchAction.type.modelProperties,
|
2724
|
+
parameters: {
|
2564
2725
|
serializedName: "parameters",
|
2565
2726
|
type: {
|
2566
2727
|
name: "Composite",
|
2567
2728
|
className: "AbstractiveSummarizationAction"
|
2568
2729
|
}
|
2569
|
-
}
|
2730
|
+
}
|
2731
|
+
}
|
2570
2732
|
}
|
2571
2733
|
};
|
2572
2734
|
const EntityRecognitionLROResult = {
|
@@ -2576,13 +2738,16 @@ const EntityRecognitionLROResult = {
|
|
2576
2738
|
className: "EntityRecognitionLROResult",
|
2577
2739
|
uberParent: "AnalyzeTextLROResult",
|
2578
2740
|
polymorphicDiscriminator: AnalyzeTextLROResult.type.polymorphicDiscriminator,
|
2579
|
-
modelProperties:
|
2741
|
+
modelProperties: {
|
2742
|
+
...AnalyzeTextLROResult.type.modelProperties,
|
2743
|
+
results: {
|
2580
2744
|
serializedName: "results",
|
2581
2745
|
type: {
|
2582
2746
|
name: "Composite",
|
2583
2747
|
className: "EntitiesResult"
|
2584
2748
|
}
|
2585
|
-
}
|
2749
|
+
}
|
2750
|
+
}
|
2586
2751
|
}
|
2587
2752
|
};
|
2588
2753
|
const CustomEntityRecognitionLROResult = {
|
@@ -2592,13 +2757,16 @@ const CustomEntityRecognitionLROResult = {
|
|
2592
2757
|
className: "CustomEntityRecognitionLROResult",
|
2593
2758
|
uberParent: "AnalyzeTextLROResult",
|
2594
2759
|
polymorphicDiscriminator: AnalyzeTextLROResult.type.polymorphicDiscriminator,
|
2595
|
-
modelProperties:
|
2760
|
+
modelProperties: {
|
2761
|
+
...AnalyzeTextLROResult.type.modelProperties,
|
2762
|
+
results: {
|
2596
2763
|
serializedName: "results",
|
2597
2764
|
type: {
|
2598
2765
|
name: "Composite",
|
2599
2766
|
className: "CustomEntitiesResult"
|
2600
2767
|
}
|
2601
|
-
}
|
2768
|
+
}
|
2769
|
+
}
|
2602
2770
|
}
|
2603
2771
|
};
|
2604
2772
|
const CustomSingleLabelClassificationLROResult = {
|
@@ -2608,13 +2776,16 @@ const CustomSingleLabelClassificationLROResult = {
|
|
2608
2776
|
className: "CustomSingleLabelClassificationLROResult",
|
2609
2777
|
uberParent: "AnalyzeTextLROResult",
|
2610
2778
|
polymorphicDiscriminator: AnalyzeTextLROResult.type.polymorphicDiscriminator,
|
2611
|
-
modelProperties:
|
2779
|
+
modelProperties: {
|
2780
|
+
...AnalyzeTextLROResult.type.modelProperties,
|
2781
|
+
results: {
|
2612
2782
|
serializedName: "results",
|
2613
2783
|
type: {
|
2614
2784
|
name: "Composite",
|
2615
2785
|
className: "CustomLabelClassificationResult"
|
2616
2786
|
}
|
2617
|
-
}
|
2787
|
+
}
|
2788
|
+
}
|
2618
2789
|
}
|
2619
2790
|
};
|
2620
2791
|
const CustomMultiLabelClassificationLROResult = {
|
@@ -2624,13 +2795,16 @@ const CustomMultiLabelClassificationLROResult = {
|
|
2624
2795
|
className: "CustomMultiLabelClassificationLROResult",
|
2625
2796
|
uberParent: "AnalyzeTextLROResult",
|
2626
2797
|
polymorphicDiscriminator: AnalyzeTextLROResult.type.polymorphicDiscriminator,
|
2627
|
-
modelProperties:
|
2798
|
+
modelProperties: {
|
2799
|
+
...AnalyzeTextLROResult.type.modelProperties,
|
2800
|
+
results: {
|
2628
2801
|
serializedName: "results",
|
2629
2802
|
type: {
|
2630
2803
|
name: "Composite",
|
2631
2804
|
className: "CustomLabelClassificationResult"
|
2632
2805
|
}
|
2633
|
-
}
|
2806
|
+
}
|
2807
|
+
}
|
2634
2808
|
}
|
2635
2809
|
};
|
2636
2810
|
const EntityLinkingLROResult = {
|
@@ -2640,13 +2814,16 @@ const EntityLinkingLROResult = {
|
|
2640
2814
|
className: "EntityLinkingLROResult",
|
2641
2815
|
uberParent: "AnalyzeTextLROResult",
|
2642
2816
|
polymorphicDiscriminator: AnalyzeTextLROResult.type.polymorphicDiscriminator,
|
2643
|
-
modelProperties:
|
2817
|
+
modelProperties: {
|
2818
|
+
...AnalyzeTextLROResult.type.modelProperties,
|
2819
|
+
results: {
|
2644
2820
|
serializedName: "results",
|
2645
2821
|
type: {
|
2646
2822
|
name: "Composite",
|
2647
2823
|
className: "EntityLinkingResult"
|
2648
2824
|
}
|
2649
|
-
}
|
2825
|
+
}
|
2826
|
+
}
|
2650
2827
|
}
|
2651
2828
|
};
|
2652
2829
|
const PiiEntityRecognitionLROResult = {
|
@@ -2656,13 +2833,16 @@ const PiiEntityRecognitionLROResult = {
|
|
2656
2833
|
className: "PiiEntityRecognitionLROResult",
|
2657
2834
|
uberParent: "AnalyzeTextLROResult",
|
2658
2835
|
polymorphicDiscriminator: AnalyzeTextLROResult.type.polymorphicDiscriminator,
|
2659
|
-
modelProperties:
|
2836
|
+
modelProperties: {
|
2837
|
+
...AnalyzeTextLROResult.type.modelProperties,
|
2838
|
+
results: {
|
2660
2839
|
serializedName: "results",
|
2661
2840
|
type: {
|
2662
2841
|
name: "Composite",
|
2663
2842
|
className: "PiiResult"
|
2664
2843
|
}
|
2665
|
-
}
|
2844
|
+
}
|
2845
|
+
}
|
2666
2846
|
}
|
2667
2847
|
};
|
2668
2848
|
const ExtractiveSummarizationLROResult = {
|
@@ -2672,13 +2852,16 @@ const ExtractiveSummarizationLROResult = {
|
|
2672
2852
|
className: "ExtractiveSummarizationLROResult",
|
2673
2853
|
uberParent: "AnalyzeTextLROResult",
|
2674
2854
|
polymorphicDiscriminator: AnalyzeTextLROResult.type.polymorphicDiscriminator,
|
2675
|
-
modelProperties:
|
2855
|
+
modelProperties: {
|
2856
|
+
...AnalyzeTextLROResult.type.modelProperties,
|
2857
|
+
results: {
|
2676
2858
|
serializedName: "results",
|
2677
2859
|
type: {
|
2678
2860
|
name: "Composite",
|
2679
2861
|
className: "ExtractiveSummarizationResult"
|
2680
2862
|
}
|
2681
|
-
}
|
2863
|
+
}
|
2864
|
+
}
|
2682
2865
|
}
|
2683
2866
|
};
|
2684
2867
|
const HealthcareLROResult = {
|
@@ -2688,13 +2871,16 @@ const HealthcareLROResult = {
|
|
2688
2871
|
className: "HealthcareLROResult",
|
2689
2872
|
uberParent: "AnalyzeTextLROResult",
|
2690
2873
|
polymorphicDiscriminator: AnalyzeTextLROResult.type.polymorphicDiscriminator,
|
2691
|
-
modelProperties:
|
2874
|
+
modelProperties: {
|
2875
|
+
...AnalyzeTextLROResult.type.modelProperties,
|
2876
|
+
results: {
|
2692
2877
|
serializedName: "results",
|
2693
2878
|
type: {
|
2694
2879
|
name: "Composite",
|
2695
2880
|
className: "HealthcareResult"
|
2696
2881
|
}
|
2697
|
-
}
|
2882
|
+
}
|
2883
|
+
}
|
2698
2884
|
}
|
2699
2885
|
};
|
2700
2886
|
const SentimentLROResult = {
|
@@ -2704,13 +2890,16 @@ const SentimentLROResult = {
|
|
2704
2890
|
className: "SentimentLROResult",
|
2705
2891
|
uberParent: "AnalyzeTextLROResult",
|
2706
2892
|
polymorphicDiscriminator: AnalyzeTextLROResult.type.polymorphicDiscriminator,
|
2707
|
-
modelProperties:
|
2893
|
+
modelProperties: {
|
2894
|
+
...AnalyzeTextLROResult.type.modelProperties,
|
2895
|
+
results: {
|
2708
2896
|
serializedName: "results",
|
2709
2897
|
type: {
|
2710
2898
|
name: "Composite",
|
2711
2899
|
className: "SentimentResponse"
|
2712
2900
|
}
|
2713
|
-
}
|
2901
|
+
}
|
2902
|
+
}
|
2714
2903
|
}
|
2715
2904
|
};
|
2716
2905
|
const KeyPhraseExtractionLROResult = {
|
@@ -2720,13 +2909,16 @@ const KeyPhraseExtractionLROResult = {
|
|
2720
2909
|
className: "KeyPhraseExtractionLROResult",
|
2721
2910
|
uberParent: "AnalyzeTextLROResult",
|
2722
2911
|
polymorphicDiscriminator: AnalyzeTextLROResult.type.polymorphicDiscriminator,
|
2723
|
-
modelProperties:
|
2912
|
+
modelProperties: {
|
2913
|
+
...AnalyzeTextLROResult.type.modelProperties,
|
2914
|
+
results: {
|
2724
2915
|
serializedName: "results",
|
2725
2916
|
type: {
|
2726
2917
|
name: "Composite",
|
2727
2918
|
className: "KeyPhraseResult"
|
2728
2919
|
}
|
2729
|
-
}
|
2920
|
+
}
|
2921
|
+
}
|
2730
2922
|
}
|
2731
2923
|
};
|
2732
2924
|
const AbstractiveSummarizationLROResult = {
|
@@ -2736,59 +2928,73 @@ const AbstractiveSummarizationLROResult = {
|
|
2736
2928
|
className: "AbstractiveSummarizationLROResult",
|
2737
2929
|
uberParent: "AnalyzeTextLROResult",
|
2738
2930
|
polymorphicDiscriminator: AnalyzeTextLROResult.type.polymorphicDiscriminator,
|
2739
|
-
modelProperties:
|
2931
|
+
modelProperties: {
|
2932
|
+
...AnalyzeTextLROResult.type.modelProperties,
|
2933
|
+
results: {
|
2740
2934
|
serializedName: "results",
|
2741
2935
|
type: {
|
2742
2936
|
name: "Composite",
|
2743
2937
|
className: "AbstractiveSummarizationResult"
|
2744
2938
|
}
|
2745
|
-
}
|
2939
|
+
}
|
2940
|
+
}
|
2746
2941
|
}
|
2747
2942
|
};
|
2748
2943
|
const EntityLinkingAction = {
|
2749
2944
|
type: {
|
2750
2945
|
name: "Composite",
|
2751
2946
|
className: "EntityLinkingAction",
|
2752
|
-
modelProperties:
|
2947
|
+
modelProperties: {
|
2948
|
+
...ActionPrebuilt.type.modelProperties,
|
2949
|
+
stringIndexType: {
|
2753
2950
|
defaultValue: "Utf16CodeUnit",
|
2754
2951
|
serializedName: "stringIndexType",
|
2755
2952
|
type: {
|
2756
2953
|
name: "String"
|
2757
2954
|
}
|
2758
|
-
}
|
2955
|
+
}
|
2956
|
+
}
|
2759
2957
|
}
|
2760
2958
|
};
|
2761
2959
|
const EntityRecognitionAction = {
|
2762
2960
|
type: {
|
2763
2961
|
name: "Composite",
|
2764
2962
|
className: "EntityRecognitionAction",
|
2765
|
-
modelProperties:
|
2963
|
+
modelProperties: {
|
2964
|
+
...ActionPrebuilt.type.modelProperties,
|
2965
|
+
stringIndexType: {
|
2766
2966
|
defaultValue: "Utf16CodeUnit",
|
2767
2967
|
serializedName: "stringIndexType",
|
2768
2968
|
type: {
|
2769
2969
|
name: "String"
|
2770
2970
|
}
|
2771
|
-
}
|
2971
|
+
}
|
2972
|
+
}
|
2772
2973
|
}
|
2773
2974
|
};
|
2774
2975
|
const KeyPhraseExtractionAction = {
|
2775
2976
|
type: {
|
2776
2977
|
name: "Composite",
|
2777
2978
|
className: "KeyPhraseExtractionAction",
|
2778
|
-
modelProperties:
|
2979
|
+
modelProperties: {
|
2980
|
+
...ActionPrebuilt.type.modelProperties
|
2981
|
+
}
|
2779
2982
|
}
|
2780
2983
|
};
|
2781
2984
|
const PiiEntityRecognitionAction = {
|
2782
2985
|
type: {
|
2783
2986
|
name: "Composite",
|
2784
2987
|
className: "PiiEntityRecognitionAction",
|
2785
|
-
modelProperties:
|
2988
|
+
modelProperties: {
|
2989
|
+
...ActionPrebuilt.type.modelProperties,
|
2990
|
+
domainFilter: {
|
2786
2991
|
defaultValue: "none",
|
2787
2992
|
serializedName: "domain",
|
2788
2993
|
type: {
|
2789
2994
|
name: "String"
|
2790
2995
|
}
|
2791
|
-
},
|
2996
|
+
},
|
2997
|
+
categoriesFilter: {
|
2792
2998
|
constraints: {
|
2793
2999
|
UniqueItems: true
|
2794
3000
|
},
|
@@ -2801,160 +3007,199 @@ const PiiEntityRecognitionAction = {
|
|
2801
3007
|
}
|
2802
3008
|
}
|
2803
3009
|
}
|
2804
|
-
},
|
3010
|
+
},
|
3011
|
+
stringIndexType: {
|
2805
3012
|
defaultValue: "Utf16CodeUnit",
|
2806
3013
|
serializedName: "stringIndexType",
|
2807
3014
|
type: {
|
2808
3015
|
name: "String"
|
2809
3016
|
}
|
2810
|
-
}
|
3017
|
+
}
|
3018
|
+
}
|
2811
3019
|
}
|
2812
3020
|
};
|
2813
3021
|
const LanguageDetectionAction = {
|
2814
3022
|
type: {
|
2815
3023
|
name: "Composite",
|
2816
3024
|
className: "LanguageDetectionAction",
|
2817
|
-
modelProperties:
|
3025
|
+
modelProperties: {
|
3026
|
+
...ActionPrebuilt.type.modelProperties
|
3027
|
+
}
|
2818
3028
|
}
|
2819
3029
|
};
|
2820
3030
|
const SentimentAnalysisAction = {
|
2821
3031
|
type: {
|
2822
3032
|
name: "Composite",
|
2823
3033
|
className: "SentimentAnalysisAction",
|
2824
|
-
modelProperties:
|
3034
|
+
modelProperties: {
|
3035
|
+
...ActionPrebuilt.type.modelProperties,
|
3036
|
+
includeOpinionMining: {
|
2825
3037
|
defaultValue: false,
|
2826
3038
|
serializedName: "opinionMining",
|
2827
3039
|
type: {
|
2828
3040
|
name: "Boolean"
|
2829
3041
|
}
|
2830
|
-
},
|
3042
|
+
},
|
3043
|
+
stringIndexType: {
|
2831
3044
|
defaultValue: "Utf16CodeUnit",
|
2832
3045
|
serializedName: "stringIndexType",
|
2833
3046
|
type: {
|
2834
3047
|
name: "String"
|
2835
3048
|
}
|
2836
|
-
}
|
3049
|
+
}
|
3050
|
+
}
|
2837
3051
|
}
|
2838
3052
|
};
|
2839
3053
|
const HealthcareAction = {
|
2840
3054
|
type: {
|
2841
3055
|
name: "Composite",
|
2842
3056
|
className: "HealthcareAction",
|
2843
|
-
modelProperties:
|
3057
|
+
modelProperties: {
|
3058
|
+
...ActionPrebuilt.type.modelProperties,
|
3059
|
+
stringIndexType: {
|
2844
3060
|
defaultValue: "Utf16CodeUnit",
|
2845
3061
|
serializedName: "stringIndexType",
|
2846
3062
|
type: {
|
2847
3063
|
name: "String"
|
2848
3064
|
}
|
2849
|
-
}
|
3065
|
+
}
|
3066
|
+
}
|
2850
3067
|
}
|
2851
3068
|
};
|
2852
3069
|
const ExtractiveSummarizationAction = {
|
2853
3070
|
type: {
|
2854
3071
|
name: "Composite",
|
2855
3072
|
className: "ExtractiveSummarizationAction",
|
2856
|
-
modelProperties:
|
3073
|
+
modelProperties: {
|
3074
|
+
...ActionPrebuilt.type.modelProperties,
|
3075
|
+
maxSentenceCount: {
|
2857
3076
|
defaultValue: 3,
|
2858
3077
|
serializedName: "sentenceCount",
|
2859
3078
|
type: {
|
2860
3079
|
name: "Number"
|
2861
3080
|
}
|
2862
|
-
},
|
3081
|
+
},
|
3082
|
+
orderBy: {
|
2863
3083
|
defaultValue: "Offset",
|
2864
3084
|
serializedName: "sortBy",
|
2865
3085
|
type: {
|
2866
3086
|
name: "String"
|
2867
3087
|
}
|
2868
|
-
},
|
3088
|
+
},
|
3089
|
+
stringIndexType: {
|
2869
3090
|
defaultValue: "Utf16CodeUnit",
|
2870
3091
|
serializedName: "stringIndexType",
|
2871
3092
|
type: {
|
2872
3093
|
name: "String"
|
2873
3094
|
}
|
2874
|
-
}
|
3095
|
+
}
|
3096
|
+
}
|
2875
3097
|
}
|
2876
3098
|
};
|
2877
3099
|
const CustomEntityRecognitionAction = {
|
2878
3100
|
type: {
|
2879
3101
|
name: "Composite",
|
2880
3102
|
className: "CustomEntityRecognitionAction",
|
2881
|
-
modelProperties:
|
3103
|
+
modelProperties: {
|
3104
|
+
...ActionCustom.type.modelProperties,
|
3105
|
+
stringIndexType: {
|
2882
3106
|
defaultValue: "Utf16CodeUnit",
|
2883
3107
|
serializedName: "stringIndexType",
|
2884
3108
|
type: {
|
2885
3109
|
name: "String"
|
2886
3110
|
}
|
2887
|
-
}
|
3111
|
+
}
|
3112
|
+
}
|
2888
3113
|
}
|
2889
3114
|
};
|
2890
3115
|
const CustomSingleLabelClassificationAction = {
|
2891
3116
|
type: {
|
2892
3117
|
name: "Composite",
|
2893
3118
|
className: "CustomSingleLabelClassificationAction",
|
2894
|
-
modelProperties:
|
3119
|
+
modelProperties: {
|
3120
|
+
...ActionCustom.type.modelProperties
|
3121
|
+
}
|
2895
3122
|
}
|
2896
3123
|
};
|
2897
3124
|
const CustomMultiLabelClassificationAction = {
|
2898
3125
|
type: {
|
2899
3126
|
name: "Composite",
|
2900
3127
|
className: "CustomMultiLabelClassificationAction",
|
2901
|
-
modelProperties:
|
3128
|
+
modelProperties: {
|
3129
|
+
...ActionCustom.type.modelProperties
|
3130
|
+
}
|
2902
3131
|
}
|
2903
3132
|
};
|
2904
3133
|
const CustomEntitiesResultDocumentsItem = {
|
2905
3134
|
type: {
|
2906
3135
|
name: "Composite",
|
2907
3136
|
className: "CustomEntitiesResultDocumentsItem",
|
2908
|
-
modelProperties:
|
3137
|
+
modelProperties: {
|
3138
|
+
...EntitiesDocumentResult.type.modelProperties
|
3139
|
+
}
|
2909
3140
|
}
|
2910
3141
|
};
|
2911
3142
|
const EntitiesResultDocumentsItem = {
|
2912
3143
|
type: {
|
2913
3144
|
name: "Composite",
|
2914
3145
|
className: "EntitiesResultDocumentsItem",
|
2915
|
-
modelProperties:
|
3146
|
+
modelProperties: {
|
3147
|
+
...EntitiesDocumentResult.type.modelProperties
|
3148
|
+
}
|
2916
3149
|
}
|
2917
3150
|
};
|
2918
3151
|
const CustomLabelClassificationResultDocumentsItem = {
|
2919
3152
|
type: {
|
2920
3153
|
name: "Composite",
|
2921
3154
|
className: "CustomLabelClassificationResultDocumentsItem",
|
2922
|
-
modelProperties:
|
3155
|
+
modelProperties: {
|
3156
|
+
...ClassificationDocumentResult.type.modelProperties
|
3157
|
+
}
|
2923
3158
|
}
|
2924
3159
|
};
|
2925
3160
|
const HealthcareResultDocumentsItem = {
|
2926
3161
|
type: {
|
2927
3162
|
name: "Composite",
|
2928
3163
|
className: "HealthcareResultDocumentsItem",
|
2929
|
-
modelProperties:
|
3164
|
+
modelProperties: {
|
3165
|
+
...HealthcareEntitiesDocumentResult.type.modelProperties
|
3166
|
+
}
|
2930
3167
|
}
|
2931
3168
|
};
|
2932
3169
|
const SentimentResponseDocumentsItem = {
|
2933
3170
|
type: {
|
2934
3171
|
name: "Composite",
|
2935
3172
|
className: "SentimentResponseDocumentsItem",
|
2936
|
-
modelProperties:
|
3173
|
+
modelProperties: {
|
3174
|
+
...SentimentDocumentResult.type.modelProperties
|
3175
|
+
}
|
2937
3176
|
}
|
2938
3177
|
};
|
2939
3178
|
const EntityLinkingResultDocumentsItem = {
|
2940
3179
|
type: {
|
2941
3180
|
name: "Composite",
|
2942
3181
|
className: "EntityLinkingResultDocumentsItem",
|
2943
|
-
modelProperties:
|
3182
|
+
modelProperties: {
|
3183
|
+
...LinkedEntitiesDocumentResult.type.modelProperties
|
3184
|
+
}
|
2944
3185
|
}
|
2945
3186
|
};
|
2946
3187
|
const PiiResultDocumentsItem = {
|
2947
3188
|
type: {
|
2948
3189
|
name: "Composite",
|
2949
3190
|
className: "PiiResultDocumentsItem",
|
2950
|
-
modelProperties:
|
3191
|
+
modelProperties: {
|
3192
|
+
...PiiEntitiesDocumentResult.type.modelProperties
|
3193
|
+
}
|
2951
3194
|
}
|
2952
3195
|
};
|
2953
3196
|
const KeyPhraseResultDocumentsItem = {
|
2954
3197
|
type: {
|
2955
3198
|
name: "Composite",
|
2956
3199
|
className: "KeyPhraseResultDocumentsItem",
|
2957
|
-
modelProperties:
|
3200
|
+
modelProperties: {
|
3201
|
+
...KeyPhrasesDocumentResult.type.modelProperties
|
3202
|
+
}
|
2958
3203
|
}
|
2959
3204
|
};
|
2960
3205
|
const GeneratedClientAnalyzeBatchHeaders = {
|
@@ -3268,7 +3513,9 @@ function toTextAnalysisError(errorModel) {
|
|
3268
3513
|
if (errorModel.innererror !== undefined) {
|
3269
3514
|
return toTextAnalysisError(errorModel.innererror);
|
3270
3515
|
}
|
3271
|
-
return
|
3516
|
+
return {
|
3517
|
+
...errorModel,
|
3518
|
+
};
|
3272
3519
|
}
|
3273
3520
|
function makeTextAnalysisErrorResult(id, error) {
|
3274
3521
|
return {
|
@@ -3293,10 +3540,10 @@ function transformDocumentResults(ids, response, options) {
|
|
3293
3540
|
}
|
3294
3541
|
function toLanguageDetectionResult(docIds, results) {
|
3295
3542
|
return transformDocumentResults(docIds, results, {
|
3296
|
-
processSuccess: (
|
3297
|
-
|
3298
|
-
|
3299
|
-
},
|
3543
|
+
processSuccess: ({ detectedLanguage, ...rest }) => ({
|
3544
|
+
primaryLanguage: detectedLanguage,
|
3545
|
+
...rest,
|
3546
|
+
}),
|
3300
3547
|
});
|
3301
3548
|
}
|
3302
3549
|
function toPiiEntityRecognitionResult(docIds, results) {
|
@@ -3304,10 +3551,10 @@ function toPiiEntityRecognitionResult(docIds, results) {
|
|
3304
3551
|
}
|
3305
3552
|
function toSentimentAnalysisResult(docIds, results) {
|
3306
3553
|
return transformDocumentResults(docIds, results, {
|
3307
|
-
processSuccess: (
|
3308
|
-
|
3309
|
-
|
3310
|
-
},
|
3554
|
+
processSuccess: ({ sentences, ...rest }) => ({
|
3555
|
+
...rest,
|
3556
|
+
sentences: sentences.map((sentence) => convertGeneratedSentenceSentiment(sentence, sentences)),
|
3557
|
+
}),
|
3311
3558
|
});
|
3312
3559
|
}
|
3313
3560
|
/**
|
@@ -3319,20 +3566,18 @@ function toSentimentAnalysisResult(docIds, results) {
|
|
3319
3566
|
* @returns The user-friendly sentence sentiment object.
|
3320
3567
|
* @internal
|
3321
3568
|
*/
|
3322
|
-
function convertGeneratedSentenceSentiment(
|
3323
|
-
|
3324
|
-
|
3325
|
-
|
3569
|
+
function convertGeneratedSentenceSentiment({ targets, assessments: _, ...rest }, sentences) {
|
3570
|
+
return {
|
3571
|
+
...rest,
|
3572
|
+
opinions: targets?.map(
|
3326
3573
|
// eslint-disable-next-line @typescript-eslint/no-shadow
|
3327
|
-
(
|
3328
|
-
|
3329
|
-
|
3330
|
-
|
3331
|
-
|
3332
|
-
|
3333
|
-
|
3334
|
-
});
|
3335
|
-
})) !== null && _b !== void 0 ? _b : [] });
|
3574
|
+
({ relations, ...rest }) => ({
|
3575
|
+
target: rest,
|
3576
|
+
assessments: relations
|
3577
|
+
.filter((relation) => relation.relationType === "assessment")
|
3578
|
+
.map((relation) => convertTargetRelationToAssessmentSentiment(relation, sentences)),
|
3579
|
+
})) ?? [],
|
3580
|
+
};
|
3336
3581
|
}
|
3337
3582
|
/**
|
3338
3583
|
* Converts a target relation object returned by the service to an assessment
|
@@ -3345,10 +3590,9 @@ function convertGeneratedSentenceSentiment(_a, sentences) {
|
|
3345
3590
|
* @internal
|
3346
3591
|
*/
|
3347
3592
|
function convertTargetRelationToAssessmentSentiment(targetRelation, sentences) {
|
3348
|
-
var _a;
|
3349
3593
|
const assessmentPtr = targetRelation.ref;
|
3350
3594
|
const assessmentIndex = parseAssessmentIndex(assessmentPtr);
|
3351
|
-
const assessment =
|
3595
|
+
const assessment = sentences?.[assessmentIndex.sentence].assessments?.[assessmentIndex.assessment];
|
3352
3596
|
if (assessment !== undefined) {
|
3353
3597
|
return assessment;
|
3354
3598
|
}
|
@@ -3407,12 +3651,11 @@ function appendReadableErrorMessage(currentMessage, innerMessage) {
|
|
3407
3651
|
* @param error - the incoming error
|
3408
3652
|
*/
|
3409
3653
|
function transformError(errorResponse) {
|
3410
|
-
var _a;
|
3411
3654
|
const strongErrorResponse = errorResponse;
|
3412
3655
|
if (!strongErrorResponse.response) {
|
3413
3656
|
throw errorResponse;
|
3414
3657
|
}
|
3415
|
-
const topLevelError =
|
3658
|
+
const topLevelError = strongErrorResponse.response.parsedBody?.error;
|
3416
3659
|
if (!topLevelError)
|
3417
3660
|
return errorResponse;
|
3418
3661
|
let errorMessage = topLevelError.message;
|
@@ -3446,8 +3689,11 @@ async function throwError(p) {
|
|
3446
3689
|
}
|
3447
3690
|
function toHealthcareResult(docIds, results) {
|
3448
3691
|
function makeHealthcareEntity(entity) {
|
3449
|
-
const { dataSources
|
3450
|
-
return
|
3692
|
+
const { dataSources, ...rest } = entity;
|
3693
|
+
return {
|
3694
|
+
dataSources: dataSources ?? [],
|
3695
|
+
...rest,
|
3696
|
+
};
|
3451
3697
|
}
|
3452
3698
|
function makeHealthcareRelation(entities) {
|
3453
3699
|
return ({ entities: generatedEntities, relationType, confidenceScore, }) => ({
|
@@ -3460,10 +3706,13 @@ function toHealthcareResult(docIds, results) {
|
|
3460
3706
|
});
|
3461
3707
|
}
|
3462
3708
|
return transformDocumentResults(docIds, results, {
|
3463
|
-
processSuccess: (
|
3464
|
-
var { entities, relations } = _a, rest = tslib.__rest(_a, ["entities", "relations"]);
|
3709
|
+
processSuccess: ({ entities, relations, ...rest }) => {
|
3465
3710
|
const newEntities = entities.map(makeHealthcareEntity);
|
3466
|
-
return
|
3711
|
+
return {
|
3712
|
+
entities: newEntities,
|
3713
|
+
entityRelations: relations.map(makeHealthcareRelation(newEntities)),
|
3714
|
+
...rest,
|
3715
|
+
};
|
3467
3716
|
},
|
3468
3717
|
});
|
3469
3718
|
}
|
@@ -3483,7 +3732,14 @@ function transformAnalyzeBatchResults(docIds, response = [], errors = []) {
|
|
3483
3732
|
}
|
3484
3733
|
const { results } = actionData;
|
3485
3734
|
const { modelVersion, statistics } = results;
|
3486
|
-
return
|
3735
|
+
return {
|
3736
|
+
kind,
|
3737
|
+
results: toSentimentAnalysisResult(docIds, results),
|
3738
|
+
completedOn,
|
3739
|
+
...(actionName ? { actionName } : {}),
|
3740
|
+
...(statistics ? { statistics } : {}),
|
3741
|
+
modelVersion,
|
3742
|
+
};
|
3487
3743
|
}
|
3488
3744
|
case "EntityRecognitionLROResults": {
|
3489
3745
|
const kind = "EntityRecognition";
|
@@ -3492,7 +3748,14 @@ function transformAnalyzeBatchResults(docIds, response = [], errors = []) {
|
|
3492
3748
|
}
|
3493
3749
|
const { results } = actionData;
|
3494
3750
|
const { modelVersion, statistics } = results;
|
3495
|
-
return
|
3751
|
+
return {
|
3752
|
+
kind: "EntityRecognition",
|
3753
|
+
results: toEntityRecognitionResult(docIds, results),
|
3754
|
+
completedOn,
|
3755
|
+
...(actionName ? { actionName } : {}),
|
3756
|
+
...(statistics ? { statistics } : {}),
|
3757
|
+
modelVersion,
|
3758
|
+
};
|
3496
3759
|
}
|
3497
3760
|
case "PiiEntityRecognitionLROResults": {
|
3498
3761
|
const kind = "PiiEntityRecognition";
|
@@ -3501,7 +3764,14 @@ function transformAnalyzeBatchResults(docIds, response = [], errors = []) {
|
|
3501
3764
|
}
|
3502
3765
|
const { results } = actionData;
|
3503
3766
|
const { modelVersion, statistics } = results;
|
3504
|
-
return
|
3767
|
+
return {
|
3768
|
+
kind,
|
3769
|
+
results: toPiiEntityRecognitionResult(docIds, results),
|
3770
|
+
completedOn,
|
3771
|
+
...(actionName ? { actionName } : {}),
|
3772
|
+
...(statistics ? { statistics } : {}),
|
3773
|
+
modelVersion,
|
3774
|
+
};
|
3505
3775
|
}
|
3506
3776
|
case "KeyPhraseExtractionLROResults": {
|
3507
3777
|
const kind = "KeyPhraseExtraction";
|
@@ -3510,7 +3780,14 @@ function transformAnalyzeBatchResults(docIds, response = [], errors = []) {
|
|
3510
3780
|
}
|
3511
3781
|
const { results } = actionData;
|
3512
3782
|
const { modelVersion, statistics } = results;
|
3513
|
-
return
|
3783
|
+
return {
|
3784
|
+
kind,
|
3785
|
+
results: toKeyPhraseExtractionResult(docIds, results),
|
3786
|
+
completedOn,
|
3787
|
+
...(actionName ? { actionName } : {}),
|
3788
|
+
...(statistics ? { statistics } : {}),
|
3789
|
+
modelVersion,
|
3790
|
+
};
|
3514
3791
|
}
|
3515
3792
|
case "EntityLinkingLROResults": {
|
3516
3793
|
const kind = "EntityLinking";
|
@@ -3519,7 +3796,14 @@ function transformAnalyzeBatchResults(docIds, response = [], errors = []) {
|
|
3519
3796
|
}
|
3520
3797
|
const { results } = actionData;
|
3521
3798
|
const { modelVersion, statistics } = results;
|
3522
|
-
return
|
3799
|
+
return {
|
3800
|
+
kind,
|
3801
|
+
results: toEntityLinkingResult(docIds, results),
|
3802
|
+
completedOn,
|
3803
|
+
...(actionName ? { actionName } : {}),
|
3804
|
+
...(statistics ? { statistics } : {}),
|
3805
|
+
modelVersion,
|
3806
|
+
};
|
3523
3807
|
}
|
3524
3808
|
case "HealthcareLROResults": {
|
3525
3809
|
const kind = "Healthcare";
|
@@ -3528,7 +3812,14 @@ function transformAnalyzeBatchResults(docIds, response = [], errors = []) {
|
|
3528
3812
|
}
|
3529
3813
|
const { results } = actionData;
|
3530
3814
|
const { modelVersion, statistics } = results;
|
3531
|
-
return
|
3815
|
+
return {
|
3816
|
+
kind,
|
3817
|
+
results: toHealthcareResult(docIds, results),
|
3818
|
+
completedOn,
|
3819
|
+
...(actionName ? { actionName } : {}),
|
3820
|
+
...(statistics ? { statistics } : {}),
|
3821
|
+
modelVersion,
|
3822
|
+
};
|
3532
3823
|
}
|
3533
3824
|
case "CustomEntityRecognitionLROResults": {
|
3534
3825
|
const kind = "CustomEntityRecognition";
|
@@ -3537,8 +3828,15 @@ function transformAnalyzeBatchResults(docIds, response = [], errors = []) {
|
|
3537
3828
|
}
|
3538
3829
|
const { results } = actionData;
|
3539
3830
|
const { deploymentName, projectName, statistics } = results;
|
3540
|
-
return
|
3541
|
-
|
3831
|
+
return {
|
3832
|
+
kind,
|
3833
|
+
results: transformDocumentResults(docIds, results),
|
3834
|
+
completedOn,
|
3835
|
+
...(actionName ? { actionName } : {}),
|
3836
|
+
...(statistics ? { statistics } : {}),
|
3837
|
+
deploymentName,
|
3838
|
+
projectName,
|
3839
|
+
};
|
3542
3840
|
}
|
3543
3841
|
case "CustomSingleLabelClassificationLROResults": {
|
3544
3842
|
const kind = "CustomSingleLabelClassification";
|
@@ -3547,8 +3845,15 @@ function transformAnalyzeBatchResults(docIds, response = [], errors = []) {
|
|
3547
3845
|
}
|
3548
3846
|
const { results } = actionData;
|
3549
3847
|
const { deploymentName, projectName, statistics } = results;
|
3550
|
-
return
|
3551
|
-
|
3848
|
+
return {
|
3849
|
+
kind,
|
3850
|
+
results: transformDocumentResults(docIds, results),
|
3851
|
+
completedOn,
|
3852
|
+
...(actionName ? { actionName } : {}),
|
3853
|
+
...(statistics ? { statistics } : {}),
|
3854
|
+
deploymentName,
|
3855
|
+
projectName,
|
3856
|
+
};
|
3552
3857
|
}
|
3553
3858
|
case "CustomMultiLabelClassificationLROResults": {
|
3554
3859
|
const kind = "CustomMultiLabelClassification";
|
@@ -3557,8 +3862,15 @@ function transformAnalyzeBatchResults(docIds, response = [], errors = []) {
|
|
3557
3862
|
}
|
3558
3863
|
const { results } = actionData;
|
3559
3864
|
const { deploymentName, projectName, statistics } = results;
|
3560
|
-
return
|
3561
|
-
|
3865
|
+
return {
|
3866
|
+
kind,
|
3867
|
+
results: transformDocumentResults(docIds, results),
|
3868
|
+
completedOn,
|
3869
|
+
...(actionName ? { actionName } : {}),
|
3870
|
+
...(statistics ? { statistics } : {}),
|
3871
|
+
deploymentName,
|
3872
|
+
projectName,
|
3873
|
+
};
|
3562
3874
|
}
|
3563
3875
|
case "ExtractiveSummarizationLROResults": {
|
3564
3876
|
const kind = "ExtractiveSummarization";
|
@@ -3567,7 +3879,14 @@ function transformAnalyzeBatchResults(docIds, response = [], errors = []) {
|
|
3567
3879
|
}
|
3568
3880
|
const { results } = actionData;
|
3569
3881
|
const { modelVersion, statistics } = results;
|
3570
|
-
return
|
3882
|
+
return {
|
3883
|
+
kind: "ExtractiveSummarization",
|
3884
|
+
results: transformDocumentResults(docIds, results),
|
3885
|
+
completedOn,
|
3886
|
+
...(actionName ? { actionName } : {}),
|
3887
|
+
...(statistics ? { statistics } : {}),
|
3888
|
+
modelVersion,
|
3889
|
+
};
|
3571
3890
|
}
|
3572
3891
|
case "AbstractiveSummarizationLROResults": {
|
3573
3892
|
const kind = "AbstractiveSummarization";
|
@@ -3576,7 +3895,14 @@ function transformAnalyzeBatchResults(docIds, response = [], errors = []) {
|
|
3576
3895
|
}
|
3577
3896
|
const { results } = actionData;
|
3578
3897
|
const { modelVersion, statistics } = results;
|
3579
|
-
return
|
3898
|
+
return {
|
3899
|
+
kind: "AbstractiveSummarization",
|
3900
|
+
results: transformDocumentResults(docIds, results),
|
3901
|
+
completedOn,
|
3902
|
+
...(actionName ? { actionName } : {}),
|
3903
|
+
...(statistics ? { statistics } : {}),
|
3904
|
+
modelVersion,
|
3905
|
+
};
|
3580
3906
|
}
|
3581
3907
|
default: {
|
3582
3908
|
throw new Error(`Unsupported results kind: ${resultKind}`);
|
@@ -3592,7 +3918,7 @@ function toIndexErrorMap(errors) {
|
|
3592
3918
|
const errorMap = new Map();
|
3593
3919
|
for (const error of errors) {
|
3594
3920
|
const position = extractErrorPointerIndex(error);
|
3595
|
-
const errorWithoutTarget =
|
3921
|
+
const { target, ...errorWithoutTarget } = error;
|
3596
3922
|
errorMap.set(position, toTextAnalysisError(errorWithoutTarget));
|
3597
3923
|
}
|
3598
3924
|
return errorMap;
|
@@ -3655,11 +3981,13 @@ const jobStatusOperationSpec$1 = {
|
|
3655
3981
|
serializer: serializer$2,
|
3656
3982
|
};
|
3657
3983
|
function addOnResponse(options, cb) {
|
3658
|
-
return
|
3659
|
-
|
3984
|
+
return {
|
3985
|
+
...options,
|
3986
|
+
onResponse: (rawResponse, response, error) => {
|
3660
3987
|
cb(rawResponse, response, error);
|
3661
|
-
|
3662
|
-
}
|
3988
|
+
options.onResponse?.(rawResponse, response, error);
|
3989
|
+
},
|
3990
|
+
};
|
3663
3991
|
}
|
3664
3992
|
function logWarnHeader(rawResponse) {
|
3665
3993
|
const warnHeader = rawResponse.headers.get("warn-text");
|
@@ -3683,8 +4011,11 @@ async function getRawResponse(getResponse, options) {
|
|
3683
4011
|
}
|
3684
4012
|
async function sendRequest(settings) {
|
3685
4013
|
const { client, opOptions, path, spanStr, spec, tracing, httpMethod = "GET" } = settings;
|
3686
|
-
return tracing.withSpan(spanStr, opOptions, async (finalOptions) => throwError(getRawResponse((options) => client.sendOperationRequest({ options },
|
3687
|
-
|
4014
|
+
return tracing.withSpan(spanStr, opOptions, async (finalOptions) => throwError(getRawResponse((options) => client.sendOperationRequest({ options }, {
|
4015
|
+
...spec,
|
4016
|
+
path,
|
4017
|
+
httpMethod,
|
4018
|
+
}), finalOptions)));
|
3688
4019
|
}
|
3689
4020
|
/**
|
3690
4021
|
* @internal
|
@@ -3714,7 +4045,10 @@ function createAnalyzeBatchLro(settings) {
|
|
3714
4045
|
const { client, commonOptions, documents, initialRequestOptions, pollRequestOptions, tasks, tracing, } = settings;
|
3715
4046
|
return {
|
3716
4047
|
async sendInitialRequest() {
|
3717
|
-
return tracing.withSpan(`${clientName}.beginAnalyzeBatch`, addOnResponse(
|
4048
|
+
return tracing.withSpan(`${clientName}.beginAnalyzeBatch`, addOnResponse({
|
4049
|
+
...commonOptions,
|
4050
|
+
...initialRequestOptions,
|
4051
|
+
}, logWarnHeader), async (finalOptions) => throwError(getRawResponse((paramOptions) => client.analyzeBatch({
|
3718
4052
|
tasks,
|
3719
4053
|
analysisInput: {
|
3720
4054
|
documents,
|
@@ -3724,7 +4058,7 @@ function createAnalyzeBatchLro(settings) {
|
|
3724
4058
|
},
|
3725
4059
|
sendPollRequest: createSendPollRequest({
|
3726
4060
|
client,
|
3727
|
-
options:
|
4061
|
+
options: { ...commonOptions, ...pollRequestOptions },
|
3728
4062
|
spanStr: `${clientName}.beginAnalyzeBatch`,
|
3729
4063
|
tracing,
|
3730
4064
|
}),
|
@@ -3776,7 +4110,7 @@ function processAnalyzeResult(options) {
|
|
3776
4110
|
spanStr: `${clientName}.beginAnalyzeBatch`,
|
3777
4111
|
// if `top` is set to `undefined`, the default value will not be sent
|
3778
4112
|
// as part of the request.
|
3779
|
-
opOptions: maxPageSize ?
|
4113
|
+
opOptions: maxPageSize ? { ...opOptions, top: maxPageSize } : opOptions,
|
3780
4114
|
path: pageLink,
|
3781
4115
|
tracing,
|
3782
4116
|
});
|
@@ -3816,9 +4150,12 @@ function createUpdateAnalyzeState(docIds) {
|
|
3816
4150
|
*/
|
3817
4151
|
function createPollerWithCancellation(settings) {
|
3818
4152
|
const { client, options, poller, id, tracing } = settings;
|
3819
|
-
return
|
4153
|
+
return {
|
4154
|
+
...poller,
|
4155
|
+
sendCancellationRequest: async () => {
|
3820
4156
|
await tracing.withSpan(`${clientName}.beginAnalyzeBatch`, options, async (finalOptions) => throwError(getRawResponse((paramOptions) => client.analyzeText.cancelJob(id, paramOptions), finalOptions)));
|
3821
|
-
}
|
4157
|
+
},
|
4158
|
+
};
|
3822
4159
|
}
|
3823
4160
|
|
3824
4161
|
/*
|
@@ -3912,7 +4249,6 @@ class GeneratedClient extends coreClient__namespace.ServiceClient {
|
|
3912
4249
|
* @param options The parameter options
|
3913
4250
|
*/
|
3914
4251
|
constructor(endpoint, options) {
|
3915
|
-
var _a, _b;
|
3916
4252
|
if (endpoint === undefined) {
|
3917
4253
|
throw new Error("'endpoint' cannot be null");
|
3918
4254
|
}
|
@@ -3927,9 +4263,14 @@ class GeneratedClient extends coreClient__namespace.ServiceClient {
|
|
3927
4263
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
3928
4264
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
3929
4265
|
: `${packageDetails}`;
|
3930
|
-
const optionsWithDefaults =
|
4266
|
+
const optionsWithDefaults = {
|
4267
|
+
...defaults,
|
4268
|
+
...options,
|
4269
|
+
userAgentOptions: {
|
3931
4270
|
userAgentPrefix
|
3932
|
-
},
|
4271
|
+
},
|
4272
|
+
endpoint: options.endpoint ?? options.baseUri ?? "{Endpoint}/language"
|
4273
|
+
};
|
3933
4274
|
super(optionsWithDefaults);
|
3934
4275
|
// Parameter assignments
|
3935
4276
|
this.endpoint = endpoint;
|
@@ -4084,15 +4425,19 @@ function textAnalyticsAzureKeyCredentialPolicy(credential) {
|
|
4084
4425
|
*/
|
4085
4426
|
class TextAnalysisClient {
|
4086
4427
|
constructor(endpointUrl, credential, options = {}) {
|
4087
|
-
const { defaultCountryHint = "us", defaultLanguage = "en", serviceVersion
|
4428
|
+
const { defaultCountryHint = "us", defaultLanguage = "en", serviceVersion, ...pipelineOptions } = options;
|
4088
4429
|
this.defaultCountryHint = defaultCountryHint;
|
4089
4430
|
this.defaultLanguage = defaultLanguage;
|
4090
|
-
const internalPipelineOptions =
|
4091
|
-
|
4092
|
-
|
4093
|
-
|
4431
|
+
const internalPipelineOptions = {
|
4432
|
+
...pipelineOptions,
|
4433
|
+
...{
|
4434
|
+
loggingOptions: {
|
4435
|
+
logger: logger.info,
|
4436
|
+
additionalAllowedHeaderNames: ["x-ms-correlation-request-id", "x-ms-request-id"],
|
4437
|
+
},
|
4094
4438
|
},
|
4095
|
-
|
4439
|
+
apiVersion: serviceVersion,
|
4440
|
+
};
|
4096
4441
|
this._client = new GeneratedClient(endpointUrl, internalPipelineOptions);
|
4097
4442
|
const authPolicy = coreAuth.isTokenCredential(credential)
|
4098
4443
|
? coreRestPipeline.bearerTokenAuthenticationPolicy({ credential, scopes: DEFAULT_COGNITIVE_SCOPE })
|
@@ -4142,14 +4487,13 @@ class TextAnalysisClient {
|
|
4142
4487
|
}
|
4143
4488
|
// implementation
|
4144
4489
|
async beginAnalyzeBatch(actions, documents, languageOrOptions, options = {}) {
|
4145
|
-
var _a;
|
4146
4490
|
let realOptions;
|
4147
4491
|
let realInputs;
|
4148
4492
|
if (!Array.isArray(documents) || documents.length === 0) {
|
4149
4493
|
throw new Error("'documents' must be a non-empty array");
|
4150
4494
|
}
|
4151
4495
|
if (isStringArray(documents)) {
|
4152
|
-
const languageCode =
|
4496
|
+
const languageCode = languageOrOptions ?? this.defaultLanguage;
|
4153
4497
|
realInputs = convertToTextDocumentInput(documents, languageCode);
|
4154
4498
|
realOptions = options;
|
4155
4499
|
}
|
@@ -4157,15 +4501,12 @@ class TextAnalysisClient {
|
|
4157
4501
|
realInputs = documents;
|
4158
4502
|
realOptions = languageOrOptions;
|
4159
4503
|
}
|
4160
|
-
const realActions = actions.map((
|
4161
|
-
|
4162
|
-
|
4163
|
-
|
4164
|
-
|
4165
|
-
|
4166
|
-
});
|
4167
|
-
});
|
4168
|
-
const { includeStatistics, updateIntervalInMs, displayName } = realOptions, rest = tslib.__rest(realOptions, ["includeStatistics", "updateIntervalInMs", "displayName"]);
|
4504
|
+
const realActions = actions.map(({ kind, actionName, ...rest }) => ({
|
4505
|
+
kind,
|
4506
|
+
actionName,
|
4507
|
+
parameters: rest,
|
4508
|
+
}));
|
4509
|
+
const { includeStatistics, updateIntervalInMs, displayName, ...rest } = realOptions;
|
4169
4510
|
const lro = createAnalyzeBatchLro({
|
4170
4511
|
client: this._client,
|
4171
4512
|
commonOptions: rest,
|
@@ -4183,7 +4524,7 @@ class TextAnalysisClient {
|
|
4183
4524
|
client: this._client,
|
4184
4525
|
tracing: this._tracing,
|
4185
4526
|
docIds,
|
4186
|
-
opOptions:
|
4527
|
+
opOptions: { ...rest, includeStatistics },
|
4187
4528
|
state,
|
4188
4529
|
}),
|
4189
4530
|
updateState: createUpdateAnalyzeState(docIds),
|
@@ -4203,11 +4544,11 @@ class TextAnalysisClient {
|
|
4203
4544
|
}
|
4204
4545
|
// implementation
|
4205
4546
|
async restoreAnalyzeBatchPoller(serializedState, options = {}) {
|
4206
|
-
const { includeStatistics, updateIntervalInMs
|
4547
|
+
const { includeStatistics, updateIntervalInMs, ...rest } = options;
|
4207
4548
|
const docIds = getDocIDsFromState(serializedState);
|
4208
4549
|
const lro = createCreateAnalyzeBatchPollerLro({
|
4209
4550
|
client: this._client,
|
4210
|
-
options:
|
4551
|
+
options: { ...rest, includeStatistics },
|
4211
4552
|
tracing: this._tracing,
|
4212
4553
|
});
|
4213
4554
|
const state = { continuationToken: "" };
|
@@ -4218,7 +4559,7 @@ class TextAnalysisClient {
|
|
4218
4559
|
client: this._client,
|
4219
4560
|
tracing: this._tracing,
|
4220
4561
|
docIds,
|
4221
|
-
opOptions:
|
4562
|
+
opOptions: { ...rest, includeStatistics },
|
4222
4563
|
state,
|
4223
4564
|
}),
|
4224
4565
|
updateState: createUpdateAnalyzeState(),
|
@@ -5002,7 +5343,7 @@ const AnalyzeBatchActionNames = {
|
|
5002
5343
|
/**
|
5003
5344
|
* Enum of possible error codes of a {@link TextAnalysisError}.
|
5004
5345
|
*/
|
5005
|
-
const KnownTextAnalysisErrorCode =
|
5346
|
+
const KnownTextAnalysisErrorCode = { ...exports.KnownErrorCode, ...exports.KnownInnerErrorCode };
|
5006
5347
|
|
5007
5348
|
Object.defineProperty(exports, "AzureKeyCredential", {
|
5008
5349
|
enumerable: true,
|