net.java.sen
クラス StringTagger

java.lang.Object
  上位を拡張 net.java.sen.StringTagger

public class StringTagger
extends java.lang.Object

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 StreamFilters
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

StringTagger

public StringTagger(Tokenizer tokenizer)
パラメータ:
tokenizer - The Tokenizer to use for analysis
メソッドの詳細

addFilter

public void addFilter(StreamFilter filter)
Add a StreamFilter to be applied during analysis

パラメータ:
filter - The StreamFilter to add

removeFilters

public void removeFilters()
Remove all current StreamFilters


analyze

public java.util.List<Token> analyze(java.lang.String surface)
                              throws java.io.IOException
Decompose a string into its most likely constituent morphemes

パラメータ:
surface - The string to analyse
戻り値:
An array of Tokens representing the most likely morphemes
例外:
java.io.IOException

analyze

public java.util.List<Token> analyze(char[] surface)
                              throws java.io.IOException
Decompose a string into its most likely constituent morphemes

パラメータ:
surface - The string to analyse
戻り値:
An array of Tokens representing the most likely morphemes
例外:
java.io.IOException


Copyright ? 2008. All Rights Reserved.