BERT-Relation-Extraction icon indicating copy to clipboard operation
BERT-Relation-Extraction copied to clipboard

Training and prediction on new dataset

Open akshayayadav opened this issue 4 years ago • 3 comments

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 know the changes that I need to make in the code to train and predict on new data?

Thanks

akshayayadav avatar Feb 10 '21 09:02 akshayayadav

@plkmo I am in the same situation. I have my own ontology will spells out a certain set of relation types. Will I have to go back to the main_pretraining.py file and start over again?

demongolem-biz avatar Jun 28 '21 17:06 demongolem-biz

I am trying to do the same thing, but I cannot tailor the code for fine-tuning on a new set.

TahaAslani avatar Aug 09 '21 01:08 TahaAslani

Hi all, if you need to fine-tune on your own dataset other than Semeval, you will have to fork this and modify src/tasks/preprocessing_funcs.py to ingest your own data and reformat it similar to semeval dataset format.

When I have time, I will implement this feature

plkmo avatar Sep 24 '23 07:09 plkmo