public void renderText(final Appendable out, final KAFDocument document, final Iterable<Term> terms, final Model model) throws IOException { final List<Term> termList = Ordering.from(Term.OFFSET_COMPARATOR).sortedCopy(terms); NafRenderUtils.renderText(out, document, terms, extractMarkables(termList, model, this.colorMap)); }
final Markable[] markableIndex = indexMarkables(termList, markables); final int termLength = endOf(term) - termOffset; final int termBegin = Math.max(termOffset, index); final int termEnd = Math.min(termOffset + termLength, end); emitTermTooltip(out, document, term); out.append("\">"); out.append(term.getForm());
private <T extends Appendable> T renderParsing(final T out, final KAFDocument document, @Nullable final QuadModel model, final int sentence) throws IOException { NafRenderUtils.renderParsing(out, document, sentence, true, true, extractMarkables(document.getTermsBySent(sentence), model, this.colorMap)); return out; }
public void renderParsing(final Appendable out, final KAFDocument document, @Nullable final Model model, final int sentence) throws IOException { NafRenderUtils.renderParsing(out, document, sentence, true, true, extractMarkables(document.getTermsBySent(sentence), model, this.colorMap)); }
private <T extends Appendable> T renderText(final T out, final KAFDocument document, final Iterable<Term> terms, final QuadModel model) throws IOException { final List<Term> termList = Ordering.from(Term.OFFSET_COMPARATOR).sortedCopy(terms); NafRenderUtils.renderText(out, document, terms, extractMarkables(termList, model, this.colorMap)); return out; }