|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcsli.util.nlp.PoSTagger
public abstract class PoSTagger
An abstract part-of-speech tagger.
| Constructor Summary | |
|---|---|
PoSTagger()
|
|
| Method Summary | |
|---|---|
abstract String |
getTagSeparator()
Get the character this tagger uses to separate words from tags. |
protected static String |
join(String[] words)
Join an array of words together to make a whitespace-separated sentence |
List<String> |
tag(List<String> sentences)
Tag a list of sentences. |
ScoredObject<String> |
tag(ScoredObject<String> sentence)
Tag a scored sentence |
abstract String |
tag(String sentence)
Tag a string (possibly a sentence containing multiple words separated by whitespace) |
String[] |
tag(String[] sentences)
Tag an array of sentences. |
List<String> |
tagWords(List<String> words)
Tag a sentence represented as a list of words in linear order. |
String[] |
tagWords(String[] words)
Tag a sentence represented as an array of words in linear order. |
protected static void |
test(PoSTagger tagger,
String[] args)
A convenience method for development testing. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PoSTagger()
| Method Detail |
|---|
public abstract String tag(String sentence)
sentence - the string to tag. White space taken to separate words. No punctuation/case normalization is performed
here.
public String[] tag(String[] sentences)
sentences - the array of sentences to tag
public List<String> tag(List<String> sentences)
sentences - the list of strings to tag
public String[] tagWords(String[] words)
words - the array of words to tag
public List<String> tagWords(List<String> words)
words - the list of words to tag
public ScoredObject<String> tag(ScoredObject<String> sentence)
sentence - the scored sentence to tag
public abstract String getTagSeparator()
protected static String join(String[] words)
words - an array of words
protected static void test(PoSTagger tagger,
String[] args)
tagger - args -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||