public Model createMentionWithTypeAndScore(String entityType, String mention, int beginIndex, int endIndex, double score,
String referenceContext) {
Optional<NIFContext> nifContext = buildContext(prefix, beginIndex, endIndex);
Optional<NIFMention> nifMention = new NIFMention.NIFMentionBuilder().init().mention(mention)
.beginIndex(beginIndex).endIndex(endIndex)
<BUG>.type(entityType).score(score).build();
return getModel(nifContext, nifMention);</BUG>
}
public Model createLink(String mention, int beginIndex, int endIndex, String taIdentRef, String referenceContext) {
Optional<NIFContext> nifContext = buildContext(prefix, beginIndex, endIndex);

public Model createMentionWithTypeAndScore(String entityType, String mention, int beginIndex, int endIndex, double score,
String referenceContext) {
Optional<NIFContext> nifContext = buildContext(prefix, beginIndex, endIndex);
Optional<NIFMention> nifMention = new NIFMention.NIFMentionBuilder().init().mention(mention)
.beginIndex(beginIndex).endIndex(endIndex)
.type(entityType).score(score).referenceContext(referenceContext).build();
return getModel(nifContext, nifMention);
}
public Model createLink(String mention, int beginIndex, int endIndex, String taIdentRef, String referenceContext) {
Optional<NIFContext> nifContext = buildContext(prefix, beginIndex, endIndex);
