Examples of linearToLog()


Examples of edu.cmu.sphinx.util.LogMath.linearToLog()

                         if (k == j || k == j + 1) {
                             tmat[j][k] = est.getFloat("tmat value");
                         }
                    }

                    tmat[j][k] = logMath.linearToLog(tmat[j][k]);

                    if (logger.isLoggable(Level.FINE)) {
                        logger.fine("tmat j " + j + " k "
                                + k + " tm " + tmat[j][k]);
                    }
View Full Code Here

Examples of edu.cmu.sphinx.util.LogMath.linearToLog()

                if (wordsSeen2.contains(word2)) {
                    continue;
                }
                wordsSeen2.add(word2);
                float sim = (float) computePhoneticSimilarity(node1, node2);
                sim = logMath.linearToLog(sim);
                sim += wordSubClusterProbability(c1, word1);
                sim += wordSubClusterProbability(c2, word2);
                totalSim = logMath.addAsLinear(totalSim, sim);
                wordPairCount++;
            }
View Full Code Here

Examples of edu.cmu.sphinx.util.LogMath.linearToLog()

                    if (j < numStates - 1) {
                        if (k == j || k == j + 1) {
                            tmat[j][k] = est.getFloat("tmat value");
                        }
                    }
                    tmat[j][k] = logMath.linearToLog(tmat[j][k]);
                    if (logger.isLoggable(Level.FINE)) {
                        logger.fine("tmat j " + j + " k " + k + " tm " + tmat[j][k]);
                    }
                }
            }
View Full Code Here

Examples of edu.cmu.sphinx.util.LogMath.linearToLog()

    this.acousticModel = acousticModel;
    this.grammar = grammar;
    this.unitManager = unitManager;

    LogMath logMath = LogMath.getLogMath();
    this.logWordInsertionProbability = logMath
        .linearToLog(wordInsertionProbability);
    this.logSilenceInsertionProbability = logMath
        .linearToLog(silenceInsertionProbability);
    this.logUnitInsertionProbability = logMath
        .linearToLog(unitInsertionProbability);
View Full Code Here

Examples of edu.cmu.sphinx.util.LogMath.linearToLog()

    this.unitManager = unitManager;

    LogMath logMath = LogMath.getLogMath();
    this.logWordInsertionProbability = logMath
        .linearToLog(wordInsertionProbability);
    this.logSilenceInsertionProbability = logMath
        .linearToLog(silenceInsertionProbability);
    this.logUnitInsertionProbability = logMath
        .linearToLog(unitInsertionProbability);
    this.logFillerInsertionProbability = logMath
        .linearToLog(fillerInsertionProbability);
View Full Code Here

Examples of edu.cmu.sphinx.util.LogMath.linearToLog()

    LogMath logMath = LogMath.getLogMath();
    this.logWordInsertionProbability = logMath
        .linearToLog(wordInsertionProbability);
    this.logSilenceInsertionProbability = logMath
        .linearToLog(silenceInsertionProbability);
    this.logUnitInsertionProbability = logMath
        .linearToLog(unitInsertionProbability);
    this.logFillerInsertionProbability = logMath
        .linearToLog(fillerInsertionProbability);
    this.languageWeight = languageWeight;
    this.addOutOfGrammarBranch = addOutOfGrammarBranch;
View Full Code Here

Examples of edu.cmu.sphinx.util.LogMath.linearToLog()

        .linearToLog(wordInsertionProbability);
    this.logSilenceInsertionProbability = logMath
        .linearToLog(silenceInsertionProbability);
    this.logUnitInsertionProbability = logMath
        .linearToLog(unitInsertionProbability);
    this.logFillerInsertionProbability = logMath
        .linearToLog(fillerInsertionProbability);
    this.languageWeight = languageWeight;
    this.addOutOfGrammarBranch = addOutOfGrammarBranch;
    this.logOutOfGrammarBranchProbability = logMath
        .linearToLog(outOfGrammarBranchProbability);
View Full Code Here

Examples of edu.cmu.sphinx.util.LogMath.linearToLog()

        .linearToLog(unitInsertionProbability);
    this.logFillerInsertionProbability = logMath
        .linearToLog(fillerInsertionProbability);
    this.languageWeight = languageWeight;
    this.addOutOfGrammarBranch = addOutOfGrammarBranch;
    this.logOutOfGrammarBranchProbability = logMath
        .linearToLog(outOfGrammarBranchProbability);

    this.logPhoneInsertionProbability = logMath
        .linearToLog(logPhoneInsertionProbability);
    if (addOutOfGrammarBranch) {
View Full Code Here

Examples of edu.cmu.sphinx.util.LogMath.linearToLog()

    this.languageWeight = languageWeight;
    this.addOutOfGrammarBranch = addOutOfGrammarBranch;
    this.logOutOfGrammarBranchProbability = logMath
        .linearToLog(outOfGrammarBranchProbability);

    this.logPhoneInsertionProbability = logMath
        .linearToLog(logPhoneInsertionProbability);
    if (addOutOfGrammarBranch) {
      this.phoneLoopAcousticModel = phoneLoopAcousticModel;
    }
  }
View Full Code Here

Examples of edu.cmu.sphinx.util.LogMath.linearToLog()

    grammar = (Grammar) ps.getComponent(GRAMMAR);
    unitManager = (UnitManager) ps.getComponent(UNIT_MANAGER);

    // get the rest of the configuration data
    LogMath logMath = LogMath.getLogMath();
    logWordInsertionProbability = logMath.linearToLog(ps
        .getDouble(PROP_WORD_INSERTION_PROBABILITY));
    logSilenceInsertionProbability = logMath.linearToLog(ps
        .getDouble(PROP_SILENCE_INSERTION_PROBABILITY));
    logUnitInsertionProbability = logMath.linearToLog(ps
        .getDouble(PROP_UNIT_INSERTION_PROBABILITY));
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.