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

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

public class CommentFilter
extends java.lang.Object
implements StreamFilter

A filter to ignore delimited comments in the input sentence


フィールドの概要
protected  java.util.List<net.java.sen.filter.stream.CommentFilter.Rule> ruleList
          The list of rules defining the start and end of comments, and the part-of-speech code to be used in the Tokens used to replace them
 
コンストラクタの概要
CommentFilter()
           
 
メソッドの概要
 java.util.List<Token> postProcess(java.util.List<Token> tokens)
          Post-processes analysed tokens
 void preProcess(Sentence sentence)
          Pre-processes a sentence
 void readRules(java.io.BufferedReader reader)
          Reads the rules to apply as space-delimited text
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

ruleList

protected java.util.List<net.java.sen.filter.stream.CommentFilter.Rule> ruleList
The list of rules defining the start and end of comments, and the part-of-speech code to be used in the Tokens used to replace them

コンストラクタの詳細

CommentFilter

public CommentFilter()
メソッドの詳細

readRules

public void readRules(java.io.BufferedReader reader)
               throws java.io.IOException
Reads the rules to apply as space-delimited text

パラメータ:
reader - The reader from which to read the rules
例外:
java.io.IOException

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.