public class ChunkedSentenceToken extends Object
| Modifier and Type | Class and Description |
|---|---|
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.
|
| Modifier and Type | Field and Description |
|---|---|
ChunkedSentence |
ChunkedSentence |
int |
index |
static com.google.common.base.Function<ChunkedSentenceToken,String> |
toStringFunction |
| Constructor and Description |
|---|
ChunkedSentenceToken(ChunkedSentence ChunkedSentence,
int index) |
| Modifier and Type | Method and Description |
|---|---|
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() |
public final ChunkedSentence ChunkedSentence
public final int index
public static final com.google.common.base.Function<ChunkedSentenceToken,String> toStringFunction
public ChunkedSentenceToken(ChunkedSentence ChunkedSentence, int index)
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()
Copyright © 2010-2013 University of Washington CSE. All Rights Reserved.