Skip to content

The code for TMU-HIT system submitted to MLSP Shared Task at BEA 2024

Notifications You must be signed in to change notification settings

tmu-nlp/GPT4MLSP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The code for TMU-HIT system submitted to MLSP Shared Task at BEA 2024

How to use

Environment

  • Python version: 3.8.5

Install libraries

pip install -r requirements.txt

LCP

Please set OpenAI API Key here.

cd experiments/lcp
bash run.sh [target language (e.x. english, japanese, etc.)] [path to tsv file] [split of the tsv file (i.e. test or trial)] [number of shots (e.x. 0, 3, etc.)]

The predictions will be saved under predictions/lcp/[target language].

LS

Substitute Generation

Please set OpenAI API Key here.

cd experiments/ls
bash ls_generate.sh

For Japanese, Please set OpenAI API Key here.

cd experiments/ls
bash ls_generate_ja.sh

Substitute Ranking

Please set OpenAI API Key here.

cd experiments/ls
bash ls_rank_gpt4.sh

About

The code for TMU-HIT system submitted to MLSP Shared Task at BEA 2024

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published