Class BratNameSampleStreamFactory
java.lang.Object
opennlp.tools.formats.AbstractSampleStreamFactory<NameSample, BratNameSampleStreamFactory.Parameters>
opennlp.tools.formats.brat.BratNameSampleStreamFactory
- All Implemented Interfaces:
ObjectStreamFactory<NameSample, BratNameSampleStreamFactory.Parameters>
public class BratNameSampleStreamFactory
extends AbstractSampleStreamFactory<NameSample, BratNameSampleStreamFactory.Parameters>
Note: Do not use this class, internal use only!
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class AbstractSampleStreamFactory
params -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates anObjectStreamof the template typeT.private booleanChecks that non of the passed values arenull.static voidMethods inherited from class AbstractSampleStreamFactory
getLang, getParameters, readData, validateBasicFormatParameters
-
Constructor Details
-
BratNameSampleStreamFactory
protected BratNameSampleStreamFactory()
-
-
Method Details
-
registerFactory
public static void registerFactory() -
notNull
Checks that non of the passed values arenull.- Parameters:
objects- The objects to check fornull.- Returns:
trueif at least one object isnull,falseotherwise.
-
create
Description copied from interface:ObjectStreamFactoryCreates anObjectStreamof the template typeT.- Parameters:
args- arguments- Returns:
- The created
ObjectStreaminstance.
-