Class DocumentSampleStreamFactory

Namespace
NOpenNLP.Tools.Formats
Assembly
NOpenNLP.Tools.dll

Factory producing OpenNLP DocumentSampleStreams.

public class DocumentSampleStreamFactory : AbstractSampleStreamFactory<DocumentSample?>, IObjectStreamFactory<DocumentSample?>
Inheritance
DocumentSampleStreamFactory
Implements
Inherited Members

Properties

Parameters

The parameters this format accepts, in the order they should be listed in help.

public override IEnumerable<IFormatParameter> Parameters { get; }

Property Value

IEnumerable<IFormatParameter>

Methods

Create(IFormatParameterValues)

Creates the IObjectStream<T> over the corpus named by values.

public override IObjectStream<DocumentSample?> Create(IFormatParameterValues values)

Parameters

values IFormatParameterValues

the parsed values of Parameters

Returns

IObjectStream<DocumentSample>

a stream of samples

RegisterFactory()

public static void RegisterFactory()