edu.stanford.nlp.trees.international.arabic
Class Buckwalter

java.lang.Object
  extended by edu.stanford.nlp.trees.international.arabic.Buckwalter
All Implemented Interfaces:
Function<String,String>, Serializable

public class Buckwalter
extends Object
implements Function<String,String>

This class can convert between Unicode and Buckwalter encodings of Arabic.

Author:
Christopher Manning
See Also:
Serialized Form

Constructor Summary
Buckwalter()
           
Buckwalter(boolean unicodeToBuckwalter)
           
 
Method Summary
 String apply(String in)
          Converts a T1 to a different T2.
 String buckwalterToUnicode(String in)
           
static void main(String[] args)
           
 String unicodeToBuckwalter(String in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Buckwalter

public Buckwalter()

Buckwalter

public Buckwalter(boolean unicodeToBuckwalter)
Method Detail

apply

public String apply(String in)
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<String,String>

buckwalterToUnicode

public String buckwalterToUnicode(String in)

unicodeToBuckwalter

public String unicodeToBuckwalter(String in)

main

public static void main(String[] args)
                 throws IOException
Throws:
IOException


Stanford NLP Group