Package seekfeel.miners.features.computers

Examples of seekfeel.miners.features.computers.FeatureValueComputer


    private FeatureValueComputer getFeatComputer(SupportedFeature currentFeature) {
        return featuresComputers.get(currentFeature);
    }

    private LinkedHashMap<Integer, Double> computeSampleFeatures(DataUnit sample, ArrayList<Integer> theIndecies) {
        FeatureValueComputer currentFeatComputer;
        ArrayList<Feature> currentFeats;
        LinkedHashMap<Integer, Double> sampleFeats = new LinkedHashMap<Integer, Double>();
        int appendStartIndex = 0;
        CorpusHolder tempCorpus = theIndecies == null ? theCorpus : theCorpus.getNeededCorpus(theIndecies);
        for (int i = 0; i < neededFeats.size(); i++) {
            currentFeatComputer = getFeatComputer(neededFeats.get(i));
            currentFeats = allFeatures.get(i);
            appendMap(sampleFeats, currentFeatComputer.computeFeatures(sample, currentFeats, tempCorpus), appendStartIndex);
            appendStartIndex += currentFeats.size();
        }
        return sampleFeats;
    }
View Full Code Here

TOP

Related Classes of seekfeel.miners.features.computers.FeatureValueComputer

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.