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(Pair<java.lang.String,java.util.List<java.lang.String>> splitVerb,
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(Pair<java.lang.String,java.util.List<java.lang.String>> splitVerb, int pronounIdx, java.lang.String clauseYield)
splitVerb - The verb with clitics split off, as returned by
SpanishVerbStripper.separatePronouns(String).pronounIdx - The index of the pronoun within
splitVerb.second() 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.