Package edu.stanford.nlp.util

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


   *
   */
  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

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

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.