public class Config extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
B |
static char |
BEGIN |
static int |
E |
static char |
EN_BEGIN |
static char |
END |
static char |
FEATURE_BEGIN |
static int |
M |
static char |
NUM_BEGIN |
static int |
S |
String |
splitStr |
static int |
TAG_NUM |
| Constructor and Description |
|---|
Config(int[][] template) |
| Modifier and Type | Method and Description |
|---|---|
static char |
getEn(String str) |
char |
getNameIfOutArr(List<Element> list,
int index) |
static char |
getNum(String str) |
char |
getTagIfOutArr(List<Element> list,
int index) |
static char |
getTagName(int tag) |
int[][] |
getTemplate() |
char[][] |
makeFeatureArr(List<Element> list,
int index)
得到一个位置的所有特征
|
List<Element> |
makeToElementList(String temp) |
static List<Element> |
makeToElementList(String temp,
String splitStr) |
void |
setTemplate(int[][] template) |
static List<Element> |
wordAlert(String word)
词语标准化
|
public String splitStr
public static final int TAG_NUM
public static final char BEGIN
public static final char END
public static final char NUM_BEGIN
public static final char EN_BEGIN
public static final char FEATURE_BEGIN
public static int S
public static int B
public static int M
public static int E
public static char getNum(String str)
public static char getEn(String str)
public int[][] getTemplate()
public void setTemplate(int[][] template)
public static List<Element> makeToElementList(String temp, String splitStr)
temp - public char[][] makeFeatureArr(List<Element> list, int index)
list - index - public static char getTagName(int tag)
Copyright © 2017. All rights reserved.