public final class SpanishVerbStripper
extends java.lang.Object
implements java.io.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(java.lang.String dictPath)
Singleton pattern function for getting a verb stripper based on
the dictionary at dictPath.
|
static boolean |
isStrippable(java.lang.String word)
Determine if the given word is a verb which needs to be stripped.
|
SpanishVerbStripper.StrippedVerb |
separatePronouns(java.lang.String verb)
Attempt to separate attached pronouns from the given verb.
|
java.lang.String |
stripVerb(java.lang.String verb)
Remove attached pronouns from a strippable Spanish verb form.
|
public static SpanishVerbStripper getInstance()
public static SpanishVerbStripper getInstance(java.lang.String dictPath)
dictPath
- the path to the dictionary for this verb stripper.public static boolean isStrippable(java.lang.String word)
public SpanishVerbStripper.StrippedVerb separatePronouns(java.lang.String verb)
verb
- Spanish verbpublic java.lang.String stripVerb(java.lang.String verb)
isStrippable(String)
to determine if a word is a
strippable verb.)
Converts, e.g.,