Examples of countAlignmentPoints()


Examples of edu.umd.hooka.Alignment.countAlignmentPoints()

    float den = 0.0f;
    while (refi.hasNext()) {
      ReferenceAlignment ref = refi.next();
      Alignment test = testi.next();
      num += (ref.countProbableHits(test) + ref.countSureHits(test));
      den += (test.countAlignmentPoints() + ref.countAlignmentPoints());
    }
    if (testi.hasNext())
      throw new RuntimeException("Mismatch in lengths");
    return num / den;
  }
View Full Code Here

Examples of edu.umd.hooka.Alignment.countAlignmentPoints()

        Alignment a = trainer.viterbiAlign(value, pr);
        a = trainer.computeAlignmentPosteriors(value).alignPosteriorThreshold(0.5f);
        ReferenceAlignment ref = (ReferenceAlignment)value.getAlignment();
        reporter.incrCounter(AlignmentEvalEnum.SURE_HITS, ref.countSureHits(a));
        reporter.incrCounter(AlignmentEvalEnum.PROBABLE_HITS, ref.countProbableHits(a));
        reporter.incrCounter(AlignmentEvalEnum.HYPOTHESIZED_ALIGNMENT_POINTS, a.countAlignmentPoints());
        reporter.incrCounter(AlignmentEvalEnum.REF_ALIGNMENT_POINTS, ref.countSureAlignmentPoints());
      }
      hasCounts = true;
    }
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.