public class IOBUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getBoundaryCharacter() |
static String |
IOBToString(List<CoreLabel> labeledSequence,
String prefixMarker,
String suffixMarker)
Convert a list of labeled characters to a String.
|
static List<CoreLabel> |
StringToIOB(List<CoreLabel> tokenList,
Character segMarker,
boolean applyRewriteRules)
Convert a String to a list of characters suitable for labeling in an IOB
segmentation model.
|
static List<CoreLabel> |
StringToIOB(String string)
This version is for turning an unsegmented string to an IOB input, i.e.,
for processing raw text.
|
static List<CoreLabel> |
StringToIOB(String str,
Character segMarker) |
public static String getBoundaryCharacter()
public static List<CoreLabel> StringToIOB(List<CoreLabel> tokenList, Character segMarker, boolean applyRewriteRules)
tokenList - segMarker - applyRewriteRules - add rewrite labels (for training data)public static List<CoreLabel> StringToIOB(String string)
string -