Implementation of Language to Number Translation Tasks based on NALU [source].
To install poetry follow https://python-poetry.org/docs/#installation
To initialize the environment
poetry config virtualenvs.in-project true
poetry installTo reproduce the article data, and recreate data encoder and tokenizer.
poetry run python parser/create_dataset.pyparser/numbers_model.py includes the model class and the custom NALU layer.
To train the model, while keeping track of the best model.
poetry run python parser/train_model.pyparser/simple_predict.py includes an example of prediction per single text input.