Examples of FeatureFilter


Examples of org.apache.stanbol.enhancer.engines.uimatotriples.tools.FeatureFilter

        this.tnfs = new FeatureStructureFilter();
        String[] typeNameStrings = (String[]) props.get(UIMA_TYPENAMES);
        if (typeNameStrings != null) {
            for (String typ : typeNameStrings) {
                String[] mainparts = typ.split(";", 2);
                FeatureFilter tnf = new FeatureFilter();
                tnf.setTypeName(mainparts[0]);
                if (mainparts.length == 1) {
                    tnfs.addFeatureFilter(tnf);
                    continue;
                }
                String[] subParts = mainparts[1].split(";");
                for (String subP : subParts) {
                    String[] subsubP = subP.split("=", 2);
                    if (subsubP.length == 1) {
                        tnf.addFeatureFilter(subsubP[0], "");
                        continue;
                    }
                    tnf.addFeatureFilter(subsubP[0], subsubP[1]);
                }
                tnfs.addFeatureFilter(tnf);
            }
        }
        mappings = new HashMap<String, String>();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.