Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 1.19 KB

README.md

File metadata and controls

39 lines (31 loc) · 1.19 KB

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