GithubHelp home page GithubHelp logo

date-translation's Introduction

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.

date-translation's People

Contributors

mike-a-yen avatar

Watchers

James Cloos 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.