Class LanguageDetectorConfig

Namespace
NOpenNLP.Tools.Langdetect
Assembly
NOpenNLP.Tools.dll
public class LanguageDetectorConfig
Inheritance
LanguageDetectorConfig
Inherited Members

Fields

DEFAULT_CHUNK_SIZE

public const int DEFAULT_CHUNK_SIZE = 200

Field Value

int

DEFAULT_LANGUAGE_DETECTOR_CONFIG

public static readonly LanguageDetectorConfig DEFAULT_LANGUAGE_DETECTOR_CONFIG

Field Value

LanguageDetectorConfig

DEFAULT_MAX_LENGTH

public const int DEFAULT_MAX_LENGTH = 10000

Field Value

int

DEFAULT_MIN_CONSEC_IMPROVEMENTS

public const int DEFAULT_MIN_CONSEC_IMPROVEMENTS = 2

Field Value

int

DEFAULT_MIN_DIFF

public const double DEFAULT_MIN_DIFF = 0.2

Field Value

double

Properties

ChunkSize

Size in codepoints of chunk to process at each step for the probing detection.

After processing a chunk of this size, the probing detection will compute probabilities and determine if there is enough confidence to stop.

public virtual int ChunkSize { get; set; }

Property Value

int

MaxLength

Maximum length in codepoints of text to process.

public virtual int MaxLength { get; set; }

Property Value

int

MinConsecImprovements

Minimum number of consecutive increased probabilities for the top language required in probing detection to stop early.

If this value equals 0, probing detection will rely solely on MinDiff.

public virtual int MinConsecImprovements { get; set; }

Property Value

int

MinDiff

Minimum difference in confidence between the top predicted language and the next most likely language.

If this value equals 0, probing detection will rely solely on MinConsecImprovements.

public virtual double MinDiff { get; set; }

Property Value

double