edu.stanford.nlp.util
Class UTF8EquivalenceFunction

java.lang.Object
  extended by edu.stanford.nlp.util.UTF8EquivalenceFunction
All Implemented Interfaces:
Function<java.lang.String,java.lang.String>, java.io.Serializable

public class UTF8EquivalenceFunction
extends java.lang.Object
implements Function<java.lang.String,java.lang.String>, java.io.Serializable

A word function that can be applied to Chinese text in the tagger or similar systems to make it treat ( and ( the same.

Author:
John Bauer
See Also:
Serialized Form

Constructor Summary
UTF8EquivalenceFunction()
           
 
Method Summary
 java.lang.String apply(java.lang.String input)
          Converts a T1 to a different T2.
static java.lang.String replaceAscii(java.lang.String w)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UTF8EquivalenceFunction

public UTF8EquivalenceFunction()
Method Detail

replaceAscii

public static java.lang.String replaceAscii(java.lang.String w)

apply

public java.lang.String apply(java.lang.String input)
Description copied from interface: Function
Converts a T1 to a different T2. For example, a Parser will convert a Sentence to a Tree. A Tagger will convert a Sentence to a TaggedSentence.

Specified by:
apply in interface Function<java.lang.String,java.lang.String>
Parameters:
input - The function's argument
Returns:
The function's evaluated value


Stanford NLP Group