You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::Comprehend::Types::Entity

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Provides information about an entity.

Instance Attribute Summary collapse

Instance Attribute Details

#begin_offsetInteger

A character offset in the input text that shows where the entity begins (the first character is at position 0). The offset returns the position of each UTF-8 code point in the string. A code point is the abstract character from a particular graphical representation. For example, a multi-byte UTF-8 character maps to a single code point.

Returns:

  • (Integer)

    A character offset in the input text that shows where the entity begins (the first character is at position 0).

#end_offsetInteger

A character offset in the input text that shows where the entity ends. The offset returns the position of each UTF-8 code point in the string. A code point is the abstract character from a particular graphical representation. For example, a multi-byte UTF-8 character maps to a single code point.

Returns:

  • (Integer)

    A character offset in the input text that shows where the entity ends.

#scoreFloat

The level of confidence that Amazon Comprehend has in the accuracy of the detection.

Returns:

  • (Float)

    The level of confidence that Amazon Comprehend has in the accuracy of the detection.

#textString

The text of the entity.

Returns:

  • (String)

    The text of the entity.

#typeString

The entity\'s type.

Possible values:

  • PERSON
  • LOCATION
  • ORGANIZATION
  • COMMERCIAL_ITEM
  • EVENT
  • DATE
  • QUANTITY
  • TITLE
  • OTHER

Returns:

  • (String)

    The entity\'s type.