gpl.pierrick.brihaye.aramorph
Class Solution

java.lang.Object
  extended bygpl.pierrick.brihaye.aramorph.Solution

public class Solution
extends java.lang.Object

A solution for a word.

Author:
Pierrick Brihaye, 2003

Field Summary
protected  int cnt
           
protected  boolean debug
          Whether or not the dictionnaries inconsistencies should be output
protected  gpl.pierrick.brihaye.aramorph.DictionaryEntry prefix
           
protected  java.util.LinkedList prefixesGlosses
           
protected  java.util.LinkedList prefixesPOS
           
protected  gpl.pierrick.brihaye.aramorph.DictionaryEntry stem
           
protected  java.util.LinkedList stemsGlosses
           
protected  java.util.LinkedList stemsPOS
           
protected  gpl.pierrick.brihaye.aramorph.DictionaryEntry suffix
           
protected  java.util.LinkedList suffixesGlosses
           
protected  java.util.LinkedList suffixesPOS
           
 
Constructor Summary
protected Solution(boolean debug, int cnt, gpl.pierrick.brihaye.aramorph.DictionaryEntry prefix, gpl.pierrick.brihaye.aramorph.DictionaryEntry stem, gpl.pierrick.brihaye.aramorph.DictionaryEntry suffix)
          Constructs a solution for a word.
protected Solution(int cnt, gpl.pierrick.brihaye.aramorph.DictionaryEntry prefix, gpl.pierrick.brihaye.aramorph.DictionaryEntry stem, gpl.pierrick.brihaye.aramorph.DictionaryEntry suffix)
          Constructs a solution for a word.
 
Method Summary
 int getCnt()
          Returns the order in solutions' sequence.
 java.lang.String getLemma()
          Returns the lemma id in the stems dictionary.
 gpl.pierrick.brihaye.aramorph.DictionaryEntry getPrefix()
          Returns the dictionary entry for the word's prefix as provided by the prefixes dictionnary, i.e.
 java.lang.String[] getPrefixesArabicLongPOS()
          Returns The vocalizations in arabic of the recomputed prefixes and their grammatical categories or null if there is no stem for the word.
 java.lang.String[] getPrefixesArabicVocalizations()
          Returns the vocalizations of the recomputed prefixes in arabic or null if there are no prefixes for the word.
 java.lang.String[] getPrefixesGlosses()
          Returns the english glosses of the prefixes.
 java.lang.String[] getPrefixesLongPOS()
          Returns The vocalizations using the Buckwalter transliteration system of the recomputed prefixes and their grammatical categories or null if there are no prefixes for the word.
 java.lang.String[] getPrefixesPOS()
          Returns the grammatical categories of the recomputed prefixes or null if there are no prefixes for the word.
 java.lang.String[] getPrefixesVocalizations()
          Returns the vocalizations of the recomputed prefixes in the Buckwalter transliteration system or null if there are no prefixes for the word.
 java.lang.String getPrefixMorphology()
          Returns the morphology of the prefix.
 gpl.pierrick.brihaye.aramorph.DictionaryEntry getStem()
          Returns the dictionary entry for the word's stem as provided by the stems dictionnary, i.e.
 java.lang.String getStemArabicLongPOS()
          Returns The vocalization in arabic of the recomputed stem and its grammatical category or null if there is no stem for the word.
 java.lang.String getStemArabicVocalization()
          Returns the vocalization of the recomputed stem in arabic or null if there is no stem for the word.
 java.lang.String getStemGloss()
          Returns the english gloss of the stem.
 java.lang.String getStemLongPOS()
          Returns The vocalization using the Buckwalter transliteration system of the recomputed stem and its grammatical category or null if there is no stem for the word.
 java.lang.String getStemMorphology()
          Returns the morphology of the stem.
 java.lang.String getStemPOS()
          Returns the grammatical category of the recomputed stem.
 java.lang.String getStemVocalization()
          Returns the vocalization of the recomputed stem in the Buckwalter transliteration system or null if there is no stem for the word.
 gpl.pierrick.brihaye.aramorph.DictionaryEntry getSuffix()
          Returns the dictionary entry for the word's suffix as provided by the suffixes dictionnary, i.e.
 java.lang.String[] getSuffixesArabicLongPOS()
          Returns The vocalization in arabic of the recomputed suffixes and their grammatical categories or null if there is are no suffixes for the word.
 java.lang.String[] getSuffixesArabicVocalizations()
          Returns the vocalizations of the recomputed suffixes in arabic or null if there ares no suffixes for the word.
 java.lang.String[] getSuffixesGlosses()
          Returns the english glosses of the suffixes.
 java.lang.String[] getSuffixesLongPOS()
          Returns The vocalizations using the Buckwalter transliteration system of the recomputed suffixes and their grammatical categories or null if there is are no suffixes for the word.
 java.lang.String[] getSuffixesPOS()
          Returns The grammatical categories of the recomputed suffixes or null if there are no suffixes for the word..
 java.lang.String[] getSuffixesVocalizations()
          Returns the vocalizations of the recomputed suffixes in the Buckwalter transliteration system or null if there ares no suffixes for the word.
 java.lang.String getSuffixMorphology()
          Returns the morphology of the suffix.
 java.lang.String getWordArabicLongPOS()
          Returns The vocalization of the word in atabic and its grammatical categories.
 java.lang.String getWordArabicVocalization()
          Returns the vocalization of the word in arabic.
 java.lang.String getWordGlosses()
          Returns the english glosses of the word.
 java.lang.String getWordLongPOS()
          Returns The vocalization of the word in the Buckwalter transliteration system and its grammatical categories.
 java.lang.String getWordMorphology()
          Returns the morphology of the word.
 java.lang.String getWordVocalization()
          Returns the vocalization of the word in the Buckwalter transliteration system.
 java.lang.String toArabizedString()
          Returns a string representation of how the word can be analyzed using arabic for the vocalizations..
 java.lang.String toString()
          Returns a string representation of how the word can be analyzed using the Buckwalter transliteration system for the vocalizations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

debug

protected boolean debug
Whether or not the dictionnaries inconsistencies should be output


cnt

protected int cnt

prefix

protected gpl.pierrick.brihaye.aramorph.DictionaryEntry prefix

stem

protected gpl.pierrick.brihaye.aramorph.DictionaryEntry stem

suffix

protected gpl.pierrick.brihaye.aramorph.DictionaryEntry suffix

prefixesPOS

protected java.util.LinkedList prefixesPOS

stemsPOS

protected java.util.LinkedList stemsPOS

suffixesPOS

protected java.util.LinkedList suffixesPOS

prefixesGlosses

protected java.util.LinkedList prefixesGlosses

stemsGlosses

protected java.util.LinkedList stemsGlosses

suffixesGlosses

protected java.util.LinkedList suffixesGlosses
Constructor Detail

Solution

protected Solution(int cnt,
                   gpl.pierrick.brihaye.aramorph.DictionaryEntry prefix,
                   gpl.pierrick.brihaye.aramorph.DictionaryEntry stem,
                   gpl.pierrick.brihaye.aramorph.DictionaryEntry suffix)
Constructs a solution for a word. Note that the prefix, stem and suffix combination is recomputed and may not necessarily match with the information provided by the dictionaries.

Parameters:
cnt - Order in sequence ; not very useful actually
prefix - The prefix as provided by the prefixes dictionnary
stem - The stem as provided by the stems dictionnary
suffix - The suffix as provided by the suffixes dictionnary

Solution

protected Solution(boolean debug,
                   int cnt,
                   gpl.pierrick.brihaye.aramorph.DictionaryEntry prefix,
                   gpl.pierrick.brihaye.aramorph.DictionaryEntry stem,
                   gpl.pierrick.brihaye.aramorph.DictionaryEntry suffix)
Constructs a solution for a word. Note that the prefix, stem and suffix combination is recomputed and may not necessarily match with the information provided by the dictionaries.

Parameters:
debug - Whether or not the dictionnaries inconsistencies should be output
cnt - Order in sequence ; not very useful actually
prefix - The prefix as provided by the prefixes dictionnary
stem - The stem as provided by the stems dictionnary
suffix - The suffix as provided by the suffixes dictionnary
Method Detail

getPrefix

public gpl.pierrick.brihaye.aramorph.DictionaryEntry getPrefix()
Returns the dictionary entry for the word's prefix as provided by the prefixes dictionnary, i.e. before recomputation.

Returns:
The prefix

getStem

public gpl.pierrick.brihaye.aramorph.DictionaryEntry getStem()
Returns the dictionary entry for the word's stem as provided by the stems dictionnary, i.e. before recomputation..

Returns:
The stem

getSuffix

public gpl.pierrick.brihaye.aramorph.DictionaryEntry getSuffix()
Returns the dictionary entry for the word's suffix as provided by the suffixes dictionnary, i.e. before recomputation..

Returns:
The suffix

getCnt

public int getCnt()
Returns the order in solutions' sequence.

Returns:
The order in sequence

getLemma

public java.lang.String getLemma()
Returns the lemma id in the stems dictionary.

Returns:
The lemma ID

getPrefixesVocalizations

public java.lang.String[] getPrefixesVocalizations()
Returns the vocalizations of the recomputed prefixes in the Buckwalter transliteration system or null if there are no prefixes for the word.

Returns:
The vocalizations

getPrefixesArabicVocalizations

public java.lang.String[] getPrefixesArabicVocalizations()
Returns the vocalizations of the recomputed prefixes in arabic or null if there are no prefixes for the word.

Returns:
The vocalizations

getStemVocalization

public java.lang.String getStemVocalization()
Returns the vocalization of the recomputed stem in the Buckwalter transliteration system or null if there is no stem for the word.

Returns:
The vocalization

getStemArabicVocalization

public java.lang.String getStemArabicVocalization()
Returns the vocalization of the recomputed stem in arabic or null if there is no stem for the word.

Returns:
The vocalization

getSuffixesVocalizations

public java.lang.String[] getSuffixesVocalizations()
Returns the vocalizations of the recomputed suffixes in the Buckwalter transliteration system or null if there ares no suffixes for the word.

Returns:
The vocalizations

getSuffixesArabicVocalizations

public java.lang.String[] getSuffixesArabicVocalizations()
Returns the vocalizations of the recomputed suffixes in arabic or null if there ares no suffixes for the word.

Returns:
The vocalizations

getWordVocalization

public java.lang.String getWordVocalization()
Returns the vocalization of the word in the Buckwalter transliteration system.

Returns:
The vocalization

getWordArabicVocalization

public java.lang.String getWordArabicVocalization()
Returns the vocalization of the word in arabic.

Returns:
The vocalization

getPrefixMorphology

public java.lang.String getPrefixMorphology()
Returns the morphology of the prefix.

Returns:
The morphology

getStemMorphology

public java.lang.String getStemMorphology()
Returns the morphology of the stem.

Returns:
The morphology

getSuffixMorphology

public java.lang.String getSuffixMorphology()
Returns the morphology of the suffix.

Returns:
The morphology

getWordMorphology

public java.lang.String getWordMorphology()
Returns the morphology of the word.

Returns:
The morphology

getPrefixesPOS

public java.lang.String[] getPrefixesPOS()
Returns the grammatical categories of the recomputed prefixes or null if there are no prefixes for the word.

Returns:
The grammatical categories

getPrefixesLongPOS

public java.lang.String[] getPrefixesLongPOS()
Returns The vocalizations using the Buckwalter transliteration system of the recomputed prefixes and their grammatical categories or null if there are no prefixes for the word.

Returns:
The vocalizations and the grammatical categories

getPrefixesArabicLongPOS

public java.lang.String[] getPrefixesArabicLongPOS()
Returns The vocalizations in arabic of the recomputed prefixes and their grammatical categories or null if there is no stem for the word.

Returns:
The vocalizations and the grammatical categories.

getStemPOS

public java.lang.String getStemPOS()
Returns the grammatical category of the recomputed stem.

Returns:
The grammatical category

getStemLongPOS

public java.lang.String getStemLongPOS()
Returns The vocalization using the Buckwalter transliteration system of the recomputed stem and its grammatical category or null if there is no stem for the word.

Returns:
The vocalization and the grammatical category

getStemArabicLongPOS

public java.lang.String getStemArabicLongPOS()
Returns The vocalization in arabic of the recomputed stem and its grammatical category or null if there is no stem for the word.

Returns:
The vocalization and the grammatical category

getSuffixesPOS

public java.lang.String[] getSuffixesPOS()
Returns The grammatical categories of the recomputed suffixes or null if there are no suffixes for the word..

Returns:
The grammatical categories

getSuffixesLongPOS

public java.lang.String[] getSuffixesLongPOS()
Returns The vocalizations using the Buckwalter transliteration system of the recomputed suffixes and their grammatical categories or null if there is are no suffixes for the word.

Returns:
The vocalizations and the grammatical categories

getSuffixesArabicLongPOS

public java.lang.String[] getSuffixesArabicLongPOS()
Returns The vocalization in arabic of the recomputed suffixes and their grammatical categories or null if there is are no suffixes for the word.

Returns:
The vocalizations and the grammatical categories

getWordLongPOS

public java.lang.String getWordLongPOS()
Returns The vocalization of the word in the Buckwalter transliteration system and its grammatical categories.

Returns:
The vocalization and the grammatical categories

getWordArabicLongPOS

public java.lang.String getWordArabicLongPOS()
Returns The vocalization of the word in atabic and its grammatical categories.

Returns:
The vocalization and the grammatical categories

getPrefixesGlosses

public java.lang.String[] getPrefixesGlosses()
Returns the english glosses of the prefixes.

Returns:
The glosses.

getStemGloss

public java.lang.String getStemGloss()
Returns the english gloss of the stem.

Returns:
The gloss.

getSuffixesGlosses

public java.lang.String[] getSuffixesGlosses()
Returns the english glosses of the suffixes.

Returns:
The glosses.

getWordGlosses

public java.lang.String getWordGlosses()
Returns the english glosses of the word.

Returns:
The glosses.

toString

public java.lang.String toString()
Returns a string representation of how the word can be analyzed using the Buckwalter transliteration system for the vocalizations.

Returns:
The representation

toArabizedString

public java.lang.String toArabizedString()
Returns a string representation of how the word can be analyzed using arabic for the vocalizations..

Returns:
The representation