Package com.gengoai.hermes.format
Class CoNLLFormat.Provider
- java.lang.Object
-
- com.gengoai.hermes.format.CoNLLFormat.Provider
-
- All Implemented Interfaces:
DocFormatProvider
- Enclosing class:
- CoNLLFormat
@MetaInfServices public static class CoNLLFormat.Provider extends Object implements DocFormatProvider
The type Provider.
-
-
Constructor Summary
Constructors Constructor Description Provider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocFormat
create(DocFormatParameters parameters)
Creates an instance of the providedDocFormat
with the given set ofDocFormatParameters
DocFormatParameters
getDefaultFormatParameters()
String
getName()
boolean
isWriteable()
-
-
-
Method Detail
-
create
public DocFormat create(DocFormatParameters parameters)
Description copied from interface:DocFormatProvider
Creates an instance of the providedDocFormat
with the given set ofDocFormatParameters
- Specified by:
create
in interfaceDocFormatProvider
- Parameters:
parameters
- the format parameters- Returns:
- the doc format
-
getDefaultFormatParameters
public DocFormatParameters getDefaultFormatParameters()
- Specified by:
getDefaultFormatParameters
in interfaceDocFormatProvider
- Returns:
- the default DocFormatParameters
-
getName
public String getName()
- Specified by:
getName
in interfaceDocFormatProvider
- Returns:
- the format name used to identify it when constructing document collections.
-
isWriteable
public boolean isWriteable()
- Specified by:
isWriteable
in interfaceDocFormatProvider
- Returns:
- True if this format supports writing, False if not.
-
-