File: utils.Rd

package info (click to toggle)
r-cran-nlp 0.3-2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 456 kB
  • sloc: makefile: 2
file content (21 lines) | stat: -rw-r--r-- 602 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
\name{utils}
\alias{next_id}
\alias{single_feature}
\title{Annotation Utilities}
\description{Utilities for creating annotation objects.}
\usage{
next_id(id)
single_feature(value, tag)
}
\arguments{
  \item{id}{an integer vector of annotation ids.}
  \item{value}{an \R object.}
  \item{tag}{a character string.}
}
\details{
  \code{next_id()} obtains the next \dQuote{available} id based on the
  given annotation ids (one more than the maximal non-missing id).

  \code{single_feature()} creates a single feature from the given value
  and tag (i.e., a named list with the value named by the tag).
}