|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectse.lth.cs.nlp.nlputils.annotations.AnnotationType
se.lth.cs.nlp.nlputils.annotations.RawXMLAnnotation
public class RawXMLAnnotation
This AnnotationType implements functionality to handle classical nested XML annotations.
| Method Summary | |
|---|---|
AnnotatedText |
createLayers(InputStream in)
Creates an annotated text with a single layer. |
AnnotatedText |
createLayers(String s)
This method is unimplemented since raw XML text should never be put into Java strings (because this may break the encoding). |
static RawXMLAnnotation |
instance()
Returns the instance of this AnnotationType. |
void |
printLayers(OutputStream out,
String text,
List<AnnotationLayer> l)
Prints a list of annotation layers on a text to an output stream. |
| Methods inherited from class se.lth.cs.nlp.nlputils.annotations.AnnotationType |
|---|
printLayers, printLayers, printLayers |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static RawXMLAnnotation instance()
public AnnotatedText createLayers(InputStream in)
throws IOException
createLayers in class AnnotationTypein - the input stream from which the annotation is read.
IOException
public AnnotatedText createLayers(String s)
throws IOException
createLayers in class AnnotationTypes - the string.
IOException
public void printLayers(OutputStream out,
String text,
List<AnnotationLayer> l)
throws IOException
printLayers in class AnnotationTypeout - the output stream.text - the text.l - the list of annotation layers.
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||