return nif20(nifContext, nifMention);
}
public Model createMention(String mention, int beginIndex, int endIndex, String referenceContext) {
Optional<NIFContext> nifContext = buildContext(prefix, beginIndex, endIndex);
Optional<NIFMention> nifMention = new NIFMention.NIFMentionBuilder().init().mention(mention)
<BUG>.beginIndex(beginIndex).endIndex(endIndex).build();
return getModel(nifContext, nifMention);</BUG>
}
public Model createMentionWithType(String entityType, String mention, int beginIndex,
int endIndex, String referenceContext) {

return nif20(nifContext, nifMention);
} else if (isNIF21()) {
return nif21(nifContext, nifMention);
}
return nif20(nifContext, nifMention);
}
public Model createMention(String mention, int beginIndex, int endIndex, String referenceContext) {
Optional<NIFContext> nifContext = buildContext(prefix, beginIndex, endIndex);
Optional<NIFMention> nifMention = new NIFMention.NIFMentionBuilder().init().mention(mention)
.beginIndex(beginIndex).endIndex(endIndex).referenceContext(referenceContext).build();
return getModel(nifContext, nifMention);
}
public Model createMentionWithType(String entityType, String mention, int beginIndex,
int endIndex, String referenceContext) {
