labels_unique: Get the unique labels of a WebAnno document

View source: R/02_labels_unique.R

labels_uniqueR Documentation

Get the unique labels of a WebAnno document

Description

Returns the unique classifications in the document

Usage

labels_unique(data, info = "all")

Arguments

data

character or WebAnnoTSV. The contents of a WebAnno TSV v3.3 file as created by webanno_open or a path leading to it.

info

character. A choice of "labels", "relations" and "all" on what to extract.

Value

list. With up to two elements, $labels and $relations, containing the respective elements.

Examples

example = arete_data("annotations")[[1]]
labels_unique(example, info = "all")

arete documentation built on Nov. 5, 2025, 6:31 p.m.