|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectnet.java.sen.StringTagger
public class StringTagger
Tokenizes strings
See examples.StringTaggerDemo in the Sen source for an example of how to use this class
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
コンストラクタの概要 | |
---|---|
StringTagger(Tokenizer tokenizer)
|
メソッドの概要 | |
---|---|
void |
addFilter(StreamFilter filter)
Add a StreamFilter to be applied during analysis |
java.util.List<Token> |
analyze(char[] surface)
Decompose a string into its most likely constituent morphemes |
java.util.List<Token> |
analyze(java.lang.String surface)
Decompose a string into its most likely constituent morphemes |
void |
removeFilters()
Remove all current StreamFilter s |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public StringTagger(Tokenizer tokenizer)
tokenizer
- The Tokenizer to use for analysisメソッドの詳細 |
---|
public void addFilter(StreamFilter filter)
StreamFilter
to be applied during analysis
filter
- The StreamFilter
to addpublic void removeFilters()
StreamFilter
s
public java.util.List<Token> analyze(java.lang.String surface) throws java.io.IOException
surface
- The string to analyse
Token
s representing the most likely morphemes
java.io.IOException
public java.util.List<Token> analyze(char[] surface) throws java.io.IOException
surface
- The string to analyse
Token
s representing the most likely morphemes
java.io.IOException
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |