Create an .env file with the following env vars:
DATABASE_URL- PSQL connection string to database with gloss dataOPENAPI_KEY- The API key for making requests to the GPT model from OpenAIGOOGLE_TRANSLATE_CREDENTIALS- The API key for access the Google Translate API
Run the script with the experiments you want to run:
node src/index.js --target=pol --ref=spa --start=01001001 --end=01001005 --experiments=experiment-1,experiment-2 > results.csvShort hand:
node src/index.js -t=pol -r=spa -s=01001001 -e=01001005 -x=experiment-1,experiment-2 > results.csvgoogle-translate- Uses the Google Translate API with glosses from thereflanguage.gpt-standards- Uses GPT-4o-mini with glossing standards in the prompt. No glosses from thereflanguage, examples, or fine tuning are used.