Java edu.stanford.nlp.pipeline Annotation fields, constructors, methods, implement or subclass

Example usage for Java edu.stanford.nlp.pipeline Annotation fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for edu.stanford.nlp.pipeline Annotation.

The text is from its open source code.

Constructor

Annotation(Annotation map)
Copy constructor.
Annotation(String text)
The text becomes the CoreAnnotations.TextAnnotation of the newly created Annotation.
Annotation(List sentences)
Make a new Annotation from a List of tokenized sentences.

Method

voidcompact()
Reduces memory consumption to the minimum for representing the values currently stored stored in this object.
booleancontainsKey(Class> key)
Annotationcopy()
Copies the map, but not a deep copy.
VALUEget(Class> key)
Set>keySet()
VALUEremove(Class> key)
VALUEset(Class> key, VALUE value)
StringtoString()
The basic toString() method of an Annotation simply prints out the text over which any annotations have been made (TextAnnotation).