utils: Annotation Utilities

Description Usage Arguments Details

Description

Utilities for creating annotation objects.

Usage

1
2
next_id(id)
single_feature(value, tag)

Arguments

id

an integer vector of annotation ids.

value

an R object.

tag

a character string.

Details

next_id() obtains the next “available” id based on the given annotation ids (one more than the maximal non-missing id).

single_feature() creates a single feature from the given value and tag (i.e., a named list with the value named by the tag).


NLP documentation built on Oct. 23, 2020, 6:18 p.m.

Related to utils in NLP...