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. |
CategorizedEntity(String text,
EntityCategory category,
String subcategory,
double confidenceScore,
int offset)
Creates a
CategorizedEntity model that describes entity. |
Modifier and Type | Method and Description |
---|---|
EntityCategory |
getCategory()
Get the category property: Categorized entity category, such as Person/Location/Org/SSN etc.
|
double |
getConfidenceScore()
Get 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()
Get the length of entity text.
|
int |
getOffset()
Get the offset of entity text.
|
String |
getSubcategory()
Get the subcategory property: Categorized entity sub category, such as Age/Year/TimeRange etc.
|
String |
getText()
Get 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 CategorizedEntity(String text, EntityCategory category, String subcategory, double confidenceScore, int offset)
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.offset
- The start position for the entity text.public String getText()
public EntityCategory getCategory()
public String getSubcategory()
public double getConfidenceScore()
public int getOffset()
public int getLength()
Copyright © 2021 Microsoft Corporation. All rights reserved.