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 | Method and Description |
---|---|
CategoriesOptions |
categories()
Gets the categories.
|
ClassificationsOptions |
classifications()
Gets the classifications.
|
ConceptsOptions |
concepts()
Gets the concepts.
|
EmotionOptions |
emotion()
Gets the emotion.
|
EntitiesOptions |
entities()
Gets the entities.
|
KeywordsOptions |
keywords()
Gets the keywords.
|
Map<String,Object> |
metadata()
Gets the metadata.
|
Features.Builder |
newBuilder()
New builder.
|
RelationsOptions |
relations()
Gets the relations.
|
SemanticRolesOptions |
semanticRoles()
Gets the semanticRoles.
|
SentimentOptions |
sentiment()
Gets the sentiment.
|
SummarizationOptions |
summarization()
Gets the summarization.
|
SyntaxOptions |
syntax()
Gets the syntax.
|
public Features.Builder newBuilder()
public ClassificationsOptions classifications()
Returns text classifications for the content.
Supported languages: English only.
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. For more information, 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 Map<String,Object> 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". For more information, 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 SummarizationOptions summarization()
(Experimental) Returns a summary of content.
Supported languages: English only.
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.
Copyright © 2021 IBM Cloud. All rights reserved.