|
| 1 | +/** |
| 2 | +* Copyright 2015 IBM Corp. All Rights Reserved. |
| 3 | +* |
| 4 | +* Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | +* you may not use this file except in compliance with the License. |
| 6 | +* You may obtain a copy of the License at |
| 7 | +* |
| 8 | +* http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +* |
| 10 | +* Unless required by applicable law or agreed to in writing, software |
| 11 | +* distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +* See the License for the specific language governing permissions and |
| 14 | +* limitations under the License. |
| 15 | +* |
| 16 | +*/ |
| 17 | + |
| 18 | +using FullSerializer; |
| 19 | + |
| 20 | +namespace IBM.Watson.DeveloperCloud.Services.PersonalityInsights.v2 |
| 21 | +{ |
| 22 | + using UnityEngine; |
| 23 | + using System.Collections; |
| 24 | + |
| 25 | + public class DataModels : MonoBehaviour |
| 26 | + { |
| 27 | + [fsObject] |
| 28 | + public class Profile |
| 29 | + { |
| 30 | + /// <summary> |
| 31 | + /// Detailed results for a specific characteristic of the input text. |
| 32 | + /// </summary> |
| 33 | + /// <value>The tree.</value> |
| 34 | + public TraitTreeNode tree { get; set; } |
| 35 | + |
| 36 | + /// <summary> |
| 37 | + /// The unique user identifier for which these characteristics were computed. The value is derived from the userid field of the input ContentItem objects. The field is passed as-is from JSON input. Sanitize the contents of the field before displaying them to prevent cross-site scripting attacks. |
| 38 | + /// </summary> |
| 39 | + /// <value>The identifier.</value> |
| 40 | + public string id { get; set; } |
| 41 | + |
| 42 | + /// <summary> |
| 43 | + /// The source identifier for which these characteristics were computed. The value is derived from the sourceid field of the input ContentItem objects. The field is passed as-is from JSON input. Sanitize the contents of the field before displaying them to prevent cross-site scripting attacks. |
| 44 | + /// </summary> |
| 45 | + /// <value>The source.</value> |
| 46 | + public string source { get; set; } |
| 47 | + |
| 48 | + /// <summary> |
| 49 | + /// The language model that was used to process the input; for example, en. |
| 50 | + /// </summary> |
| 51 | + /// <value>The processed lang.</value> |
| 52 | + public string processed_lang { get; set; } |
| 53 | + |
| 54 | + /// <summary> |
| 55 | + /// The number of words that were found in the input. |
| 56 | + /// </summary> |
| 57 | + /// <value>The word count.</value> |
| 58 | + public string word_count { get; set; } |
| 59 | + |
| 60 | + /// <summary> |
| 61 | + /// When guidance is appropriate, a string that provides a message that indicates the number of words found and where that value falls in the range of required or suggested number of words. |
| 62 | + /// </summary> |
| 63 | + /// <value>The word count message.</value> |
| 64 | + public string word_count_message { get; set; } |
| 65 | + |
| 66 | + /// <summary> |
| 67 | + /// Warning messages associated with the input text submitted with the request. The array is empty if the input generated no warnings. |
| 68 | + /// </summary> |
| 69 | + /// <value>The warnings.</value> |
| 70 | + public Warning[] warnings { get; set; } |
| 71 | + } |
| 72 | + |
| 73 | + [fsObject] |
| 74 | + public class TraitTreeNode |
| 75 | + { |
| 76 | + /// <summary> |
| 77 | + /// The unique identifier of the characteristic to which the results pertain. |
| 78 | + /// </summary> |
| 79 | + /// <value>The identifier.</value> |
| 80 | + public string id { get; set; } |
| 81 | + |
| 82 | + /// <summary> |
| 83 | + /// The user-visible name of the characteristic. |
| 84 | + /// </summary> |
| 85 | + /// <value>The name.</value> |
| 86 | + public string name { get; set; } |
| 87 | + |
| 88 | + /// <summary> |
| 89 | + /// The category of the characteristic: personality, needs, values, or behavior (for temporal data). |
| 90 | + /// </summary> |
| 91 | + /// <value>The category.</value> |
| 92 | + public string category { get; set; } |
| 93 | + |
| 94 | + /// <summary> |
| 95 | + /// For personality, needs, and values characteristics, the normalized percentile score for the characteristic. The range is 0 to 1. For example, if the percentage for Openness is 0.25, the author scored in the 25th percentile; the author is more open than 24% of the population and less open than 74% of the population. For temporal behavior characteristics, the percentage of timestamped data that occurred during that day or hour. |
| 96 | + /// </summary> |
| 97 | + /// <value>The percentage.</value> |
| 98 | + public string percentage { get; set; } |
| 99 | + |
| 100 | + /// <summary> |
| 101 | + /// For personality, needs, and values characteristics, indicates the sampling error of the percentage based on the number of words in the input text. The range is 0 to 1. The number defines a 95% confidence interval around the percentage. For example, if the sampling error is 4% and the percentage is 61%, it is 95% likely that the actual percentage value is between 57% and 65% if more words are given. |
| 102 | + /// </summary> |
| 103 | + /// <value>The sampling error.</value> |
| 104 | + public string sampling_error { get; set; } |
| 105 | + |
| 106 | + /// <summary> |
| 107 | + /// For personality, needs, and values characteristics, the raw score for the characteristic. A positive or negative score indicates more or less of the characteristic; zero indicates neutrality or no evidence for a score. The raw score is computed based on the input and the service model; it is not normalized or compared with a sample population. The raw score enables comparison of the results against a different sampling population and with a custom normalization approach. |
| 108 | + /// </summary> |
| 109 | + /// <value>The raw score.</value> |
| 110 | + public string raw_score { get; set; } |
| 111 | + |
| 112 | + /// <summary> |
| 113 | + /// For personality, needs, and values characteristics, indicates the sampling error of the raw score based on the number of words in the input. The practical range is 0 to 1. The number defines a 95% confidence interval around the raw score. For example, if the raw sampling error is 5% and the raw score is 65%, it is 95% likely that the actual raw score is between 60% and 70% if more words are given. |
| 114 | + /// </summary> |
| 115 | + /// <value>The raw sampling error.</value> |
| 116 | + public string raw_sampling_error { get; set; } |
| 117 | + |
| 118 | + /// <summary> |
| 119 | + /// Recursive array of more detailed characteristics inferred from the input text. |
| 120 | + /// </summary> |
| 121 | + /// <value>The children.</value> |
| 122 | + public TraitTreeNode[] children { get; set; } |
| 123 | + } |
| 124 | + |
| 125 | + [fsObject] |
| 126 | + public class Warning |
| 127 | + { |
| 128 | + /// <summary> |
| 129 | + /// The identifier of the warning message, one of WORD_COUNT_MESSAGE or JSON_AS_TEXT. |
| 130 | + /// </summary> |
| 131 | + /// <value>The identifier.</value> |
| 132 | + public string id { get; set; } |
| 133 | + |
| 134 | + /// <summary> |
| 135 | + /// The message associated with the id. For WORD_COUNT_MESSAGE, "There were <number> words in the input. We need a minimum of 3,500, preferably 6,000 or more, to compute statistically significant estimates"; for JSON_AS_TEXT, "Request input was processed as text/plain as indicated, however detected a JSON input. Did you mean application/json?". |
| 136 | + /// </summary> |
| 137 | + /// <value>The message.</value> |
| 138 | + public string message { get; set; } |
| 139 | + } |
| 140 | + } |
| 141 | +} |
0 commit comments