compute

Computes a DocumentCache for the given document by tokenizing its content.

Return

a new DocumentCache instance with computed attributes

Parameters

document

the text document to compute the cache for