biobert
biobert copied to clipboard
Running relation extraction on custom text
How do I run relation extraction on raw sentences?
@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, 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?