You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into an issue where if an empty string is passed in then getting the entityMentions returns null instead of an empty list like I figure out be standard practice.
Example code:
StanfordCoreNLP processor = new StanfordCoreNLP(props);
CoreDocument nlpDocument = new CoreDocument("");
nlpProcessor.annotate(nlpDocument);
List<CoreEntityMention> entities = nlpDocument.entityMentions(); <== returns null
Just wanted to know if there is any light that can be shed on this. If this is expected behavior then I will try my best to document it in the documentation