Skip to content
Permalink
Browse files

Step 2: Probability

  • Loading branch information...
tlinkowski committed Jan 31, 2019
1 parent aca1aa1 commit 370642ee1af0cd8bb1f60330738d566312ef07f1
Showing with 4 additions and 2 deletions.
  1. +2 −0 Issue.java
  2. +2 −2 IssueDetector.java
@@ -4,4 +4,6 @@
int endOffset(); // e.g. 9 (end of "migth")

IssueType type(); // e.g. SPELLING

double probability(); // e.g. 0.7836
}
@@ -1,6 +1,6 @@
import java.util.List;

interface IssueDetector {
// e.g. text: "You migth know it."
List<Issue> detect(String text);
// e.g. text: "You migth know it.", probabilityThreshold: 0.75
List<Issue> detect(String text, double probabilityThreshold);
}

0 comments on commit 370642e

Please sign in to comment.
You can’t perform that action at this time.