Uploaded image for project: 'OpenNLP'
  1. OpenNLP
  2. OPENNLP-1076

SentenceSample should validate if spans are inside the text

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.8.1
    • Sentence Detector
    • 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

          Activity

            People

              joern Jörn Kottmann
              joern Jörn Kottmann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: