Class Features
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class Features
extends com.ibm.cloud.sdk.core.service.model.GenericModel
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Features.Builder
Builder. -
Method Summary
Modifier and Type Method 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.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
newBuilder
New builder.- Returns:
- a Features builder
-
classifications
Gets the classifications.Returns text classifications for the content.
Supported languages: English only.
- Returns:
- the classifications
-
concepts
Gets the 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.
- Returns:
- the concepts
-
emotion
Gets the 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.
- Returns:
- the emotion
-
entities
Gets the 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.
- Returns:
- the entities
-
keywords
Gets the keywords.Returns important keywords in the content.
Supported languages: English, French, German, Italian, Japanese, Korean, Portuguese, Russian, Spanish, Swedish.
- Returns:
- the keywords
-
metadata
Gets the 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.
- Returns:
- the metadata
-
relations
Gets the 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.
- Returns:
- the relations
-
semanticRoles
Gets the semanticRoles.Parses sentences into subject, action, and object form.
Supported languages: English, German, Japanese, Korean, Spanish.
- Returns:
- the semanticRoles
-
sentiment
Gets the 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.
- Returns:
- the sentiment
-
summarization
Gets the summarization.(Experimental) Returns a summary of content.
Supported languages: English only.
- Returns:
- the summarization
-
categories
Gets the categories.Returns a hierarchical taxonomy of the content. The top three categories are returned by default.
Supported languages: Arabic, English, French, German, Italian, Japanese, Korean, Portuguese, Spanish.
- Returns:
- the categories
-
syntax
Gets the syntax.Returns tokens and sentences from the input text.
- Returns:
- the syntax
-