Skip to content
Permalink
Browse files

Step 3: Probable Issue

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

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

double probability(); // e.g. 0.7836
}
@@ -2,5 +2,5 @@

interface IssueDetector {
// e.g. text: "You migth know it.", probabilityThreshold: 0.75
List<Issue> detect(String text, double probabilityThreshold);
List<ProbableIssue> detect(String text, double probabilityThreshold);
}
@@ -0,0 +1,3 @@
interface ProbableIssue extends Issue {
double probability(); // e.g. 0.7836
}

0 comments on commit fbd02ec

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