biobert icon indicating copy to clipboard operation
biobert copied to clipboard

Running relation extraction on custom text

Open mathuryash5 opened this issue 4 years ago • 2 comments

How do I run relation extraction on raw sentences?

mathuryash5 avatar May 23 '20 16:05 mathuryash5

@mathuryash5 The BioBERT performs the relation classification task and not relation extraction per se. The result, in a sentence level, assumes that a sentence co-occurrence of two entities signals a positive relation. To perform that on your raw sentences you need to recreate the input, meaning that you need a test.tsv file with index, sentence, and a label between values [0,1]. You will also need train.tsv, dev.tsv.

AndreasSaka avatar May 28 '20 09:05 AndreasSaka

@AndreasSaka, for raw sentences to run the BioBert RE task, can you explain why do we still need a label between values [0,1]? Can we depend on the pretrained BioBert model to run the RE task for raw sentences which have only index and sentence, but no label [0,1] specified?

ghost avatar Nov 30 '20 06:11 ghost