EntityCategory Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. ai. textanalytics. models. EntityCategory
- com.
- com.
public final class EntityCategory
extends ExpandableStringEnum<EntityCategory>
Gets the entity category inferred by the text analytics service's named entity recognition model. The list of available categories is described at See named entity types.
Field Summary
| Modifier and Type | Field and Description |
|---|---|
|
static final
Entity |
ADDRESS
Specifies that the entity corresponds to an address. |
|
static final
Entity |
DATE_TIME
Specifies that the entity contains a date, time or duration. |
|
static final
Entity |
EMAIL
Specifies that the entity contains an email address. |
|
static final
Entity |
EVENT
Specifies that the entity contains historical, social and natural-occuring events. |
|
static final
Entity |
IP_ADDRESS
Specifies that the entity contains an Internet Protocol address |
|
static final
Entity |
LOCATION
Specifies that entity contains natural or human-made landmarks, structures, or geographical features. |
|
static final
Entity |
ORGANIZATION
Specifies that the entity contains the name of an organization, corporation, agency, or other group of people. |
|
static final
Entity |
PERSON
Specifies that the entity corresponds to a person. |
|
static final
Entity |
PERSON_TYPE
Specifies that the entity corresponds to a person type. |
|
static final
Entity |
PHONE_NUMBER
Specifies that the entity contains a phone number (US phone numbers only). |
|
static final
Entity |
PRODUCT
Specifies that the entity contains a physical objects of various categories. |
|
static final
Entity |
QUANTITY
Specifies that the entity contains a number or numeric quantity. |
|
static final
Entity |
SKILL
Specifies that the entity contains an entity describing a capability or expertise. |
|
static final
Entity |
URL
Specifies that the entity contains an Internet URL. |
Constructor Summary
| Constructor | Description |
|---|---|
| EntityCategory() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Entity |
fromString(String name)
Creates or finds a |
|
static
Collection<Entity |
values()
All known Entity |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
ADDRESS
public static final EntityCategory ADDRESS
Specifies that the entity corresponds to an address.
DATE_TIME
public static final EntityCategory DATE_TIME
Specifies that the entity contains a date, time or duration.
public static final EntityCategory EMAIL
Specifies that the entity contains an email address.
EVENT
public static final EntityCategory EVENT
Specifies that the entity contains historical, social and natural-occuring events.
IP_ADDRESS
public static final EntityCategory IP_ADDRESS
Specifies that the entity contains an Internet Protocol address
LOCATION
public static final EntityCategory LOCATION
Specifies that entity contains natural or human-made landmarks, structures, or geographical features.
ORGANIZATION
public static final EntityCategory ORGANIZATION
Specifies that the entity contains the name of an organization, corporation, agency, or other group of people.
PERSON
public static final EntityCategory PERSON
Specifies that the entity corresponds to a person.
PERSON_TYPE
public static final EntityCategory PERSON_TYPE
Specifies that the entity corresponds to a person type.
PHONE_NUMBER
public static final EntityCategory PHONE_NUMBER
Specifies that the entity contains a phone number (US phone numbers only).
PRODUCT
public static final EntityCategory PRODUCT
Specifies that the entity contains a physical objects of various categories.
QUANTITY
public static final EntityCategory QUANTITY
Specifies that the entity contains a number or numeric quantity.
SKILL
public static final EntityCategory SKILL
Specifies that the entity contains an entity describing a capability or expertise.
URL
public static final EntityCategory URL
Specifies that the entity contains an Internet URL.
Constructor Details
EntityCategory
@Deprecated
public EntityCategory()
Deprecated
Creates a new instance of EntityCategory value.
Method Details
fromString
public static EntityCategory fromString(String name)
Creates or finds a EntityCategory from its string representation.
Parameters:
Returns:
EntityCategory.values
public static Collection<EntityCategory> values()
All known EntityCategory values.
Returns: