EngTexToASLGloss / README.md
Rachel Rakov
Added README, updated instructions
681eeb9
|
raw
history blame
1.86 kB
metadata
title: EngTexToASLGloss
emoji: 📊
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: 3.40.1
app_file: eng_to_aslGloss_app.py
pinned: false

How to use English to ASL Gloss

Introduction

This is a program that uses GPT4 to translate English text to ASL gloss. This program makes use of prompt engineering to first describe the task it wants GPT4 to complete (along with examples of translations of English text and it's ASL gloss translations), and then providing GPT4 with the English text to translate to ASL_gloss.

These prompts are included as part of the package.

Requirements

This program makes use of the following packages:

  • Python 10 environment (required for tiktoken and openAI)
  • openAI
  • tiktoken
  • openAI key and access to GPT4

Limitations

  • Token length

    • GPT4 has a token limit, and our prompting uses a lot of the allocated tokens. As a result, your text must be shorter than 553 tokens. If your text is longer than that, program will not translate your text. (The program will calculate tokens for you, so you don't need to worry about doing that conversion)
      • If/when this limit changes, we will update the program to better handle longer texts
  • Speed and Cost

    • Be aware that each time we run this code, it re-prompts GPT4 (since we can't save our models). As a result, it takes a little time and it costs a little bit of money. But it's not too bad.
  • Imperfect ASL gloss

    • Although this does a pretty good job, it's not perfect ASL gloss
    • Some things you should watch for include:
      • word order
      • fingerspelling
      • formatting rules <>
    • As we continue to improve the prompting, we will update with any new prompts that we create that improve the ASL gloss output.

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference