cleanNLP (version 1.10.0)

doc_id_reset: Reset document ids

Description

Given an annotation object, this function changes all of the document ids so that they are all contiguous integers, starting at the parameter start_id.

Usage

doc_id_reset(annotation, start_id = 1L)

Arguments

annotation

annotation object to reset the IDs of

start_id

the starting document id. Defaults to 0.

Value

an annotation object with document ids updated across all tables.

Examples

Run this code
# NOT RUN {
doc_id_reset(annotation, 10)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab