Description Usage Arguments Examples
View source: R/annotationstable.R
The annolite package uses an annotationstable
to store and manage the
annotations of an document. An annotationstable
object is a S3
superclass of a data.frame
. An annotationstable
is a
data.frame
with the following columns:
text: The original text that has been selected to serve as a basis for an annotation. Note that text selection is not required to cover whole words. Parts of words may have been selected.
code: A code that has been assigned to an annotated passage of text. Available codes need to be predefined before an annotation exercise.
color: The color used to highlight annotated token sequences. Each color needs to reflect one code.
annotation: An explanatory note on the code that has been assigned.
start: ID of the first token that has been annotated. If the
annotated document is a subcorpus of a CWB corpus, the token ID is the
integer
corpus position.
end: ID of the last token that has been annotated. If the annotated
document is a subcorpus of a CWB corpus, the token ID is the integer
corpus position.
The function annotationstable()
serves as a constructor for an
annotationstable
. If called without arguments, an empty
annotationstable
is returned. If called with arguments, all input
vectors need to have the same length.
1 2 3 4 5 6 7 8 |
text |
A |
code |
A |
color |
A |
annotation |
A |
start |
A |
end |
integer A |
1 | empty_annotationstable <- annotationstable()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.