Named Entity Recognition in poems
Install all needed package dependencies and download the base spaCy model using the commands:
pip install -r requirements.txt
python -m spacy download xx_ent_wiki_sm
Install Docker Then launch an Argilla instance using Docker and ingest a target poem file:
docker run -d --name argilla -p 6900:6900 argilla/argilla-quickstart:latest
python start_argilla.py
After interactive text labeling at http://localhost:6900, export the finalized JSON data:
python get_annotations.py
When all language files are ready, combine them:
python combining_data.py
To evaluate zero-shot performance directly on the target dataset without training:
python Roberta_out_of_box_performance.py
To finetune on some part of the data and test on the rest:
python finetuning_Roberta5.py
To both evaluate zero-shot performance directly on the target dataset without training and finetuning on some part of the data and test on the rest:
python spacy_test_and_training.py
Named Entity Recognition in poems
Install all needed package dependencies and download the base spaCy model using the commands:
pip install -r requirements.txt
python -m spacy download xx_ent_wiki_sm
Install Docker Then launch an Argilla instance using Docker and ingest a target poem file:
docker run -d --name argilla -p 6900:6900 argilla/argilla-quickstart:latest
python start_argilla.py
After interactive text labeling at http://localhost:6900, export the finalized JSON data:
python get_annotations.py
When all language files are ready, combine them:
python combining_data.py
To evaluate zero-shot performance directly on the target dataset without training:
python Roberta_out_of_box_performance.py
To finetune on some part of the data and test on the rest:
python finetuning_Roberta5.py
To both evaluate zero-shot performance directly on the target dataset without training and finetuning on some part of the data and test on the rest:
python spacy_test_and_training.py