mirkagem/NLP-project---Cutie-Mark-Crusaders

Named Entity Recognition

Python

0

73 commits

updated May 20, 2026

See the code

README

NLP-project---Cutie-Mark-Crusaders

Named Entity Recognition in poems

Setup

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

Run experiments

Annotation and creation of dataset

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

RoBERTa

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

SpaCy

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

mirkagem/NLP-project---Cutie-Mark-Crusaders

Named Entity Recognition

Python

0

73 commits

updated May 20, 2026

See the code

README

NLP-project---Cutie-Mark-Crusaders

Named Entity Recognition in poems

Setup

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

Run experiments

Annotation and creation of dataset

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

RoBERTa

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

SpaCy

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