|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.illinois.cs.cogcomp.lbj.coref.features.StringTools
public class StringTools
A collection of tools related to strings.
Constructor Summary | |
---|---|
StringTools()
|
Method Summary | |
---|---|
static java.util.Set<java.lang.String> |
getCapitalizedWords(Mention m,
boolean useHead)
Gets the set of capitalized words. |
static java.lang.String |
getLCText(Mention m,
boolean useHead)
Gets the lowercased text of a mention. |
static java.lang.String |
getText(Mention m,
boolean useHead,
boolean lowercase)
Gets the text of a mention. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringTools()
Method Detail |
---|
public static java.util.Set<java.lang.String> getCapitalizedWords(Mention m, boolean useHead)
m
- The mention whose words will be retrieved.useHead
- Whether words come from the head or extent.
public static java.lang.String getLCText(Mention m, boolean useHead)
m
- The mention whose text to get.useHead
- Whether to get the head text or the extent text.
public static java.lang.String getText(Mention m, boolean useHead, boolean lowercase)
m
- The mention whose text to get.useHead
- Whether to get the head text or the extent text.lowercase
- Whether to lowercase the text.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |