public class DoubleArrayTire extends Object
| Modifier and Type | Field and Description |
|---|---|
int |
arrayLength |
| Constructor and Description |
|---|
DoubleArrayTire(Item[] dat) |
| Modifier and Type | Method and Description |
|---|---|
Item[] |
getDAT()
获得dat数组
|
int |
getId(String str)
一个词在词典中的id
|
<T extends Item> |
getItem(int id) |
<T extends Item> |
getItem(String str)
获得一个词语的item
|
static DoubleArrayTire |
load(String filePath) |
static DoubleArrayTire |
loadText(InputStream is,
Class<? extends Item> cla)
从文本中加载模型
|
static DoubleArrayTire |
loadText(String filePath)
从文本中加载模型
|
static DoubleArrayTire |
loadText(String filePath,
Class<? extends Item> cla)
从文本中加载模型
|
public DoubleArrayTire(Item[] dat)
public Item[] getDAT()
public int getId(String str)
public <T extends Item> T getItem(int id)
public static DoubleArrayTire load(String filePath) throws FileNotFoundException, IOException, ClassNotFoundException
public static DoubleArrayTire loadText(String filePath, Class<? extends Item> cla) throws FileNotFoundException, InstantiationException, IllegalAccessException
public static DoubleArrayTire loadText(InputStream is, Class<? extends Item> cla) throws FileNotFoundException, InstantiationException, IllegalAccessException
public static DoubleArrayTire loadText(String filePath) throws FileNotFoundException, InstantiationException, IllegalAccessException
Copyright © 2017. All rights reserved.