modnlp.dstruct
public class TokenIndex extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TokenIndex.TokenCoordinates |
Constructor and Description |
---|
TokenIndex() |
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.Integer s,
java.lang.Integer e) |
void |
add(int s,
int e) |
int |
getEndPos(int index) |
int |
getStartPos(int index) |
TokenIndex.TokenCoordinates |
remove(int i) |
void |
reverse() |
int |
size() |
public void add(java.lang.Integer s, java.lang.Integer e)
public void add(int s, int e)
public TokenIndex.TokenCoordinates remove(int i)
public void reverse()
public int size()
public int getStartPos(int index)
public int getEndPos(int index)