Package edu.cmu.sphinx.linguist.acoustic.tiedstate.trainer

Examples of edu.cmu.sphinx.linguist.acoustic.tiedstate.trainer.TrainerScore


        // Feature. If not, a problem or EOF was encountered.
        if (getFeature()) {
            // Since it's flat initialization, the probability is
            // neutral, and the senone means "all senones".
            TrainerScore[] score = new TrainerScore[1];
            score[0] = new TrainerScore(curFeature, 0.0f,
                    TrainerAcousticModel.ALL_MODELS);
            return score;
        } else {
            return null;
        }
View Full Code Here


    private void forwardPass(TrainerScore[] score) {
        // Let's precompute the acoustic probabilities and create the
        // score object, one for each state
        for (int i = 0; i < graph.size(); i++) {
            outputProbs[i] = calculateScores(i);
            score[i] = new TrainerScore(curFeature,
                    outputProbs[i],
                    (HMMState) graph.getNode(i).getObject(),
                    componentScores);
            score[i].setAlpha(probCurrentFrame[i]);
        }
View Full Code Here

     * Initializes the acoustic models.
     *
     * @param context the context of this TrainManager
     */
    public void initializeModels(String context) throws IOException {
        TrainerScore score[];

        dumpMemoryInfo("TrainManager start");

        for (TrainerAcousticModel model : acousticModels) {

View Full Code Here

TOP

Related Classes of edu.cmu.sphinx.linguist.acoustic.tiedstate.trainer.TrainerScore

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.