|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gpl.pierrick.brihaye.aramorph.AraMorph
A java port of Buckwalter Arabic Morphological Analyzer Version 1.0. Original Perl distribution avalaible from : LDC Catalog
Field Summary | |
protected static gpl.pierrick.brihaye.aramorph.InMemorySolutionsHandler |
sol
The solutions handler. |
protected boolean |
verbose
Whether or not the analyzer should output some convenience messages |
Constructor Summary | |
AraMorph()
Constructs an arabic morphological analyzer that will output nothing. |
|
AraMorph(java.io.PrintStream outputStream,
boolean verbose)
Constructs an arabic morphological analyzer |
Method Summary | |
boolean |
analyzeToken(java.lang.String token)
Analyzes a token and return the results in the Buckwalter transliteration system. |
boolean |
analyzeToken(java.lang.String token,
boolean outputBuckwalter)
Analyzes a token. |
static java.lang.String |
arabizeWord(java.lang.String translitered)
Return an word in arabic from a word in the Buckwalter transliteration system. |
java.util.HashSet |
getWordSolutions(java.lang.String word)
Returns the solutions for a previously analyzed word. |
static void |
main(java.lang.String[] args)
Entry point for command line interface. |
void |
printStats()
Display the statistics on what has been analyzed so far. |
static java.lang.String |
romanizeWord(java.lang.String word)
Returns a word in the Buckwalter transliteration system from a word in arabic. |
void |
setVerbose(boolean verbose)
Whether or not the analyzer should output some convenience messages |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static gpl.pierrick.brihaye.aramorph.InMemorySolutionsHandler sol
protected boolean verbose
Constructor Detail |
public AraMorph()
public AraMorph(java.io.PrintStream outputStream, boolean verbose)
outputStream
- The stream where to output the results. Can be null
if no output is
desiredverbose
- Whether or not the analyzer should output some convenience messagesMethod Detail |
public void setVerbose(boolean verbose)
verbose
- Output statuspublic static java.lang.String romanizeWord(java.lang.String word)
word
- The word in arabic
public static java.lang.String arabizeWord(java.lang.String translitered)
translitered
- The romanized word
public boolean analyzeToken(java.lang.String token)
token
- The token to be analyzed
public boolean analyzeToken(java.lang.String token, boolean outputBuckwalter)
outputBuckwalter
- Whether or not the Buckwalter transliteration system should be used. If not, outputs will be in arabic wherever possibletoken
- The token to be analyzed
public java.util.HashSet getWordSolutions(java.lang.String word)
word
- The word.
Solution
public void printStats()
public static void main(java.lang.String[] args)
args
- Arguments
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |