Package com.meapsoft

Examples of com.meapsoft.FeatExtractor


      }
    }
   
    FeatFile featsFile = new FeatFile(segsFile.filename + ".feat");
   
    FeatExtractor extractor = new FeatExtractor(segsFile, featsFile, featureExtractors);
    extractor.run();

    return featsFile;
  }
View Full Code Here


      weights.add(chk.getWeight());
    }
   
   
    //create the actual feat extractor, make it clear non-meta features
        FeatExtractor featExtractor = new FeatExtractor(segmentFile, featFile, features);
        featExtractor.writeMEAPFile = MEAPUtil.writeMEAPFile;
        featExtractor.setFeatureExtractorWeights(weights);
        featExtractor.setClearNonMetaFeatures(mReplaceBtn.isSelected());

      //update the progress bar
      mMainScreen.updateProgressBar("Extracting Features...", featExtractor.getProgress());

        try
        {       
            // clear whatever chunks may have already been calculated
            featFile.clearChunks();
           
            //do the magic!
            featExtractor.setup();
            featExtractor.processFeatFiles();

            //are we writing this?           
            if(featExtractor.writeMEAPFile)
              featFile.writeFile();
        }
View Full Code Here

          "meta feature extractor!", GUIUtils.MESSAGE, meapsoftGUI.jframe);
        return -1
            }
        }

        FeatExtractor featExtractor =
            new FeatExtractor(segmentFile, featFile, featExts);
        featExtractor.writeMEAPFile = meapsoftGUI.writeMEAPFile;
        featExtractor.setFeatureExtractorWeights(featWeights);
        featExtractor.setClearNonMetaFeatures(
            clearNonMetaFeatures.isSelected());

        JPanel progressPanel = new JPanel();
        progressPanel.add(new JLabel("Extracting features: "));
        JProgressBar progressBar = new JProgressBar(featExtractor.getProgress());
        progressBar.setStringPainted(true);
        progressPanel.add(progressBar);
        meapsoftGUI.setProgressPanel(progressPanel);

        try
        {       
            // clear whatever chunks may have already been calculated
            featFile.clearChunks();
           
            featExtractor.setup();
            featExtractor.processFeatFiles();

            if(featExtractor.writeMEAPFile)
                featFile.writeFile();
        }
        catch (Exception e)
View Full Code Here

    Vector extractors = new Vector();
    extractors.add(new AvgMelSpec());

    FeatFile spectrumFeats = new FeatFile("temp.feat");

    FeatExtractor fE = new FeatExtractor(fF, spectrumFeats, extractors);

    fE.setProgress(progress);

    try
    {
      fE.setup();
      fE.processFeatFiles();
    }
    catch (Exception e)
    {
      e.printStackTrace();
    }
View Full Code Here

TOP

Related Classes of com.meapsoft.FeatExtractor

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.