Skip to content

sallyy1/KoPET

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ea60911 · Mar 28, 2023

History

7 Commits
Dec 7, 2022
Dec 7, 2022
Dec 7, 2022
Dec 7, 2022
Dec 7, 2022
Mar 28, 2023
Dec 7, 2022
Dec 7, 2022
Dec 7, 2022
Dec 7, 2022
Dec 7, 2022
Dec 7, 2022
Dec 7, 2022
Dec 7, 2022
Dec 7, 2022
Dec 7, 2022
Dec 7, 2022

Repository files navigation

PET

Pattern Exploiting Training

1. 라이브러리 설치

-f https://download.pytorch.org/whl/torch_stable.html
numpy==1.19
jsonpickle==1.1
scikit-learn==0.23.1
torch===1.5.0
torchvision==0.6.0
transformers==3.0.2
tqdm==4.48.1

# 추가 설치
jsonpickle
jsonlines
sentencepiece

2. Unlabeled dataset Annotation

python cli.py --method ipet --pattern_ids 0 1 --data_dir cssharing_new --model_type korea_bert --model_name_or_path klue/bert-base --task_name cssharing-sentiment --output_dir CSsharing_Output_new --do_train --wrapper_type mlm --pet_repetitions 2 --ipet_generations 2

About

Pattern Exploiting Training

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published