Package opennlp.tools.formats.ad

# Class PortugueseContractionUtility

java.lang.Object
opennlp.tools.formats.ad.PortugueseContractionUtility

@Internal public class PortugueseContractionUtility extends Object
Utility class to handle Portuguese contractions.

Some Corpora split contractions in its parts, for example, "da" > "de" + "a", but according to the phase 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!

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `PortugueseContractionUtility()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static String`
  `toContraction(String left, String right)`
  Merges a contraction.

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### PortugueseContractionUtility

    public PortugueseContractionUtility()

- ## Method Details

  - ### toContraction

    public static String toContraction(String left, String right)
    Merges a contraction.
    Parameters:
      `left` - The left component.
      `right` - The right component.
    Returns:
      The merged contraction.