Package com.gengoai.hermes.format
Interface DocFormatProvider
-
- All Known Implementing Classes:
CoNLLFormat.Provider
,CsvFormat.Provider
,HermesJsonFormat.Provider
,PennTreebankFormat.Provider
,POSFormat.Provider
,TaggedFormat.Provider
,TwitterSearchFormat.Provider
,TxtFormat.Provider
public interface DocFormatProvider
A provider for
DocFormat
for use within Java's service loader framework. Each provider defines the name of the format to identify the document format to read and to use the format with one-per-line, you can append "_opl" to the format name.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description DocFormat
create(DocFormatParameters parameters)
Creates an instance of the providedDocFormat
with the given set ofDocFormatParameters
default DocFormatParameters
getDefaultFormatParameters()
String
getName()
boolean
isWriteable()
-
-
-
Method Detail
-
create
DocFormat create(DocFormatParameters parameters)
Creates an instance of the providedDocFormat
with the given set ofDocFormatParameters
- Parameters:
parameters
- the format parameters- Returns:
- the doc format
-
getDefaultFormatParameters
default DocFormatParameters getDefaultFormatParameters()
- Returns:
- the default DocFormatParameters
-
getName
String getName()
- Returns:
- the format name used to identify it when constructing document collections.
-
isWriteable
boolean isWriteable()
- Returns:
- True if this format supports writing, False if not.
-
-