Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.12.0
-
None
Description
The ContentItemMentionBuilder#registerTextAnnotation(..) currently runs into a NPE in case the parsed LabelTokenizer does not support the language of the in-memory entity index.
This indicates two problems
(1) the registerTextAnnotation(..) should not throw a NPE but instead check if the tokens are NULL
(2) the fact that the LabelTokenizer indicates that the wrong service is injected to the EntityCoMentionEngine. Because the MainLabelTokenizer - that registers itself with a service.ranking=Intever.MAX_VALUE - would not return NULL