public final class LinkedEntityMatch extends Object
LinkedEntityMatch
model.Constructor and Description |
---|
LinkedEntityMatch(String text,
double confidenceScore)
Creates a
LinkedEntityMatch model that describes linked entity match. |
LinkedEntityMatch(String text,
double confidenceScore,
int offset)
Creates a
LinkedEntityMatch model that describes linked entity match. |
Modifier and Type | Method and Description |
---|---|
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 linked entity match text.
|
String |
getText()
Get the linked entity match text property: linked entity text as appears in the request.
|
public LinkedEntityMatch(String text, double confidenceScore)
LinkedEntityMatch
model that describes linked entity match.text
- The linked entity match text as appears in the request.confidenceScore
- If a well-known item is recognized, a decimal number denoting the
confidence level between 0 and 1 will be returned.public LinkedEntityMatch(String text, double confidenceScore, int offset)
LinkedEntityMatch
model that describes linked entity match.text
- The linked entity match text as appears in the request.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 linked entity match text in a document.public String getText()
public double getConfidenceScore()
public int getOffset()
public int getLength()
Copyright © 2021 Microsoft Corporation. All rights reserved.