Learn R Programming

arete (version 0.1)

labels_unique: Get the unique labels of a WebAnno document

Description

Returns the unique classifications in the document

Usage

labels_unique(data, info = "all")

Value

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

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.

Examples

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

Run the code above in your browser using DataLab