public final class Dictionary
extends java.lang.Object
修飾子とタイプ | フィールドと説明 |
---|---|
static float |
DEF_UNKNOWN_WORD_COST_FACTOR |
static java.lang.String |
SYN_DIC_ENCODING |
コンストラクタと説明 |
---|
Dictionary(java.lang.String dicDir,
java.lang.Class<? extends DicFeatures> dfClass) |
Dictionary(java.lang.String dicDir,
java.lang.Class<? extends DicFeatures> dfClass,
float unkWordCostFactor,
float unkWordConnCostFactor) |
Dictionary(java.lang.String dicDir,
java.lang.Class<? extends DicFeatures> dfClass,
java.io.InputStream is,
boolean fusion) |
Dictionary(java.lang.String dicDir,
java.lang.Class<? extends DicFeatures> dfClass,
java.io.InputStream is,
boolean fusion,
float unkWordCostFactor,
float unkWordConnCostFactor) |
修飾子とタイプ | メソッドと説明 |
---|---|
java.lang.Long |
addOutputs(java.lang.Long prefix,
java.lang.Long output) |
int |
getConnectionCost(int prevRightContextId,
int nextLeftContextId) |
static java.lang.String |
getDatrieFileName(java.lang.String outDir) |
DicFeatures |
getFeatures(int fid,
java.nio.ByteBuffer buf,
byte[] rub) |
static java.lang.String |
getFeaturesFileName(java.lang.String outDir) |
static java.lang.String |
getFeaturesMetaFileName(java.lang.String outDir) |
static java.lang.String |
getFstFileName() |
static java.lang.String |
getMatrixFileName(java.lang.String outDir) |
int |
getMaxSurfaceLength() |
int |
getMorphemeMaxCost() |
int |
getMorphemeMinCost() |
static java.lang.String |
getMorphemesFileName(java.lang.String outDir) |
java.util.Set<java.lang.String> |
getSynonyms(java.lang.String src) |
static java.lang.String |
getSynonymsFileName(java.lang.String outDir) |
int |
getUnknownWordCost() |
int |
readMorphemes(int mid,
MorphemesReader.Buffer[] buf,
java.nio.ByteBuffer buffer) |
int |
search(java.lang.String word) |
public static final float DEF_UNKNOWN_WORD_COST_FACTOR
public static final java.lang.String SYN_DIC_ENCODING
public Dictionary(java.lang.String dicDir, java.lang.Class<? extends DicFeatures> dfClass) throws java.io.IOException
java.io.IOException
public Dictionary(java.lang.String dicDir, java.lang.Class<? extends DicFeatures> dfClass, float unkWordCostFactor, float unkWordConnCostFactor) throws java.io.IOException
java.io.IOException
public Dictionary(java.lang.String dicDir, java.lang.Class<? extends DicFeatures> dfClass, java.io.InputStream is, boolean fusion) throws java.io.IOException
java.io.IOException
public Dictionary(java.lang.String dicDir, java.lang.Class<? extends DicFeatures> dfClass, java.io.InputStream is, boolean fusion, float unkWordCostFactor, float unkWordConnCostFactor) throws java.io.IOException
java.io.IOException
public int search(java.lang.String word) throws java.io.IOException
java.io.IOException
public java.lang.Long addOutputs(java.lang.Long prefix, java.lang.Long output)
public int readMorphemes(int mid, MorphemesReader.Buffer[] buf, java.nio.ByteBuffer buffer)
public int getMaxSurfaceLength()
public int getMorphemeMinCost()
public int getMorphemeMaxCost()
public int getUnknownWordCost()
public int getConnectionCost(int prevRightContextId, int nextLeftContextId)
public DicFeatures getFeatures(int fid, java.nio.ByteBuffer buf, byte[] rub)
public java.util.Set<java.lang.String> getSynonyms(java.lang.String src)
public static java.lang.String getSynonymsFileName(java.lang.String outDir)
public static java.lang.String getDatrieFileName(java.lang.String outDir)
public static java.lang.String getFstFileName()
public static java.lang.String getMorphemesFileName(java.lang.String outDir)
public static java.lang.String getFeaturesFileName(java.lang.String outDir)
public static java.lang.String getFeaturesMetaFileName(java.lang.String outDir)
public static java.lang.String getMatrixFileName(java.lang.String outDir)
Copyright © 2009-2018 RONDHUIT Co.,Ltd. All Rights Reserved.