MatchRecord Class

MatchRecord.

Inheritance
MatchRecord

Constructor

MatchRecord(*, wikipedia_score: Optional[float] = None, entity_type_score: Optional[float] = None, text: Optional[str] = None, offset: Optional[int] = None, length: Optional[int] = None, **kwargs)

Parameters

wikipedia_score
float
Required

(optional) If a well-known item with Wikipedia link is recognized, a decimal number denoting the confidence level of the Wikipedia info will be returned.

entity_type_score
float
Required

(optional) If an entity type is recognized, a decimal number denoting the confidence level of the entity type will be returned.

text
str
Required

Entity text as appears in the request.

offset
int
Required

Start position (in Unicode characters) for the entity match text.

length
int
Required

Length (in Unicode characters) for the entity match text.