edu.illinois.cs.cogcomp.lbj.coref.features
Class PartOfSpeechTools
java.lang.Object
edu.illinois.cs.cogcomp.lbj.coref.features.PartOfSpeechTools
public class PartOfSpeechTools
- extends java.lang.Object
A collection of features that involve part of speech tags.
Method Summary |
static java.util.Set<java.lang.String> |
getLCNounAdjsBetween(Doc d,
int s,
int e)
Retrieve the set of nouns in a document of the words
between the word at position s and the word at
position e . |
static java.util.Set<java.lang.String> |
getLCNounsBetween(Doc d,
int s,
int e)
Retrieve the set of nouns in a document of the words
between the word at position s and the word at
position e . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PartOfSpeechTools
public PartOfSpeechTools()
getLCNounsBetween
public static java.util.Set<java.lang.String> getLCNounsBetween(Doc d,
int s,
int e)
- Retrieve the set of nouns in a document of the words
between the word at position
s
and the word at
position e
.
Nouns will be words whose POS tag starts with "n"
(case insensitive).
- Parameters:
d
- The document whose nouns will be retrieved.s
- The word number of the first word to be examined.e
- The word number of the last word to be examined.
- Returns:
- The set of nouns from a range of words in a document.
getLCNounAdjsBetween
public static java.util.Set<java.lang.String> getLCNounAdjsBetween(Doc d,
int s,
int e)
- Retrieve the set of nouns in a document of the words
between the word at position
s
and the word at
position e
.
Nouns will be words whose POS tag starts with "n"
(case insensitive).
- Parameters:
d
- The document whose nouns will be retrieved.s
- The word number of the first word to be examined.e
- The word number of the last word to be examined.
- Returns:
- The set of nouns from a range of words in a document.