chunkDocument: chunkDocument

Description Usage Arguments Value Author(s)

View source: R/U07.chunkDocument.R

Description

This function takes as its parameters, a document in unlisted sentence or word tokenized format and the chunk size in terms of numbers of tokens, and returns the document in a list of chunks of equal size.

Usage

1
chunkDocument(document, chunkSize)

Arguments

document

- the document to be sampled

chunkSize

- the number of sentences per chunk

Value

chunks - list of chunks of equal number of sentences

Author(s)

John James


DataScienceSalon/predictifyR.3.0 documentation built on May 23, 2019, 8:25 p.m.