A collection of TensorFlow examples.
-
karpathy.py follows the tutorial about RNN in TensorFlow:
-
translation.py follows the tutorial about transformer based translation in TensorFlow:
https://www.tensorflow.org/text/tutorials/transformer
To switch between training and inference, comment/uncomment the last two lines.
-
gf-parser.py is a modified version of translation.py which translates English to GF Abstract Trees. It uses the GF WordNet corpus for training.