opennlp.tools.formats
Class ContractionUtility

java.lang.Object
  extended by opennlp.tools.formats.ContractionUtility

public class ContractionUtility
extends java.lang.Object

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!


Constructor Summary
ContractionUtility()
           
 
Method Summary
static java.lang.String toContraction(java.lang.String left, java.lang.String right)
          Merges a contraction
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContractionUtility

public ContractionUtility()
Method Detail

toContraction

public static java.lang.String toContraction(java.lang.String left,
                                             java.lang.String right)
Merges a contraction

Parameters:
left - the left component
right - the right component
Returns:
the merged contraction


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.