|
1140 | 1140 | "F1Score":{
|
1141 | 1141 | "shape":"Double",
|
1142 | 1142 | "documentation":"<p>A measure of how accurate the classifier results are for the test data. It is derived from the <code>Precision</code> and <code>Recall</code> values. The <code>F1Score</code> is the harmonic average of the two scores. The highest score is 1, and the worst score is 0. </p>"
|
| 1143 | + }, |
| 1144 | + "MicroPrecision":{ |
| 1145 | + "shape":"Double", |
| 1146 | + "documentation":"<p>A measure of the usefulness of the recognizer results in the test data. High precision means that the recognizer returned substantially more relevant results than irrelevant ones. Unlike the Precision metric which comes from averaging the precision of all available labels, this is based on the overall score of all precision scores added together.</p>" |
| 1147 | + }, |
| 1148 | + "MicroRecall":{ |
| 1149 | + "shape":"Double", |
| 1150 | + "documentation":"<p>A measure of how complete the classifier results are for the test data. High recall means that the classifier returned most of the relevant results. Specifically, this indicates how many of the correct categories in the text that the model can predict. It is a percentage of correct categories in the text that can found. Instead of averaging the recall scores of all labels (as with Recall), micro Recall is based on the overall score of all recall scores added together.</p>" |
| 1151 | + }, |
| 1152 | + "MicroF1Score":{ |
| 1153 | + "shape":"Double", |
| 1154 | + "documentation":"<p>A measure of how accurate the classifier results are for the test data. It is a combination of the <code>Micro Precision</code> and <code>Micro Recall</code> values. The <code>Micro F1Score</code> is the harmonic mean of the two scores. The highest score is 1, and the worst score is 0.</p>" |
| 1155 | + }, |
| 1156 | + "HammingLoss":{ |
| 1157 | + "shape":"Double", |
| 1158 | + "documentation":"<p>Indicates the fraction of labels that are incorrectly predicted. Also seen as the fraction of wrong labels compared to the total number of labels. Scores closer to zero are better.</p>" |
1143 | 1159 | }
|
1144 | 1160 | },
|
1145 | 1161 | "documentation":"<p>Describes the result metrics for the test data associated with an documentation classifier.</p>"
|
|
1189 | 1205 | "Classes":{
|
1190 | 1206 | "shape":"ListOfClasses",
|
1191 | 1207 | "documentation":"<p>The classes used by the document being analyzed. These are used for multi-class trained models. Individual classes are mutually exclusive and each document is expected to have only a single class assigned to it. For example, an animal can be a dog or a cat, but not both at the same time. </p>"
|
| 1208 | + }, |
| 1209 | + "Labels":{ |
| 1210 | + "shape":"ListOfLabels", |
| 1211 | + "documentation":"<p>The labels used the document being analyzed. These are used for multi-label trained models. Individual labels represent different categories that are related in some manner and are not multually exclusive. For example, a movie can be just an action movie, or it can be an action movie, a science fiction movie, and a comedy, all at the same time. </p>" |
1192 | 1212 | }
|
1193 | 1213 | }
|
1194 | 1214 | },
|
|
1276 | 1296 | "VpcConfig":{
|
1277 | 1297 | "shape":"VpcConfig",
|
1278 | 1298 | "documentation":"<p>Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for your custom classifier. For more information, see <a href=\"https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html\">Amazon VPC</a>. </p>"
|
| 1299 | + }, |
| 1300 | + "Mode":{ |
| 1301 | + "shape":"DocumentClassifierMode", |
| 1302 | + "documentation":"<p>Indicates the mode in which the classifier will be trained. The classifier can be trained in multi-class mode, which identifies one and only one class for each document, or multi-label mode, which identifies one or more labels for each document. In multi-label mode, multiple labels for an individual document are separated by a delimiter. The default delimiter between labels is a pipe (|).</p>" |
1279 | 1303 | }
|
1280 | 1304 | }
|
1281 | 1305 | },
|
|
1853 | 1877 | "S3Uri":{
|
1854 | 1878 | "shape":"S3Uri",
|
1855 | 1879 | "documentation":"<p>The Amazon S3 URI for the input data. The S3 bucket must be in the same region as the API endpoint that you are calling. The URI can point to a single input file or it can provide the prefix for a collection of input files.</p> <p>For example, if you use the URI <code>S3://bucketName/prefix</code>, if the prefix is a single file, Amazon Comprehend uses that file as input. If more than one file begins with the prefix, Amazon Comprehend uses all of them as input.</p>"
|
| 1880 | + }, |
| 1881 | + "LabelDelimiter":{ |
| 1882 | + "shape":"LabelDelimiter", |
| 1883 | + "documentation":"<p>Indicates the delimiter used to separate each label for training a multi-label classifier. The default delimiter between labels is a pipe (|). You can use a different character as a delimiter (if it's an allowed character) by specifying it under Delimiter for labels. If the training documents use a delimiter other than the default or the delimiter you specify, the labels on that line will be combined to make a single unique label, such as LABELLABELLABEL.</p>" |
1856 | 1884 | }
|
1857 | 1885 | },
|
1858 | 1886 | "documentation":"<p>The input properties for training a document classifier. </p> <p>For more information on how the input file is formatted, see <a>how-document-classification-training-data</a>. </p>"
|
1859 | 1887 | },
|
| 1888 | + "DocumentClassifierMode":{ |
| 1889 | + "type":"string", |
| 1890 | + "enum":[ |
| 1891 | + "MULTI_CLASS", |
| 1892 | + "MULTI_LABEL" |
| 1893 | + ] |
| 1894 | + }, |
1860 | 1895 | "DocumentClassifierOutputDataConfig":{
|
1861 | 1896 | "type":"structure",
|
1862 | 1897 | "members":{
|
|
1929 | 1964 | "VpcConfig":{
|
1930 | 1965 | "shape":"VpcConfig",
|
1931 | 1966 | "documentation":"<p> Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for your custom classifier. For more information, see <a href=\"https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html\">Amazon VPC</a>. </p>"
|
| 1967 | + }, |
| 1968 | + "Mode":{ |
| 1969 | + "shape":"DocumentClassifierMode", |
| 1970 | + "documentation":"<p>Indicates the mode in which the specific classifier was trained. This also indicates the format of input documents and the format of the confusion matrix. Each classifier can only be trained in one mode and this cannot be changed once the classifier is trained.</p>" |
1932 | 1971 | }
|
1933 | 1972 | },
|
1934 | 1973 | "documentation":"<p>Provides information about a document classifier.</p>"
|
|
1937 | 1976 | "type":"list",
|
1938 | 1977 | "member":{"shape":"DocumentClassifierProperties"}
|
1939 | 1978 | },
|
| 1979 | + "DocumentLabel":{ |
| 1980 | + "type":"structure", |
| 1981 | + "members":{ |
| 1982 | + "Name":{ |
| 1983 | + "shape":"String", |
| 1984 | + "documentation":"<p>The name of the label.</p>" |
| 1985 | + }, |
| 1986 | + "Score":{ |
| 1987 | + "shape":"Float", |
| 1988 | + "documentation":"<p>The confidence score that Amazon Comprehend has this label correctly attributed.</p>" |
| 1989 | + } |
| 1990 | + }, |
| 1991 | + "documentation":"<p>Specifies one of the label or labels that categorize the document being analyzed.</p>" |
| 1992 | + }, |
1940 | 1993 | "DominantLanguage":{
|
1941 | 1994 | "type":"structure",
|
1942 | 1995 | "members":{
|
|
2674 | 2727 | "documentation":"<p>The KMS customer managed key (CMK) entered cannot be validated. Verify the key and re-enter it.</p>",
|
2675 | 2728 | "exception":true
|
2676 | 2729 | },
|
| 2730 | + "LabelDelimiter":{ |
| 2731 | + "type":"string", |
| 2732 | + "max":1, |
| 2733 | + "min":1, |
| 2734 | + "pattern":"^[ ~!@#$%^*\\-_+=|\\\\:;\\t>?/]$" |
| 2735 | + }, |
2677 | 2736 | "LanguageCode":{
|
2678 | 2737 | "type":"string",
|
2679 | 2738 | "enum":[
|
|
2937 | 2996 | "type":"list",
|
2938 | 2997 | "member":{"shape":"KeyPhrase"}
|
2939 | 2998 | },
|
| 2999 | + "ListOfLabels":{ |
| 3000 | + "type":"list", |
| 3001 | + "member":{"shape":"DocumentLabel"} |
| 3002 | + }, |
2940 | 3003 | "ListOfSyntaxTokens":{
|
2941 | 3004 | "type":"list",
|
2942 | 3005 | "member":{"shape":"SyntaxToken"}
|
|
0 commit comments