public final class SpanishVerbStripper extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
SpanishVerbStripper.StrippedVerb
A struct describing the result of verb stripping.
|
Modifier and Type | Method and Description |
---|---|
static SpanishVerbStripper |
getInstance()
Singleton pattern function for getting a default verb stripper.
|
static SpanishVerbStripper |
getInstance(String dictPath)
Singleton pattern function for getting a verb stripper based on
the dictionary at dictPath.
|
static boolean |
isStrippable(String word)
Determine if the given word is a verb which needs to be stripped.
|
SpanishVerbStripper.StrippedVerb |
separatePronouns(String verb)
Attempt to separate attached pronouns from the given verb.
|
String |
stripVerb(String verb)
Remove attached pronouns from a strippable Spanish verb form.
|
public static SpanishVerbStripper getInstance()
public static SpanishVerbStripper getInstance(String dictPath)
dictPath
- the path to the dictionary for this verb stripper.public static boolean isStrippable(String word)
public SpanishVerbStripper.StrippedVerb separatePronouns(String verb)
verb
- Spanish verbpublic String stripVerb(String verb)
isStrippable(String)
to determine if a word is a
strippable verb.)
Converts, e.g.,