public final class CategorizedEntity extends Object
CategorizedEntity model.| Constructor and Description |
|---|
CategorizedEntity(String text,
EntityCategory category,
String subcategory,
double confidenceScore)
Creates a
CategorizedEntity model that describes entity. |
| Modifier and Type | Method and Description |
|---|---|
EntityCategory |
getCategory()
Gets the category property: Categorized entity category, such as Person/Location/Org/SSN etc.
|
double |
getConfidenceScore()
Gets the score property: If a well-known item is recognized, a decimal
number denoting the confidence level between 0 and 1 will be returned.
|
int |
getLength()
Gets the length of entity text.
|
int |
getOffset()
Gets the offset of entity text.
|
String |
getSubcategory()
Gets the subcategory property: Categorized entity sub category, such as Age/Year/TimeRange etc.
|
String |
getText()
Gets the text property: Categorized entity text as appears in the request.
|
public CategorizedEntity(String text, EntityCategory category, String subcategory, double confidenceScore)
CategorizedEntity model that describes entity.text - The entity text as appears in the request.category - The entity category, such as Person/Location/Org/SSN etc.subcategory - The entity subcategory, such as Age/Year/TimeRange etc.confidenceScore - If a well-known item is recognized, a decimal number denoting the confidence level
between 0 and 1 will be returned.public String getText()
public EntityCategory getCategory()
public String getSubcategory()
public double getConfidenceScore()
public int getOffset()
public int getLength()
Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.