Detailed Description of Apply Replacements

This step performs replacements of all known (defined) strings within the given text string, where the final value is stored in the data output. Transformations are included from the specified dictionary where both the source value (text to be replaced) and final value (replacement) are stored. This step replaces the longest substring of the input that equals the source definition value in the dictionary containing the replacement values.


Top of page

Example: Apply Replacements Example
<step id='alg' className='cz.adastra.cif.tasks.clean.ApplyReplacementsAlgorithm'>
        <properties>
                <in>text</in>
                <out>translation</out>
                <replacementsFileName>replacements.cif</replacementsFileName>
                <tokenizer whiteSpaceDefinition="[:white:]">
                        <types>
                                <type tokenCharacters="[:letter:]" tokenStartCharacters="[:letter:]" />
                                <type tokenCharacters="[:digit:]" tokenStartCharacters="[:digit:]" />
                        </types>
                </tokenizer>
        </properties>
</step>

iWay Software