Serialize according the serializer where an object is
serialized into an array of strings based upon specific parts of the
document such as title, summary, etc.
Parameters
document: any
Returns string[]
stem
stem(parts: string[][]): string[][]
Run the stemmer over the words.
Parameters
parts: string[][]
Returns string[][]
tokenize
tokenize(parts: string[]): string[][]
Tokenize the individual serialized parts of the document.
Convert the document into parts, each having an array of stems or words