Package org.fnlp.ml.types.alphabet

Examples of org.fnlp.ml.types.alphabet.IFeatureAlphabet.lookupIndex()


      } else {
        e2 = null;
        key2 = nIndex;
      }
     
      int ofs = features.lookupIndex(v1, key2-key1);
      e1 = e2;
      System.out.print(key1);
      System.out.print('\t');
      System.out.print(ofs);
      System.out.print('\t');
View Full Code Here


        maxe[iii]=1;
      }
      float maxen = MyArrays.entropy(maxe);
      if (i==0||vars[i]>varsthresh&&entropy[i]<maxen*0.999) {
        String str = index.get(base);
        int id = newfeat.lookupIndex(str, interv);
        for (int j = 0; j < interv; j++) {
          ww.insert(id + j, weights[base + j]);
        }
      }else{
//                System.out.print("."); 
View Full Code Here

        }
      }
      int interv = end - base;
      if (!del) {
        String str = index.get(base);
        int id = nfeatures.lookupIndex(str, interv);
        for (int l = 0; l < posize; l++) {
          for (int j = 0; j < interv; j++) {
            ww[l].insert(id + j, nweights[l][base + j]);
          }
        }
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.