Class Buckwalter
- java.lang.Object
-
- edu.stanford.nlp.international.arabic.Buckwalter
-
- All Implemented Interfaces:
SerializableFunction<String,String>,Serializable,Function<String,String>
public class Buckwalter extends Object implements SerializableFunction<String,String>
This class can convert between Unicode and Buckwalter encodings of Arabic.Sources
"MORPHOLOGICAL ANALYSIS & POS ANNOTATION," v3.8. LDC. 08 June 2009. http://www.ldc.upenn.edu/myl/morph/buckwalter.html http://www.qamus.org/transliteration.htm (Tim Buckwalter's site) http://www.livingflowers.com/Arabic_transliteration (many but hard to use) http://www.cis.upenn.edu/~cis639/arabic/info/romanization.html http://www.nongnu.org/aramorph/english/index.html (Java AraMorph) BBN's MBuckWalter2Unicode.tab see also my GALE-NOTES.txt file for other mappings ROSETTA people do. Normalization of decomposed characters to composed: ARABIC LETTER ALEF (ا), ARABIC MADDAH ABOVE (ٓ) -> ARABIC LETTER ALEF WITH MADDA ABOVE ARABIC LETTER ALEF (ا), ARABIC HAMZA ABOVE (ٔ) -> ARABIC LETTER ALEF WITH HAMZA ABOVE (أ) ARABIC LETTER WAW, ARABIC HAMZA ABOVE -> ARABIC LETTER WAW WITH HAMZA ABOVE ARABIC LETTER ALEF, ARABIC HAMZA BELOW (ٕ) -> ARABIC LETTER ALEF WITH HAMZA BELOW ARABIC LETTER YEH, ARABIC HAMZA ABOVE -> ARABIC LETTER YEH WITH HAMZA ABOVE
- Author:
- Christopher Manning, Spence Green
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Buckwalter()Buckwalter(boolean unicodeToBuckwalter)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringapply(String in)StringbuckwalterToUnicode(String in)static voidmain(String[] args)voidsuppressBuckDigitConversion(boolean b)voidsuppressBuckPunctConversion(boolean b)StringunicodeToBuckwalter(String in)
-
-
-
Method Detail
-
suppressBuckDigitConversion
public void suppressBuckDigitConversion(boolean b)
-
suppressBuckPunctConversion
public void suppressBuckPunctConversion(boolean b)
-
main
public static void main(String[] args)
- Parameters:
args-
-
-