org.kemet.impl.grammar.phonetic_complement
Class PhoneticComplementAlternativAlgorithm

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

public class PhoneticComplementAlternativAlgorithm
extends PhoneticComplementAlgorithmToolBox
implements IEpuratePhoneticComplement

Since:
0.2
Author:
fabricemaupin

PhoneticComplementAlternativAlgorithm : remove all complement phonetic from bilitere sequence.


Constructor Summary
PhoneticComplementAlternativAlgorithm(java.util.HashMap args)
           Initialize the alternativ algorithm.
 
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

PhoneticComplementAlternativAlgorithm

public PhoneticComplementAlternativAlgorithm(java.util.HashMap args)

Initialize the alternativ algorithm.

Parameters:
args - parameters initialized for the grammar manager see DeveloperGuide : "first step : how to configure the KEMET Library ?"
Since:
0.2
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.