Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
The SentenceSample should validate if the provided Spans to mark sentence boundaries are within bounds of the provided document text. If the spans are outside of the document text an IllegalArgumentException should be thrown to make the code fail fast. Otherwise code which processes the SentenceSamples will fail later and make it slightly harder to find the actual bug.
Attachments
Issue Links
- links to