out.println (" transitions:"); for (int j = 0; j < s.destinations.length; j++) { out.print (" "); out.print (s.name); out.print (" -> "); out.println (s.getDestinationState (j).getName ()); for (int k = 0; k < s.weightsIndices[j].length; k++) { out.print (" WEIGHTS = \"");
out.println (" transitions:"); for (int j = 0; j < s.destinations.length; j++) { out.print (" "); out.print (s.name); out.print (" -> "); out.println (s.getDestinationState (j).getName ()); for (int k = 0; k < s.weightsIndices[j].length; k++) { out.print (" WEIGHTS = \"");
CRF.State prevState = (CRF.State)crf.getState(si); for (int di = 0; di < prevState.numDestinations(); di++) { int sj = prevState.getDestinationState(di).getIndex(); counts[sj]++; CRF.State prevState = (CRF.State)crf.getState(si); for (int di = 0; di < prevState.numDestinations(); di++) { int sj = prevState.getDestinationState(di).getIndex(); this.reverseTrans[sj][indices[sj]] = si; this.reverseTransIndices[sj][indices[sj]] = di;
CRF.State prevState = (CRF.State)crf.getState(si); for (int di = 0; di < prevState.numDestinations(); di++) { int sj = prevState.getDestinationState(di).getIndex(); counts[sj]++; CRF.State prevState = (CRF.State)crf.getState(si); for (int di = 0; di < prevState.numDestinations(); di++) { int sj = prevState.getDestinationState(di).getIndex(); this.reverseTrans[sj][indices[sj]] = si; this.reverseTransIndices[sj][indices[sj]] = di;
CRF.State prevState = (CRF.State)crf.getState(si); for (int di = 0; di < prevState.numDestinations(); di++) { int sj = prevState.getDestinationState(di).getIndex(); counts[sj]++; CRF.State prevState = (CRF.State)crf.getState(si); for (int di = 0; di < prevState.numDestinations(); di++) { int sj = prevState.getDestinationState(di).getIndex(); this.reverseTrans[sj][indices[sj]] = si; this.reverseTransIndices[sj][indices[sj]] = di;
public final Transducer.State getDestinationState () { return source.getDestinationState (index); }
public final Transducer.State getDestinationState () { return source.getDestinationState (index); }
public final Transducer.State getDestinationState () { return source.getDestinationState (index); }
public final Transducer.State getDestinationState() { return source.getDestinationState(index); }
public final Transducer.State getDestinationState() { return source.getDestinationState(index); }
protected CachedDotTransitionIterator(State source, Object fv, String output, double[] dots) { this.source = source; this.input = fv; this.weights = new double[source.numDestinations()]; for (int i = 0; i < source.numDestinations(); i++) { weights[i] = dots[source.getDestinationState(i).getIndex()]; } // Prepare nextIndex, pointing at the next non-impossible transition nextIndex = 0; while (nextIndex < source.numDestinations() && weights[nextIndex] == Transducer.IMPOSSIBLE_WEIGHT) nextIndex++; }
protected CachedDotTransitionIterator(State source, Object fv, String output, double[] dots) { this.source = source; this.input = fv; this.weights = new double[source.numDestinations()]; for (int i = 0; i < source.numDestinations(); i++) { weights[i] = dots[source.getDestinationState(i).getIndex()]; } // Prepare nextIndex, pointing at the next non-impossible transition nextIndex = 0; while (nextIndex < source.numDestinations() && weights[nextIndex] == Transducer.IMPOSSIBLE_WEIGHT) nextIndex++; }
public final Transducer.State getDestinationState() { return source.getDestinationState(index); }
protected CachedDotTransitionIterator(State source, Object fv, String output, double[] dots) { this.source = source; this.input = fv; this.weights = new double[source.numDestinations()]; for (int i = 0; i < source.numDestinations(); i++) { weights[i] = dots[source.getDestinationState(i).getIndex()]; } // Prepare nextIndex, pointing at the next non-impossible transition nextIndex = 0; while (nextIndex < source.numDestinations() && weights[nextIndex] == Transducer.IMPOSSIBLE_WEIGHT) nextIndex++; }
public Transducer.State nextState () { assert (nextIndex < source.destinations.length); index = nextIndex; nextIndex++; while (nextIndex < source.destinations.length && weights[nextIndex] == IMPOSSIBLE_WEIGHT) nextIndex++; return source.getDestinationState (index); }
public Transducer.State nextState() { assert (nextIndex < source.numDestinations()); index = nextIndex; nextIndex++; while (nextIndex < source.numDestinations() && weights[nextIndex] == Transducer.IMPOSSIBLE_WEIGHT) nextIndex++; return source.getDestinationState(index); }
public Transducer.State nextState () { assert (nextIndex < source.destinations.length); index = nextIndex; nextIndex++; while (nextIndex < source.destinations.length && weights[nextIndex] == IMPOSSIBLE_WEIGHT) nextIndex++; return source.getDestinationState (index); }
public Transducer.State nextState () { assert (nextIndex < source.destinations.length); index = nextIndex; nextIndex++; while (nextIndex < source.destinations.length && weights[nextIndex] == IMPOSSIBLE_WEIGHT) nextIndex++; return source.getDestinationState (index); }
public Transducer.State nextState() { assert (nextIndex < source.numDestinations()); index = nextIndex; nextIndex++; while (nextIndex < source.numDestinations() && weights[nextIndex] == Transducer.IMPOSSIBLE_WEIGHT) nextIndex++; return source.getDestinationState(index); }
public Transducer.State nextState() { assert (nextIndex < source.numDestinations()); index = nextIndex; nextIndex++; while (nextIndex < source.numDestinations() && weights[nextIndex] == Transducer.IMPOSSIBLE_WEIGHT) nextIndex++; return source.getDestinationState(index); }