utils: Annotation Utilities

utilsR Documentation

Annotation Utilities

Description

Utilities for creating annotation objects.

Usage

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 Sept. 11, 2024, 6:59 p.m.

Related to utils in NLP...