A chunk of text from a document
Public fields
idUnique identifier
textText content
document_idSource document
chunk_indexIndex in document
start_charStart position
end_charEnd position
metadataAdditional metadata
Methods
Method new()
Create a new TextUnit
Usage
TextUnit$new(
id,
text,
document_id = NULL,
chunk_index = 0,
start_char = 0,
end_char = 0,
metadata = NULL
)