Class MotorEntity

java.lang.Object
com.chatmotorapi.api.functional.MotorEntity

public class MotorEntity
extends Object
Represents the recognized entities extracted from text, categorized into four distinct types: persons, organizations, locations, and dates.

The MotorEntity class provides access to lists of named entities identified during an entity recognition process:

  • Person: A list of person names identified in the text.
  • Organization: A list of organization names identified in the text.
  • Location: A list of location names identified in the text.
  • Date: A list of date strings identified in the text.

Each list may contain multiple entries, and all lists are initialized to null until entities are extracted.

Since:
1.2
  • Constructor Details

    • MotorEntity

      public MotorEntity()
  • Method Details

    • getPerson

      public List<String> getPerson()
      Returns the list of persons.
      Returns:
      the list of person names, never null.
    • getOrganization

      public List<String> getOrganization()
      Returns the list of organizations.
      Returns:
      the list of organization names, never null.
    • getLocation

      public List<String> getLocation()
      Returns the list of locations.
      Returns:
      the list of location names, never null.
    • getDate

      public List<String> getDate()
      Returns the list of dates.
      Returns:
      the list of date strings, never null.
    • toString

      public String toString()
      Returns a string representation of the MotorEntity object.
      Overrides:
      toString in class Object
      Returns:
      a string representation of the object