|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.washington.cs.knowitall.nlp.ChunkedSentenceToken
public class ChunkedSentenceToken
A representation of a token in a ChunkedSentence.
| Nested Class Summary | |
|---|---|
protected static class |
ChunkedSentenceToken.ChunkTagExpression
A regular expression that is evaluated against the chunk tag portion of a token. |
protected static class |
ChunkedSentenceToken.Expression
An expression that is evaluated against a token. |
protected static class |
ChunkedSentenceToken.PosTagExpression
A regular expression that is evaluated against the POS tag portion of a token. |
protected static class |
ChunkedSentenceToken.StringExpression
A regular expression that is evaluated against the string portion of a token. |
| Field Summary | |
|---|---|
ChunkedSentence |
ChunkedSentence
|
int |
index
|
static com.google.common.base.Function<ChunkedSentenceToken,String> |
toStringFunction
|
| Constructor Summary | |
|---|---|
ChunkedSentenceToken(ChunkedSentence ChunkedSentence,
int index)
|
|
| Method Summary | |
|---|---|
String |
chunk()
The chunk tag of this token. |
String |
pos()
The part of speech tag of this token. |
String |
string()
The string of this token. |
static List<ChunkedSentenceToken> |
tokenize(ChunkedSentence sentence)
|
static List<ChunkedSentenceToken> |
tokenize(ChunkedSentence sentence,
edu.washington.cs.knowitall.commonlib.Range range)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final ChunkedSentence ChunkedSentence
public final int index
public static final com.google.common.base.Function<ChunkedSentenceToken,String> toStringFunction
| Constructor Detail |
|---|
public ChunkedSentenceToken(ChunkedSentence ChunkedSentence,
int index)
| Method Detail |
|---|
public static List<ChunkedSentenceToken> tokenize(ChunkedSentence sentence)
public static List<ChunkedSentenceToken> tokenize(ChunkedSentence sentence,
edu.washington.cs.knowitall.commonlib.Range range)
public String string()
public String pos()
public String chunk()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||