Skip to content

Commit

Permalink
generateTestCaseWithSampledReferenceAlignment in TrackRepository now …
Browse files Browse the repository at this point in the history
…works
  • Loading branch information
sven-h committed Aug 17, 2020
1 parent df9e612 commit db11ee8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public GoldStandardCompleteness getGoldStandardCompleteness() {

@Override
public String toString() {
return "Testcase " + name + " of " + track.toString() + "(src: " + source + " dst: " + target + " ref: " + reference + ")";
return "Testcase " + name + " of " + track.toString() + "(src: " + source + " dst: " + target + " input: " + inputAlignment + " ref: " + reference + ")";
}

//convenient methods for retrieving parsed ontologies
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ private static Set<Track> retriveDefinedTracks(){


public static TestCase generateTestCaseWithSampledReferenceAlignment(TestCase tc, double fraction, Random randomSeed){
Alignment sample = tc.getParsedReferenceAlignment().sampleByFraction(0.5, randomSeed);
Alignment sample = tc.getParsedReferenceAlignment().sampleByFraction(fraction, randomSeed);
try {
File f = File.createTempFile("ref_sample", ".rdf");
sample.serialize(f);
Expand Down

0 comments on commit db11ee8

Please sign in to comment.