Package com.chatmotorapi.api.functional
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 Summary
Constructors Constructor Description MotorEntity() -
Method Summary
Modifier and Type Method Description List<String>getDate()Returns the list of dates.List<String>getLocation()Returns the list of locations.List<String>getOrganization()Returns the list of organizations.List<String>getPerson()Returns the list of persons.StringtoString()Returns a string representation of theMotorEntityobject.
-
Constructor Details
-
MotorEntity
public MotorEntity()
-
-
Method Details
-
getPerson
Returns the list of persons.- Returns:
- the list of person names, never null.
-
getOrganization
Returns the list of organizations.- Returns:
- the list of organization names, never null.
-
getLocation
Returns the list of locations.- Returns:
- the list of location names, never null.
-
getDate
Returns the list of dates.- Returns:
- the list of date strings, never null.
-
toString
Returns a string representation of theMotorEntityobject.
-