Package com.gengoai.hermes.format
Class WholeFileTextFormat
- java.lang.Object
-
- com.gengoai.hermes.format.WholeFileTextFormat
-
- All Implemented Interfaces:
DocFormat
- Direct Known Subclasses:
CoNLLFormat
,CsvFormat
,HermesJsonFormat
,PennTreebankFormat
,POSFormat
,TaggedFormat
,TwitterSearchFormat
,TxtFormat
public abstract class WholeFileTextFormat extends Object implements DocFormat
Defines a format in which files need to be completely read in order to generate documents. Most formats will us this as a base class.
-
-
Constructor Summary
Constructors Constructor Description WholeFileTextFormat()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description MStream<Document>
read(Resource inputResource)
Reads documents in this format from the given input resource.protected abstract Stream<Document>
readSingleFile(String content)
Converts the content of an entire file into one ore more documents.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.gengoai.hermes.format.DocFormat
getParameters, write, write
-
-