Skip to content

Commit

Permalink
gs-cv: OCRPlasty: corrected a bug that prevented increment of the err…
Browse files Browse the repository at this point in the history
…or margin in case of failure
  • Loading branch information
plassalas committed Oct 12, 2017
1 parent 6d419c2 commit 1b331be
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ public static void main(String[] args) {
labels.add("had I expresset th agny I frequently feltu he wouald have ben taufht to lng fr its alevation");
labels.add("had I # tly feltu he wouald have ben taufht to lng fr iets alevation");
labels.add("fger gezrgze ertg");
// labels.add("");

// System.out.println(similarity(labels));
System.out.println("----");
Expand All @@ -42,8 +41,8 @@ public static List<String> getRansacInliers(List<String> labels) {
double maxLevenshtein = getMaxLevenshtein(trimmed);

Map<Integer, String> bestFit = new HashMap<>();
int t = 1;
for (int i = 1, maxAttempts = 10; bestFit.size() <= 3 && i <= maxAttempts; ++i) {
int t = 1;
// Ransac<String> ransac = new Ransac<>(trimmed, getModelProviderMaxLcs(maxLength), 3, 50 * i, t, trimmed.size() / 2);
// Ransac<String> ransac = new Ransac<>(trimmed, getModelProviderSimilarity(maxSimilarity), 3, 50 * i, t, trimmed.size() / 2);
Ransac<String> ransac = new Ransac<>(trimmed, getModelProviderLevenshtein(maxLevenshtein), 3, 50 * i, t, trimmed.size() / 2);
Expand Down

0 comments on commit 1b331be

Please sign in to comment.