Commits

Elias Ponvert  committed b2b061c

updated PRLG writing stats

  • Participants
  • Parent commits a670f6d
  • Branches dissertation-work

Comments (0)

Files changed (1)

File java/upparse/model/CombinedProb.java

         for (int w = 0; w < prob[t][nextT].length; w++) {
           final String word = alpha.getString(w);
           final String label = "P(" + tag + " => " + word + " " + nextTag + ")";
-          final double val = prob[t][nextT][w];
+          final double val = prob[t][nextT][w] * backoffHmm.nonLogTrans(t, nextT);
           final RankedRecord<String> rec = new RankedRecord<String>(label, val);
           probRec.add(rec);
         }