Examples of IntUni


Examples of edu.stanford.nlp.util.IntUni

  /**
   * @return the index of the prior for class c
   */
  protected int indexOf(int c) {
    return featureIndex.indexOf(new IntUni(c));
  }
View Full Code Here

Examples of edu.stanford.nlp.util.IntUni

   *
   */
  protected Index<IntTuple> createIndex() {
    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));
        }
      }
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.