Examples of SourceData


Examples of net.sourceforge.align.model.translation.SourceData

    for (Integer targetWid : targetWidList) {
      float translationProbability = 0.0f;
      if (targetWid != null) {
        for (Integer sourceWid : sourceWidList) {
          if (sourceWid != null) {
            SourceData sourceData = translationModel.get(sourceWid);
            translationProbability +=
              sourceData.getTranslationProbability(targetWid);
          }
        }
      }
      translationProbability = Math.max(translationProbability,
          MINIMUM_TRANSLATION_PROBABILITY);
View Full Code Here

Examples of org.gedcom4j.model.SourceData

    /**
     * Test when source has some bad values
     */
    public void testBadSource2() {
        Source src = new Source("@Test@");
        src.data = new SourceData();
        EventRecorded e = new EventRecorded();
        e.datePeriod = new StringWithCustomTags("anytime");
        src.data.eventsRecorded.add(e);
        AbstractValidator av = new SourceValidator(rootValidator, src);
        av.validate();
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.