Skip to content

Document #

Bases: object

A Document

Parameters:

Name Type Description Default
content str

the document content

required
life int | Tuple[int, int]

the optional lifespan for the document (single value corresponds to an event, a tuple corresponds to a window).

required

content property #

the document content

Returns:

Type Description
str

embedding property #

the embedding

Returns:

Type Description
Optional[Embedding]

the embedding for the document if it was computed

entity property #

the entity corresponding to the document

Returns:

Type Description
Optional[Any]

__repr__() #

Return repr(self).