public enum VerbTense extends Enum<VerbTense>
| Modifier and Type | Method and Description |
|---|---|
String |
conjugateEnglish(CoreLabel token) |
String |
conjugateEnglish(CoreLabel token,
boolean negated) |
String |
conjugateEnglish(String lemma) |
String |
conjugateEnglish(String lemma,
boolean negated)
Apply this tense to the given verb.
|
static VerbTense |
of(boolean past,
boolean plural,
boolean participle,
int person)
Get the correct verb tense for the verb tense's features.
|
static VerbTense |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VerbTense[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VerbTense INFINITIVE
public static final VerbTense SINGULAR_PRESENT_FIRST_PERSON
public static final VerbTense SINGULAR_PRESENT_SECOND_PERSON
public static final VerbTense SINGULAR_PRESENT_THIRD_PERSON
public static final VerbTense PRESENT_PLURAL
public static final VerbTense PRESENT_PARTICIPLE
public static final VerbTense SINGULAR_PAST_FIRST_PERSON
public static final VerbTense SINGULAR_PAST_SECOND_PERSON
public static final VerbTense SINGULAR_PAST_THIRD_PERSON
public static final VerbTense PAST_PLURAL
public static final VerbTense PAST
public static final VerbTense PAST_PARTICIPLE
public static VerbTense[] values()
for (VerbTense c : VerbTense.values()) System.out.println(c);
public static VerbTense valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static VerbTense of(boolean past, boolean plural, boolean participle, int person)
past - If true, this is a past-tense verb.plural - If true, this is a plural verb.participle - If true, this is a participle verb.person - 1st, 2nd, or 3rd person: corresponds to 1,2, or 3 for this argument.public String conjugateEnglish(String lemma, boolean negated)
lemma - The verb to conjugate.negated - If true, this verb is negated.public String conjugateEnglish(String lemma)
conjugateEnglish(String, boolean)public String conjugateEnglish(CoreLabel token, boolean negated)
conjugateEnglish(String, boolean)public String conjugateEnglish(CoreLabel token)
conjugateEnglish(String, boolean)