Examples of IntTriple


Examples of edu.stanford.nlp.util.IntTriple

  protected int indexOf(int c) {
    return featureIndex.indexOf(new IntUni(c));
  }

  protected int indexOf(int f, int c, int val) {
    return featureIndex.indexOf(new IntTriple(c, f, val));
  }
View Full Code Here

Examples of edu.stanford.nlp.util.IntTriple

    Index<IntTuple> index = new HashIndex<IntTuple>();
    for (int c = 0; c < numClasses; c++) {
      index.add(new IntUni(c));
      for (int f = 0; f < numFeatures; f++) {
        for (int val = 0; val < numValues[f]; val++) {
          index.add(new IntTriple(c, f, val));
        }
      }
    }

    return index;
View Full Code Here

Examples of fig.basic.IntTriple

      for (Example example : Vis.getExamples(file)) {
        final List<Derivation> beam = example.getPredDerivations();
        beamSize = Math.max(beamSize, beam.size());
        for (int i = 0; i < beam.size(); i++)
          if (beam.get(i).getCompatibility() == 1.0d)
            correctPoints.add(new IntTriple(iter, e, i));
        if (iter == 0) {
          exampleMetadata.add(
              String.format(
                  "%d %d %s",
                  beam.size(),
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.