net.java.sen.filter.stream
クラス CompoundWordFilter

java.lang.Object
  上位を拡張 net.java.sen.filter.stream.CompoundWordFilter
すべての実装されたインタフェース:
StreamFilter

public class CompoundWordFilter
extends java.lang.Object
implements StreamFilter

A Filter that replaces a single Token with one or more alternative Tokens. Can be used, for instance, to split compound verbs or nouns into their constituent parts


コンストラクタの概要
CompoundWordFilter(java.lang.String compoundFile)
          Creates a CompoundWordFilter from the given file
 
メソッドの概要
 java.util.List<Token> postProcess(java.util.List<Token> tokens)
          Post-processes analysed tokens
 void preProcess(Sentence sentence)
          Pre-processes a sentence
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

CompoundWordFilter

public CompoundWordFilter(java.lang.String compoundFile)
Creates a CompoundWordFilter from the given file

パラメータ:
compoundFile - The compiled compound file
メソッドの詳細

preProcess

public void preProcess(Sentence sentence)
インタフェース StreamFilter の記述:
Pre-processes a sentence

定義:
インタフェース StreamFilter 内の preProcess
パラメータ:
sentence - The sentence be pre-processed

postProcess

public java.util.List<Token> postProcess(java.util.List<Token> tokens)
インタフェース StreamFilter の記述:
Post-processes analysed tokens

定義:
インタフェース StreamFilter 内の postProcess
パラメータ:
tokens - The analysed tokens
戻り値:
The post-processed tokens


Copyright ? 2008. All Rights Reserved.