Package edu.stanford.nlp.util

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


    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

TOP

Related Classes of edu.stanford.nlp.util.IntTriple

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.