Package org.xbib.elasticsearch.analysis.decompound

Examples of org.xbib.elasticsearch.analysis.decompound.Decompounder


        try {
            String forward = settings.get("forward", "/kompVVic.tree");
            String backward = settings.get("backward", "/kompVHic.tree");
            String reduce = settings.get("reduce", "/grfExt.tree");
            double threshold = settings.getAsDouble("threshold", 0.51);
            return new Decompounder(env.resolveConfig(forward).openStream(),
                    env.resolveConfig(backward).openStream(),
                    env.resolveConfig(reduce).openStream(),
                    threshold);
        } catch (ClassNotFoundException e) {
            throw new ElasticsearchIllegalArgumentException("decompounder resources in settings not found: " + settings, e);
View Full Code Here

TOP

Related Classes of org.xbib.elasticsearch.analysis.decompound.Decompounder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.