java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.natural_language_understanding.v1.model.Features
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class Features
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Analysis features and options.
  • Method Details

    • newBuilder

      public Features.Builder newBuilder()
      New builder.
      Returns:
      a Features builder
    • classifications

      public ClassificationsOptions classifications()
      Gets the classifications.

      Returns text classifications for the content.

      Supported languages: English only.

      Returns:
      the classifications
    • concepts

      public ConceptsOptions 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

      public EmotionOptions 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

      public EntitiesOptions 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

      public KeywordsOptions 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

      public Map<String,​Object> 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

      public RelationsOptions 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

      public SemanticRolesOptions semanticRoles()
      Gets the semanticRoles.

      Parses sentences into subject, action, and object form.

      Supported languages: English, German, Japanese, Korean, Spanish.

      Returns:
      the semanticRoles
    • sentiment

      public SentimentOptions 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

      public SummarizationOptions summarization()
      Gets the summarization.

      (Experimental) Returns a summary of content.

      Supported languages: English only.

      Returns:
      the summarization
    • categories

      public CategoriesOptions categories()
      Gets the 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.

      Returns:
      the categories
    • syntax

      public SyntaxOptions syntax()
      Gets the syntax.

      Returns tokens and sentences from the input text.

      Returns:
      the syntax