|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectnet.java.sen.dictionary.Viterbi
public class Viterbi
An implementation of the Viterbi algorithm used to find the most likely sequence of morphemes comprising a sentence
Thread Safety: Objects of this class are NOT thread safe and
should not be accessed simultaneously by multiple threads. Note that creating
additional instances using SenFactory
is relatively
cheap in both memory and time
コンストラクタの概要 | |
---|---|
Viterbi(Tokenizer tokenizer)
Creates a Viterbi instance using the given Tokenizer |
メソッドの概要 | |
---|---|
java.util.List<Token> |
getBestTokens(Sentence sentence)
Analyses a sentence to find the most likely sequence of morphemes |
java.util.List<Token> |
getPossibleTokens(Sentence sentence,
int position)
Gets the possible tokens from a Sentence at a given position. |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public Viterbi(Tokenizer tokenizer)
tokenizer
- The Tokenizer to useメソッドの詳細 |
---|
public java.util.List<Token> getPossibleTokens(Sentence sentence, int position) throws java.io.IOException
sentence
- The Sentence to search withinposition
- The position to search at
java.io.IOException
public java.util.List<Token> getBestTokens(Sentence sentence) throws java.io.IOException
sentence
- The sentence to analyse
java.io.IOException
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |