net.moraleboost.junsai.tagger
クラス Viterbi

java.lang.Object
  上位を拡張 net.moraleboost.junsai.tagger.Viterbi

public class Viterbi
extends java.lang.Object

Viterbiアルゴリズムの実装

作成者:
taketa

フィールドの概要
static int LATTICE_LEVEL_ALL_PATH
           
static int LATTICE_LEVEL_BEST_PATH
           
static int LATTICE_LEVEL_DUMP
           
static int LATTICE_LEVEL_FORWARD_BACKWARD
           
 
コンストラクタの概要
Viterbi(Tokenizer tokenizer, Connector connector, int costFactor, float theta, int latticeLevel, boolean partial, boolean allMorphs)
           
 
メソッドの概要
 Node analyze(java.lang.CharSequence str, int offset, int len)
           
 void clear()
           
 boolean getAllMorphs()
           
 int getLatticeLevel()
           
 boolean getPartial()
           
 float getTheta()
           
 double getZ()
           
 void reset(Tokenizer tokenizer, Connector connector, int costFactor, float theta, int latticeLevel, boolean partial, boolean allMorphs)
           
 void setAllMorphs(boolean allMorphs)
           
 void setLatticeLevel(int level)
           
 void setPartial(boolean partial)
           
 void setTheta(float theta)
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

LATTICE_LEVEL_BEST_PATH

public static final int LATTICE_LEVEL_BEST_PATH
関連項目:
定数フィールド値

LATTICE_LEVEL_ALL_PATH

public static final int LATTICE_LEVEL_ALL_PATH
関連項目:
定数フィールド値

LATTICE_LEVEL_FORWARD_BACKWARD

public static final int LATTICE_LEVEL_FORWARD_BACKWARD
関連項目:
定数フィールド値

LATTICE_LEVEL_DUMP

public static final int LATTICE_LEVEL_DUMP
関連項目:
定数フィールド値
コンストラクタの詳細

Viterbi

public Viterbi(Tokenizer tokenizer,
               Connector connector,
               int costFactor,
               float theta,
               int latticeLevel,
               boolean partial,
               boolean allMorphs)
        throws TaggerException
例外:
TaggerException
メソッドの詳細

reset

public void reset(Tokenizer tokenizer,
                  Connector connector,
                  int costFactor,
                  float theta,
                  int latticeLevel,
                  boolean partial,
                  boolean allMorphs)
           throws TaggerException
例外:
TaggerException

clear

public void clear()

analyze

public Node analyze(java.lang.CharSequence str,
                    int offset,
                    int len)
             throws TaggerException
例外:
TaggerException

getZ

public double getZ()

getPartial

public boolean getPartial()

setPartial

public void setPartial(boolean partial)

getTheta

public float getTheta()

setTheta

public void setTheta(float theta)

getLatticeLevel

public int getLatticeLevel()

setLatticeLevel

public void setLatticeLevel(int level)

getAllMorphs

public boolean getAllMorphs()

setAllMorphs

public void setAllMorphs(boolean allMorphs)