net.moraleboost.junsai.dictionary
クラス ConnectorCompiler

java.lang.Object
  上位を拡張 net.moraleboost.junsai.dictionary.ConnectorCompiler

public class ConnectorCompiler
extends java.lang.Object

接続コスト行列コンパイラ

作成者:
taketa

コンストラクタの概要
ConnectorCompiler()
           
 
メソッドの概要
 void compile(CompilerConfig config)
           
static int[] getMatrixSize(java.lang.String filename, java.lang.String charset)
          matrix.defを開き、最初の行に記述されたlsize, rsizeを読んで返す。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

ConnectorCompiler

public ConnectorCompiler()
メソッドの詳細

compile

public void compile(CompilerConfig config)
             throws DictionaryException,
                    java.io.IOException
例外:
DictionaryException
java.io.IOException

getMatrixSize

public static int[] getMatrixSize(java.lang.String filename,
                                  java.lang.String charset)
                           throws DictionaryException,
                                  java.io.IOException
matrix.defを開き、最初の行に記述されたlsize, rsizeを読んで返す。

パラメータ:
filename - matrix.defのパス
戻り値:
int[2] {lsize, rsize}
例外:
java.io.IOException - 有効なヘッダ行が見つからなかった
DictionaryException