Skip to content

Commit

Permalink
printing more info under help for compat alg.
Browse files Browse the repository at this point in the history
  • Loading branch information
hangal committed Oct 26, 2017
1 parent 27001b6 commit d53ede3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/in/edu/ashoka/surf/CompatibleNameAlgorithm.java
Expand Up @@ -198,6 +198,10 @@ public List<Collection<Row>> run() {
return classes;
}

public String toString() {
return "Compatible names algorithm with min. token overlap: " + minTokenOverlap + " ignore token frequency: " + ignoreTokenFrequency + ", " + ignoredTokens.size() + " ignored tokens (" + Util.join (ignoredTokens, " ") + ")";
}

public static void main (String args[]) {
/*
CompatibleNameAlgorithm alg = new CompatibleNameAlgorithm();
Expand Down
2 changes: 1 addition & 1 deletion src/in/edu/ashoka/surf/EditDistanceMergeAlgorithm.java
Expand Up @@ -74,5 +74,5 @@ public List<Collection<Row>> run() {
return classes;
}

public String toString() { return "Edit distance " + editDistance; }
public String toString() { return "Edit distance algorithm with maximum edit distance" + editDistance; }
}

0 comments on commit d53ede3

Please sign in to comment.