All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.optimaize.langdetect.text.CharNormalizerTextFilterImpl Maven / Gradle / Ivy

package com.optimaize.langdetect.text;

import com.optimaize.langdetect.cybozu.util.CharNormalizer;

/**
 * Runs through the {@link CharNormalizer}.
 *
 * @author Fabian Kessler
 * @deprecated can't be used because it would be a big loss to not inline this code.
 */
public class CharNormalizerTextFilterImpl implements TextFilter {

    @Override
    public String filter(CharSequence text) {
        StringBuilder ret = new StringBuilder();
        char pre = 0;
        for (int i=0; i




© 2015 - 2024 Weber Informatics LLC | Privacy Policy