Package etc.aloe.processes

Examples of etc.aloe.processes.Segmentation


            saveCommand(options.outputCommandFile);
           
            //Get and preprocess the data
            MessageSet messages = this.loadMessages(options.inputCSVFile);
            Segmentation segmentation = factory.constructSegmentation();
            SegmentSet segments = segmentation.segment(messages);

            //Set up a cross validation controller.
            CrossValidationController crossValidationController = new CrossValidationController();
            //Configure controller
            factory.configureCrossValidation(crossValidationController);
View Full Code Here


            LabelOptions options = (LabelOptions) modeOptions;

            saveCommand(options.outputCommandFile);
           
            //Set up the segmentation
            Segmentation segmentation = factory.constructSegmentation();

            //Create a labeling controller
            LabelingController labelingController = new LabelingController();

            //Provide implementations of the needed processes
            factory.configureLabeling(labelingController);

            //Process the input messages
            MessageSet messages = this.loadMessages(options.inputCSVFile);
            FeatureSpecification spec = this.loadFeatureSpecification(options.inputFeatureSpecFile);
            Model model = this.loadModel(options.inputModelFile);

            SegmentSet segments = segmentation.segment(messages);

            //Run the labeling process
            labelingController.setModel(model);
            labelingController.setSegmentSet(segments);
            labelingController.setFeatureSpecification(spec);
View Full Code Here

        }

        if (disableSegmentation) {
            return new NullSegmentation();
        } else {
            Segmentation segmentation = new ThresholdSegmentation(segmentationThresholdSeconds,
                    !ignoreParticipants);
            segmentation.setSegmentResolution(new ResolutionImpl());
            return segmentation;
        }
    }
View Full Code Here

TOP

Related Classes of etc.aloe.processes.Segmentation

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.