R/pubtator_context.R
pubtator_context.RdAdds sentence identifiers and sentence-relative spans to PubTator entity mentions, then carries compact sentence anchors onto relation rows.
pubtator_context(pubtator)A list returned by get_records(endpoint =
"pubtator"), with entities and relations data.tables.
A list with entities, relations, and sentences
data.tables. Entity rows preserve their original start/end
spans and gain sentence_id, sentence_start, and
sentence_end. Relation rows gain role-specific entity labels and
sentence anchors, plus same_sentence and
sentence_distance.