Skip to content

Madhu000/ie-dd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Install Packages

pip3 install flair
pip3 install seqeval
pip3 install sentence-transformers

Dataset

You can download the dataset from the ``link"

Partitioned Data Creation

Run the following script to generate the partition data.

python3 partition.py

Training

Run the following script to train the model.

python3 train.py --dataset_path data\
--data_train train.txt\
--data_test test.txt\
--data_dev valid.txt\
--output_dir model\
--model_name_or_path allenai/scibert_scivocab_cased\
--layers -1\
--subtoken_pooling first_last\
--hidden_size 256\
--learning_rate 5e-05\
--use_crf True

Inferencing

Run the following script to test the best model.

python3 test.py --dataset_path data \
--data_train train.txt\
--data_test test.txt\
--data_dev valid.txt\
--load_trainedm_dir model/best-model.pt\
--pred_txt_fl prediction.txt\
--label_dict dict_nw.pkl\
--result_file result.txt\
--model_name_or_path allenai/scibert_scivocab_cased

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages