Skip to content

MLlab4CS/MurilCRFBangla

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MurilCRFBangla

Install Packages

  pip3 install flair
  pip3 install seqeval

Datasets

Please donwload the Bangla dataset from this Link and save in the data directory

Run the following code to train the model

    !python3 train.py --dataset_path data/ \
--data_train train.txt\
--data_test test.txt\
--data_dev dev.txt\
--output_dir model \
--model_name_or_path google/muril-large-cased \
--layers -1\
--subtoken_pooling first_last\
--hidden_size 256\
--learning_rate 5e-5\
--num_epochs 30 \
--use_crf True

Inference

Run the following scrpit to test the best model

  python3 evaluate.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages