edu.stanford.nlp.trees.international.arabic
Class Buckwalter
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Buckwalter
public Buckwalter()
Buckwalter
public Buckwalter(boolean unicodeToBuckwalter)
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