org.kemet.impl.grammar.phonetic_complement
Class PhoneticComplementFirstAlgorithm

java.lang.Object
  extended by org.kemet.impl.grammar.phonetic_complement.PhoneticComplementAlgorithmToolBox
      extended by org.kemet.impl.grammar.phonetic_complement.PhoneticComplementFirstAlgorithm
All Implemented Interfaces:
IEpuratePhoneticComplement

public class PhoneticComplementFirstAlgorithm
extends PhoneticComplementAlgorithmToolBox
implements IEpuratePhoneticComplement

Since:
0.2
Author:
fabricemaupin

PhoneticComplementFirstAlgorithm : remove all complement phonetic from bilitere sequence - implemented algorithm


Constructor Summary
PhoneticComplementFirstAlgorithm(java.util.HashMap args)
           initialize the first algorithm for phonetic complement.
 
Method Summary
 java.lang.String[] epurate(java.lang.String[] transliteration, int number, java.util.HashMap ht)
           return a transliterated sequence without phonetic complements.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhoneticComplementFirstAlgorithm

public PhoneticComplementFirstAlgorithm(java.util.HashMap args)

initialize the first algorithm for phonetic complement.

Parameters:
args - parameters initialized for the grammar manager see DeveloperGuide : "first step : how to configure the KEMET library ?"
Method Detail

epurate

public java.lang.String[] epurate(java.lang.String[] transliteration,
                                  int number,
                                  java.util.HashMap ht)
                           throws KemetAPIException

return a transliterated sequence without phonetic complements.

Specified by:
epurate in interface IEpuratePhoneticComplement
Parameters:
transliteration - transliteration to epurate
number - number of caracters to concatenate (ex : 2 for biliteres)
ht - informations about phonograms
Returns:
epurated sequenceList
Throws:
KemetAPIException
Since:
0.2


Copyright © 2008 F. MAUPIN. All Rights Reserved.