KD-DocRE icon indicating copy to clipboard operation
KD-DocRE copied to clipboard

Sample code to run inference on any text

Open AlexisNvn opened this issue 2 years ago • 1 comments

Good evening, Would you have any advices/indications on how to create a simple script that compute the model outputs given any text in Re-DocRED format ?

Thanks & keep going with the great work ! Alexis

AlexisNvn avatar Oct 11 '22 16:10 AlexisNvn

Hi @AlexisNvn, thank you for your interest in our work! Unfortunately, our model cannot be used to directly infer on any raw text. This is because our model is only classifying the relations. We need an additional NER model to extract the entity mentions and group them together (coreference resolution). I can try look for some NER and entity linking model and see if we can achieve that function.

tonytan48 avatar Nov 10 '22 02:11 tonytan48