Giter Site home page Giter Site logo

claudiatang-git / english-hawaiian-pidgin-translator Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 35 KB

Finetuned FLAN-T5 to translate English to Hawaiian Pidgin

Home Page: https://huggingface.co/claudiatang/flan-t5-base-eng-hwp

Jupyter Notebook 100.00%
english flan-t5 hawaii language llm nlp pidgin pidgin-bible t5 t5-base

english-hawaiian-pidgin-translator's Introduction

English to Hawaiian Pidgin Translation | flan-t5-base-eng-hwp

Access the model

  • Model: Hugging Face model page
  • Demo: Hugging Face Space

Introduction

This model is a fine-tuned version of google/flan-t5-base on a English and Hawaiian Pidgin dataset. It achieves the following results on the evaluation set:

  • Loss: 1.5058
  • Bleu: 4.9532
  • Gen Len: 18.8709

Model description

Running the model

The google/flan-t5-base documentation has more details on running the model.

However, to use this model to translate English to Hawaiian Pidgin, enter "translate English to Hawaiian Pidgin: " before your statement.

For example, if you would like to translate "I went to Ala Moana today to go shopping" please tokenize all of the following: "translate English to Hawaiian Pidgin: I went to Ala Moana today to go shopping."

If you are trying the English-Hawaiian Pidgin Translator space, there is no need for the input prefix, as it is automatically added.

Training and evaluation data

There are not many English-Hawaiian Pidgin parallel corpora that are easily accessible. A parallel dataset, similar to bible_para, was compiled by scraping the Hawaiʻi Pidgin Version (HWP) and the King James Version (KJV) from biblegateway.com. For more information, refer to get_data.ipynb.

Intended uses & limitations

Due to a limited set of training and evaluation data, this model has many limitations, such as not knowing certain Hawaiian Pidgin phrases or having trouble with longer sentences.

Training procedure

For more information regarding training, refer to finetune_FLAN_T5.ipynb.

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 0.0003
  • train_batch_size: 16
  • eval_batch_size: 16
  • seed: 42
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • lr_scheduler_type: linear
  • num_epochs: 12

Training results

Training Loss Epoch Step Validation Loss Bleu Gen Len
No log 1.0 420 1.6158 3.6321 18.892
2.1318 2.0 840 1.4711 4.19 18.8743
1.5146 3.0 1260 1.4193 4.3921 18.8608
1.2936 4.0 1680 1.3936 4.5268 18.8363
1.1403 5.0 2100 1.4030 4.6813 18.8608
1.0284 6.0 2520 1.4078 4.8234 18.8684
1.0284 7.0 2940 1.4192 4.8126 18.8709
0.9196 8.0 3360 1.4303 4.8599 18.87
0.8459 9.0 3780 1.4506 4.7802 18.8599
0.7884 10.0 4200 1.4757 4.8895 18.8785
0.739 11.0 4620 1.4945 4.9126 18.8759
0.7083 12.0 5040 1.5058 4.9532 18.8709

Framework versions

  • Transformers 4.34.1
  • Pytorch 2.1.0+cu118
  • Datasets 2.14.6
  • Tokenizers 0.14.1

Resources

english-hawaiian-pidgin-translator's People

Contributors

claudiatang-git avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.