Interface IObjectStreamFactory<T>

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

Creates an IObjectStream<T> of samples read from a particular corpus format, and describes the command line parameters that format accepts.

public interface IObjectStreamFactory<out T>

Type Parameters

T

the sample type this factory produces

Properties

Parameters

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

IEnumerable<IFormatParameter> Parameters { get; }

Property Value

IEnumerable<IFormatParameter>

Methods

Create(IFormatParameterValues)

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

IObjectStream<out T> Create(IFormatParameterValues values)

Parameters

values IFormatParameterValues

the parsed values of Parameters

Returns

IObjectStream<T>

a stream of samples