public class AnCoraPronounDisambiguator
extends java.lang.Object
SpanishTreeNormalizer
Modifier and Type | Class and Description |
---|---|
static class |
AnCoraPronounDisambiguator.PersonalPronounType |
Constructor and Description |
---|
AnCoraPronounDisambiguator() |
Modifier and Type | Method and Description |
---|---|
static AnCoraPronounDisambiguator.PersonalPronounType |
disambiguatePersonalPronoun(SpanishVerbStripper.StrippedVerb strippedVerb,
int pronounIdx,
java.lang.String clauseYield)
Determine whether the given clitic pronoun is an indirect object
pronoun or a reflexive pronoun.
|
static boolean |
isAmbiguous(java.lang.String pronoun)
Determine if the given pronoun can have multiple senses.
|
public static boolean isAmbiguous(java.lang.String pronoun)
public static AnCoraPronounDisambiguator.PersonalPronounType disambiguatePersonalPronoun(SpanishVerbStripper.StrippedVerb strippedVerb, int pronounIdx, java.lang.String clauseYield)
strippedVerb
- Stripped verb as returned by
SpanishVerbStripper.separatePronouns(String)
.pronounIdx
- The index of the pronoun within
strippedVerb.getPronouns()
which should be
disambiguated.clauseYield
- A string representing the yield of the
clause which contains the given verbjava.lang.IllegalArgumentException
- If the given pronoun is
not ambiguous, or its disambiguation is not supported.