public class Features
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static class |
Features.Builder
Builder.
|
Modifier and Type | Field and Description |
---|---|
protected CategoriesOptions |
categories |
protected ConceptsOptions |
concepts |
protected EmotionOptions |
emotion |
protected EntitiesOptions |
entities |
protected KeywordsOptions |
keywords |
protected MetadataOptions |
metadata |
protected RelationsOptions |
relations |
protected SemanticRolesOptions |
semanticRoles |
protected SentimentOptions |
sentiment |
protected SyntaxOptions |
syntax |
Modifier | Constructor and Description |
---|---|
protected |
Features(Features.Builder builder) |
Modifier and Type | Method and Description |
---|---|
CategoriesOptions |
categories()
Gets the categories.
|
ConceptsOptions |
concepts()
Gets the concepts.
|
EmotionOptions |
emotion()
Gets the emotion.
|
EntitiesOptions |
entities()
Gets the entities.
|
KeywordsOptions |
keywords()
Gets the keywords.
|
MetadataOptions |
metadata()
Gets the metadata.
|
Features.Builder |
newBuilder()
New builder.
|
RelationsOptions |
relations()
Gets the relations.
|
SemanticRolesOptions |
semanticRoles()
Gets the semanticRoles.
|
SentimentOptions |
sentiment()
Gets the sentiment.
|
SyntaxOptions |
syntax()
Gets the syntax.
|
protected ConceptsOptions concepts
protected EmotionOptions emotion
protected EntitiesOptions entities
protected KeywordsOptions keywords
protected MetadataOptions metadata
protected RelationsOptions relations
@SerializedName(value="semantic_roles") protected SemanticRolesOptions semanticRoles
protected SentimentOptions sentiment
protected CategoriesOptions categories
protected SyntaxOptions syntax
protected Features(Features.Builder builder)
public Features.Builder newBuilder()
public ConceptsOptions concepts()
Returns high-level concepts in the content. For example, a research paper about deep learning might return the concept, "Artificial Intelligence" although the term is not mentioned.
Supported languages: English, French, German, Italian, Japanese, Korean, Portuguese, Spanish.
public EmotionOptions emotion()
Detects anger, disgust, fear, joy, or sadness that is conveyed in the content or by the context around target phrases specified in the targets parameter. You can analyze emotion for detected entities with `entities.emotion` and for keywords with `keywords.emotion`.
Supported languages: English.
public EntitiesOptions entities()
Identifies people, cities, organizations, and other entities in the content. See [Entity types and subtypes](https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-entity-types).
Supported languages: English, French, German, Italian, Japanese, Korean, Portuguese, Russian, Spanish, Swedish. Arabic, Chinese, and Dutch are supported only through custom models.
public KeywordsOptions keywords()
Returns important keywords in the content.
Supported languages: English, French, German, Italian, Japanese, Korean, Portuguese, Russian, Spanish, Swedish.
public MetadataOptions metadata()
Returns information from the document, including author name, title, RSS/ATOM feeds, prominent page image, and publication date. Supports URL and HTML input types only.
public RelationsOptions relations()
Recognizes when two entities are related and identifies the type of relation. For example, an `awardedTo` relation might connect the entities "Nobel Prize" and "Albert Einstein". See [Relation types](https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-relations).
Supported languages: Arabic, English, German, Japanese, Korean, Spanish. Chinese, Dutch, French, Italian, and Portuguese custom models are also supported.
public SemanticRolesOptions semanticRoles()
Parses sentences into subject, action, and object form.
Supported languages: English, German, Japanese, Korean, Spanish.
public SentimentOptions sentiment()
Analyzes the general sentiment of your content or the sentiment toward specific target phrases. You can analyze sentiment for detected entities with `entities.sentiment` and for keywords with `keywords.sentiment`.
Supported languages: Arabic, English, French, German, Italian, Japanese, Korean, Portuguese, Russian, Spanish.
public CategoriesOptions categories()
Returns a five-level taxonomy of the content. The top three categories are returned.
Supported languages: Arabic, English, French, German, Italian, Japanese, Korean, Portuguese, Spanish.
public SyntaxOptions syntax()
Returns tokens and sentences from the input text.