Class PortugueseContractionUtility

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

Utility class to handle Portuguese contractions.

Some Corpora splits contractions in its parts, for example, "da" > "de" + "a", but according to the fase of language processing, NER for instance, we can't decide if to split a contraction or not, specially because contractions inside names are not separated, but outside are.

Note: Do not use this class, internal use only!
public class PortugueseContractionUtility
Inheritance
PortugueseContractionUtility
Inherited Members

Fields

Contractions

protected static readonly IDictionary<string, string> Contractions

Field Value

IDictionary<string, string>

Methods

ToContraction(string, string)

Merges a contraction.

public static string? ToContraction(string left, string right)

Parameters

left string

the left component

right string

the right component

Returns

string

the merged contraction, or null if the parts do not form one