Examples of lookupString()


Examples of org.fnlp.ml.types.alphabet.LabelAlphabet.lookupString()

    String[][] labelsSet = new String[xx.size()][];
    ArrayList<String> res = null;
    for(int j=0;j<xx.size();j++){
      pred = (int[]) xx.getLabel(j);
      float uuu = xx.getScore(j);
      labelsSet [j] = la.lookupString(pred);
      res = FormatCWS.toList(inst, labelsSet [j]);
//      System.out.println(res);
    }

   
View Full Code Here

Examples of org.fnlp.ml.types.alphabet.LabelAlphabet.lookupString()

    float[][] result = new float[2][actionList.size()];
    float total = 0;
    for (int i = 0; i < guess.length; i++) {
      if(guess[i]==null) //bug:可能为空,待修改。 xpqiu
        break;
      String action = actionList.lookupString((Integer)guess[i]);
      result[0][i] = 0;
      if (action.matches("L"))
        result[0][i] = 1;
      else if (action.matches("R"))
        result[0][i] = 2;
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.