Class Matrix


  • public final class Matrix
    extends java.lang.Object
    形態素の連接コスト表のバイナリデータを作成するためのクラス
    • Constructor Summary

      Constructors 
      Constructor Description
      Matrix()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void build​(java.lang.String inputDir, java.lang.String outputDir)
      連接コスト表のバイナリデータを作成する
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Matrix

        public Matrix()
    • Method Detail

      • build

        public static void build​(java.lang.String inputDir,
                                 java.lang.String outputDir)
                          throws java.text.ParseException,
                                 java.io.IOException
        連接コスト表のバイナリデータを作成する
        Parameters:
        inputDir - ソース辞書があるディレクトリ。inputDir+"/matrix.def"ファイルが使用される
        outputDir - バイナリデータが保存されるディレクトリ。outputDir+"/matrix.bin"ファイルが作成される
        Throws:
        java.text.ParseException - 入力ファイルのパースに失敗した場合に送出される
        java.io.IOException - 入出力エラーが発生した場合に送出される