public class TokenManager extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<Integer,String> |
indexLabel |
protected Map<Integer,String> |
indexToken |
protected String |
input |
protected Map<String,Integer> |
labelIndex |
static org.apache.log4j.Logger |
LOG |
static String |
SEP |
protected String |
tokenInput |
protected String[] |
tokenSplit |
Constructor and Description |
---|
TokenManager(String sentences) |
Modifier and Type | Method and Description |
---|---|
String |
getInput() |
String |
getLabel(int index) |
Set<String> |
getLabeledInput() |
int |
getLabelIndex(String label) |
String |
getToken(int index) |
String |
getTokenInput() |
String[] |
getTokenSplit() |
void |
repairEntities(Set<Entity> entities) |
public static org.apache.log4j.Logger LOG
protected String input
protected String tokenInput
protected String[] tokenSplit
public static final String SEP
public TokenManager(String sentences)
sentences
- Copyright © 2024. All rights reserved.