Rupert Westenthaler created STANBOL-821:
-------------------------------------------

             Summary: EntitylinkingEngine encounters 
java.lang.IllegalArgumentException: parsed span MUST be > 0!
                 Key: STANBOL-821
                 URL: https://issues.apache.org/jira/browse/STANBOL-821
             Project: Stanbol
          Issue Type: Bug
          Components: Enhancer
            Reporter: Rupert Westenthaler
            Assignee: Rupert Westenthaler


When processing the German text 

"Die großen Ratingagenturen wie die US-Riesen Moody’s, Fitch und Standard & 
Poor’s bewerten die Kreditwürdigkeit von Unternehmen und Staaten."

the EntityLinkingEngine (EntityLinker) throws an exception because the selected 
Span has an negative token count.

The stacktrace:

Caused by: java.lang.IllegalArgumentException: parsed span MUST be > 0!
        at 
org.apache.stanbol.enhancer.engines.entitylinking.impl.LabelMatch.<init>(LabelMatch.java:49)
        at 
org.apache.stanbol.enhancer.engines.entitylinking.impl.EntityLinker.matchLabel(EntityLinker.java:646)
        at 
org.apache.stanbol.enhancer.engines.entitylinking.impl.EntityLinker.matchLabels(EntityLinker.java:418)
[...]

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to