This code shows how to perform sequence-to-sequence prediction using the Layers API of TensorFlow.js.
It demonstrates loading a pretrained model hosted at a URL, using
tf.loadLayersModel()
The training data was 149,861 English-French sentence pairs available from http://www.manythings.org/anki.
The model was trained in Node.js with Tensorflow.js, which the model code is converted from Python to TypeScript by @huan based on the translation.py example.
To launch the application, do
yarn
yarn watch
in the translation folder destination
I have learnt alot from the tensorflowjs examples and have followed their guide to produce this code.