Package edu.stanford.nlp.pipeline
Class AbstractTextAnnotationCreator
- java.lang.Object
-
- edu.stanford.nlp.pipeline.AbstractTextAnnotationCreator
-
- All Implemented Interfaces:
AnnotationCreator
- Direct Known Subclasses:
TextAnnotationCreator
public abstract class AbstractTextAnnotationCreator extends Object implements AnnotationCreator
Creates a stub implementation for creating annotation from various input sources using String as the main input source- Author:
- Angel Chang
-
-
Constructor Summary
Constructors Constructor Description AbstractTextAnnotationCreator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Annotationcreate(InputStream stream)Annotationcreate(InputStream stream, String encoding)Annotationcreate(Reader reader)AnnotationcreateFromFile(File file)AnnotationcreateFromFile(String filename)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface edu.stanford.nlp.pipeline.AnnotationCreator
createFromText
-
-
-
-
Method Detail
-
createFromFile
public Annotation createFromFile(String filename) throws IOException
- Specified by:
createFromFilein interfaceAnnotationCreator- Throws:
IOException
-
createFromFile
public Annotation createFromFile(File file) throws IOException
- Specified by:
createFromFilein interfaceAnnotationCreator- Throws:
IOException
-
create
public Annotation create(InputStream stream) throws IOException
- Specified by:
createin interfaceAnnotationCreator- Throws:
IOException
-
create
public Annotation create(InputStream stream, String encoding) throws IOException
- Specified by:
createin interfaceAnnotationCreator- Throws:
IOException
-
create
public Annotation create(Reader reader) throws IOException
- Specified by:
createin interfaceAnnotationCreator- Throws:
IOException
-
-