Skip to content

mike-a-yen/date-translation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

Date Translation

Open In Colab

Sequence2Sequence model to translate date strings into the standard date format.

Dec 10, 1865 --> 1865-12-10
December 25, 1991 --> 1991-12-25
Saturday June 10 1741 --> 1741-06-10

This is for educational purposes to learn about seq2seq models and attention mechanisms.

Helpful Resources

  1. Helpful primer with cool visuals
  2. Bahdanau et al.
  3. Luong et al.
  4. Conceptual implementation guide. ML Mastery
  5. Vaswani et al.

A good Seq2Seq tutorial can be found here.

Installation

  1. Install conda.
  2. Create and activate conda env
conda create -n date python=3.7
conda activate date
  1. Install python packages.
pip install -r requirements.txt

Run

  1. Activate the conda env.
conda activate date
  1. Start your jupyter notebook.
jupyter notebook
  1. Generate the dataset by running notebook 00_generate_data.ipynb.
  2. Complete the Seq2Seq w/ attention code in 01_FITB_seq2seq.ipynb. A solution is found in 01_seq2seq.ipynb.
  3. Classify written dates w/ a transformer architecture. 02_transformers.ipynb.

Notes:

  • Feel free to experiment with changing how the data is generated. You can widen or narrow the date range, or come up with different ways to represent dates as strings.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published