get_annotators: Getters for annotation attributes stored in 'annotations'

Description Usage Arguments Functions

Description

Getters for annotation attributes stored in annotations

Get list of tags used in annotations

Combine used tagset and canonical tagset, and raise warnings if they differ

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
get_doc_ids_from_project_path(path)

get_doc_ids(annotations, tagged_only = TRUE)

get_annotators(annotations)

get_annotation_types(annotations)

get_tagset_used_unsorted(annotations)

get_tagset_used(annotations, sort = c("value", "frequency",
  "first_appearance"))

get_tagset_complete(annotations, tagset_planned = NULL, sort = c("value",
  "frequency", "first_appearance"))

Arguments

path

Path to the WebAnno project directory

annotations

data.frame of annotations data

tagged_only

Logical to indicate whether to impute docs not in annotations because no tags applied

sort

Order in which to store tagset

tagset_planned

character vector of tags available to annotators

annotations

data.frame containing annotation data

sort

type of sorting on the tagset

If sort = "first_appearance" then unused tags are added to the end, in the order that they appear in 'tagset_planned.

Functions


petereckley/webannor documentation built on May 25, 2019, 12:48 a.m.