Sutskever et al. (2014) found that reversing the source sentence makes learning easier, because the first words of the input end up close to the first words of the output. Only the input is reversed; the target is left alone.
Implement reverse_source(tokens), which returns the tokens in reverse order as a new list.
Slice with a step of -1, after converting to a list.
No results yet
Run your code to check it against the examples, or submit to run every test.