public class NewAnnotationAction extends Action
| Constructor and Description |
|---|
NewAnnotationAction(StreamTokenizer tok)
creates a NewAnnotationAction from the input processed by StreamTokenizer
tok, which should have the form
add [type feature=value feature=value ...] or add [type feature=value feature=value ...] over spanVariable |
NewAnnotationAction(String tp,
FeatureSet fs,
Variable sv) |
| Modifier and Type | Method and Description |
|---|---|
static void |
hideAnnotations(Document doc,
String type,
Span span)
hides (adds the 'hidden' feature) to all annotations of type type
beginning at the starting position of span span.
|
int |
perform(Document doc,
PatternApplication patap)
performs the action, adding the specified Annotation.
|
String |
toString() |
public NewAnnotationAction(String tp, FeatureSet fs, Variable sv)
public NewAnnotationAction(StreamTokenizer tok) throws IOException, PatternSyntaxError
IOExceptionPatternSyntaxErrorpublic int perform(Document doc, PatternApplication patap)
public static void hideAnnotations(Document doc, String type, Span span)
Copyright © 2016 New York University. All rights reserved.