Evaluate pre-trained transformer on several biomedical tasks
The detailed instructions on running the train/eval are present in the repository
Example 1 for NER:
BlueBERT_DIR="checkpoints/NCBI_BERT_pubmed_uncased"
DATASET_DIR="../bert_data/BC5CDR/chem/"
OUTPUT_DIR="checkpoints/NCBI_BERT_pubmed_uncased-BC5CDR-chem/"
python -m bluebert.run_bluebert_ner \
--do_prepare=true \
--do_train=true \
--do_eval=true \
--do_predict=true \
--task_name="bc5cdr" \
--vocab_file=$BlueBERT_DIR/vocab.txt \
--bert_config_file=$BlueBERT_DIR/bert_config.json \
--init_checkpoint=$BlueBERT_DIR/bert_model.ckpt \
--num_train_epochs=30.0 \
--do_lower_case=true \
--data_dir=$DATASET_DIR \
--output_dir=$OUTPUT_DIR
See the instructions in this repository
See the instructions in this repository
Checkout subfolders bc5cdr for NER and chemprot for Rel-Ext.
6 commits
Jupyter Notebook
85.4%
Python
14.5%
Evaluate pre-trained transformer on several biomedical tasks
The detailed instructions on running the train/eval are present in the repository
Example 1 for NER:
BlueBERT_DIR="checkpoints/NCBI_BERT_pubmed_uncased"
DATASET_DIR="../bert_data/BC5CDR/chem/"
OUTPUT_DIR="checkpoints/NCBI_BERT_pubmed_uncased-BC5CDR-chem/"
python -m bluebert.run_bluebert_ner \
--do_prepare=true \
--do_train=true \
--do_eval=true \
--do_predict=true \
--task_name="bc5cdr" \
--vocab_file=$BlueBERT_DIR/vocab.txt \
--bert_config_file=$BlueBERT_DIR/bert_config.json \
--init_checkpoint=$BlueBERT_DIR/bert_model.ckpt \
--num_train_epochs=30.0 \
--do_lower_case=true \
--data_dir=$DATASET_DIR \
--output_dir=$OUTPUT_DIR
See the instructions in this repository
See the instructions in this repository
Checkout subfolders bc5cdr for NER and chemprot for Rel-Ext.
6 commits
Jupyter Notebook
85.4%
Python
14.5%