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

Illegal Argument Exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • None
    • None
    • Name Finder
    • None

    Description

      I am using this library in some production code. I am getting the following exception once in a while, so I am not being able to reproduce it exactly always. 

       
      java.lang.IllegalArgumentException: The span [18..23) is outside the given text which has length 12!
      at opennlp.tools.util.Span.getCoveredText(Span.java:231)
      at opennlp.tools.util.Span.spansToStrings(Span.java:351)
      at opennlp.tools.tokenize.AbstractTokenizer.tokenize(AbstractTokenizer.java:25)
      at opennlp.tools.tokenize.TokenizerME.tokenize(TokenizerME.java:76)
       
       
      This seems like an internal OpenNLP issue, and not how I'm using the library. Any help would be appreciated. Thanks. 

      Attachments

        Activity

          People

            Unassigned Unassigned
            smrazaabbas Raza Abbas
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: