Class FormatParameters

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

The command line parameters shared by the corpus formats.

public static class FormatParameters
Inheritance
FormatParameters
Inherited Members

Fields

Data

-data, from BasicFormatParams.

public static readonly IFormatParameter Data

Field Value

IFormatParameter

DefaultCharset

The sentinel upstream's @OptionalParameter uses to mean "the platform default encoding". A user may type it literally, and upstream's CharsetArgumentFactory resolves it the same way.

public const string DefaultCharset = "DEFAULT_CHARSET"

Field Value

string

Detokenizer

-detokenizer, from DetokenizerParameter.

public static readonly IFormatParameter Detokenizer

Field Value

IFormatParameter

Encoding

-encoding, from EncodingParameter.

public static readonly IFormatParameter Encoding

Field Value

IFormatParameter

Lang

-lang, from LanguageParams.

public static readonly IFormatParameter Lang

Field Value

IFormatParameter

Methods

ResolveEncoding(string?)

Resolves the -encoding value, mapping the DefaultCharset sentinel onto the platform default.

public static Encoding ResolveEncoding(string? charsetName)

Parameters

charsetName string

Returns

Encoding