CategorizedEntity Class
- java.
lang. Object - com.
azure. ai. textanalytics. models. CategorizedEntity
- com.
public final class CategorizedEntity
The CategorizedEntity model.
Constructor Summary
| Constructor | Description |
|---|---|
| CategorizedEntity(String text, EntityCategory category, String subcategory, double confidenceScore) |
Creates a |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Entity |
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/Time |
| String |
getText()
Gets the text property: Categorized entity text as appears in the request. |
Methods inherited from java.lang.Object
Constructor Details
CategorizedEntity
public CategorizedEntity(String text, EntityCategory category, String subcategory, double confidenceScore)
Creates a CategorizedEntity model that describes entity.
Parameters:
Method Details
getCategory
public EntityCategory getCategory()
Gets the category property: Categorized entity category, such as Person/Location/Org/SSN etc.
Returns:
getConfidenceScore
public 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.
Returns:
getLength
public int getLength()
Gets the length of entity text.
Returns:
getOffset
public int getOffset()
Gets the offset of entity text. The start position for the entity text in a document.
Returns:
getSubcategory
public String getSubcategory()
Gets the subcategory property: Categorized entity sub category, such as Age/Year/TimeRange etc.
Returns:
getText
public String getText()
Gets the text property: Categorized entity text as appears in the request.
Returns: