public class Trait
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static interface |
Trait.Category
The category of the characteristic: `personality` for Big Five personality characteristics,
`needs` for Needs, and `values` for Values.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
category |
protected java.util.List<Trait> |
children |
protected java.lang.String |
name |
protected java.lang.Double |
percentile |
protected java.lang.Double |
rawScore |
protected java.lang.Boolean |
significant |
protected java.lang.String |
traitId |
Constructor and Description |
---|
Trait() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCategory()
Gets the category.
|
java.util.List<Trait> |
getChildren()
Gets the children.
|
java.lang.String |
getName()
Gets the name.
|
java.lang.Double |
getPercentile()
Gets the percentile.
|
java.lang.Double |
getRawScore()
Gets the rawScore.
|
java.lang.String |
getTraitId()
Gets the traitId.
|
java.lang.Boolean |
isSignificant()
Gets the significant.
|
@SerializedName(value="trait_id") protected java.lang.String traitId
protected java.lang.String name
protected java.lang.String category
protected java.lang.Double percentile
@SerializedName(value="raw_score") protected java.lang.Double rawScore
protected java.lang.Boolean significant
protected java.util.List<Trait> children
public java.lang.String getTraitId()
The unique, non-localized identifier of the characteristic to which the results pertain. IDs have the form * `big5_{characteristic}` for Big Five personality dimensions * `facet_{characteristic}` for Big Five personality facets * `need_{characteristic}` for Needs *`value_{characteristic}` for Values.
public java.lang.String getName()
The user-visible, localized name of the characteristic.
public java.lang.String getCategory()
The category of the characteristic: `personality` for Big Five personality characteristics, `needs` for Needs, and `values` for Values.
public java.lang.Double getPercentile()
The normalized percentile score for the characteristic. The range is 0 to 1. For example, if the percentage for Openness is 0.60, the author scored in the 60th percentile; the author is more open than 59 percent of the population and less open than 39 percent of the population.
public java.lang.Double getRawScore()
The raw score for the characteristic. The range is 0 to 1. A higher score generally indicates a greater likelihood that the author has that characteristic, but raw scores must be considered in aggregate: The range of values in practice might be much smaller than 0 to 1, so an individual score must be considered in the context of the overall scores and their range.
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.
public java.lang.Boolean isSignificant()
**`2017-10-13`**: Indicates whether the characteristic is meaningful for the input language. The field is always `true` for all characteristics of English, Spanish, and Japanese input. The field is `false` for the subset of characteristics of Arabic and Korean input for which the service's models are unable to generate meaningful results. **`2016-10-19`**: Not returned.
public java.util.List<Trait> getChildren()
For `personality` (Big Five) dimensions, more detailed results for the facets of each dimension as inferred from the input text.