BERT-Relation-Extraction
BERT-Relation-Extraction copied to clipboard
PyTorch implementation for "Matching the Blanks: Distributional Similarity for Relation Learning" paper
I want to run only the "Fine-tuning on SemEval2010 Task 8" section (main_task.py file). However, I get the following error: FileNotFoundError: [Errno 2] No such file or directory: './data/BERT_tokenizer.pkl' Can...
HI, I have problem when infering from code ``` from src.tasks.infer import infer_from_trained inferer = infer_from_trained(args, detect_entities=False) test = "The surprise [E1]visit[/E1] caused a [E2]frenzy[/E2] on the already chaotic trading...
HI, Thank you for your code and for adding BioBert. Tried to use your code with SciBert. For this, I created a code 3 to specify the model type in...
Hi, Thanks for providing the biobert code. To use BioBERT(biobert_v1.1_pubmed), download & unzip the [contents](https://drive.google.com/file/d/1zKTBqqrCGlclb3zgBGGpq_70Fx-qFpiU/view?usp=sharing) to ./additional_models folder. However, this link is not useful now. Where could I get the...
After training on my own data and then going to infer, if I type in one of the example sentences given, the expected result comes back. When I enter a...
I take `num-classes` to be the distinct number of relation classes which can be annotated against and predicted. With this statement, I struggle with the two following points: 1) If...
Hi Thanks for the brilliant implementation. Do you or anyone from the community have trained the model and can give access for downloading for everyone usage? I don't want to...
Create the parent folder if not exists, currently the code fails if the `data` folder is missing
Hey plkmo, I was wondering if the main_task.py could be used to train on a completely new set of relationships different from the semeval dataset. Could you please let me...
Hi. Thank you for the implementation. It is great to learn from your code. I have observed a weird thing wrt FewRel. The answer in the training set is always...