private void lookAhead() { if (weights != null && !found) { for (; prev < t.numStates(); prev++) if (weights[prev] > Transducer.IMPOSSIBLE_WEIGHT) { found = true; return; } } } public boolean hasNext() {
private void lookAhead() { if (weights != null && !found) { for (; prev < t.numStates(); prev++) if (weights[prev] > Transducer.IMPOSSIBLE_WEIGHT) { found = true; return; } } } public boolean hasNext() {
private void lookAhead() { if (weights != null && !found) { for (; prev < t.numStates(); prev++) if (weights[prev] > Transducer.IMPOSSIBLE_WEIGHT) { found = true; return; } } } public boolean hasNext() {
public GammaProductConfidenceEstimator (Transducer model) { super(model); string2stateIndex = new HashMap(); // store state indices for (int i=0; i < model.numStates(); i++) { string2stateIndex.put (model.getState(i).getName(), new Integer (i)); } }
public GammaAverageConfidenceEstimator (Transducer model) { super(model); string2stateIndex = new HashMap(); // store state indices for (int i=0; i < model.numStates(); i++) { string2stateIndex.put (model.getState(i).getName(), new Integer (i)); } }
public GammaProductConfidenceEstimator (Transducer model) { super(model); string2stateIndex = new HashMap(); // store state indices for (int i=0; i < model.numStates(); i++) { string2stateIndex.put (model.getState(i).getName(), new Integer (i)); } }
public GammaProductConfidenceEstimator (Transducer model) { super(model); string2stateIndex = new HashMap(); // store state indices for (int i=0; i < model.numStates(); i++) { string2stateIndex.put (model.getState(i).getName(), new Integer (i)); } }
public GammaAverageConfidenceEstimator (Transducer model) { super(model); string2stateIndex = new HashMap(); // store state indices for (int i=0; i < model.numStates(); i++) { string2stateIndex.put (model.getState(i).getName(), new Integer (i)); } }
public GammaAverageConfidenceEstimator (Transducer model) { super(model); string2stateIndex = new HashMap(); // store state indices for (int i=0; i < model.numStates(); i++) { string2stateIndex.put (model.getState(i).getName(), new Integer (i)); } }
/** * Returns the index of the input state name, returns -1 if name not found. */ public int stateIndexOfString (String s) { for (int i = 0; i < this.numStates(); i++) { String state = this.getState (i).getName(); if (state.equals (s)) return i; } return -1; }
/** * Returns the index of the input state name, returns -1 if name not found. */ public int stateIndexOfString (String s) { for (int i = 0; i < this.numStates(); i++) { String state = this.getState (i).getName(); if (state.equals (s)) return i; } return -1; }
/** * Returns the index of the input state name, returns -1 if name not found. */ public int stateIndexOfString (String s) { for (int i = 0; i < this.numStates(); i++) { String state = this.getState (i).getName(); if (state.equals (s)) return i; } return -1; }