Class Preprocessor

java.lang.Object
  |
  +--Preprocessor

public class Preprocessor
extends java.lang.Object

Preprocesor which collapses multi-word lexical items down to a signle word.


Field Summary
protected  java.util.Vector patterns
           
 
Constructor Summary
Preprocessor(java.lang.String filename)
          Constructor with file name where mapping exists.
 
Method Summary
 java.lang.String process(java.lang.String sentence)
          Processes the sentence.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

patterns

protected java.util.Vector patterns
Constructor Detail

Preprocessor

public Preprocessor(java.lang.String filename)
Constructor with file name where mapping exists.
Parameters:
filename - The name of the input file.
Method Detail

process

public java.lang.String process(java.lang.String sentence)
Processes the sentence. This method will return a new string.
Parameters:
sentence - The sentence to collapse.