A small project to learn more about transformers using it to translate from spanish to portuguese. The structure described in the paper Attention is all you need, https://arxiv.org/abs/1706.03762, is the one used.
These instructions will get you a copy of the project up and running on your local machine.
You need to have a machine with Python > 3.9.
$ python3.9 -V
Python 3.9.1You can install anaconda using https://docs.anaconda.com/anaconda/install/windows/. Once set up, run the powershell, and move to the directory with the copy of the repository. Finally open the local server with:
$ jupyter notebookTo see examples of the trained model, one can simply run the Test.ipynb and everything is set up to run 10 random examples, or write a file with 100 examples. Some can be found in the examples-results.txt