Allow a command line flag to change the direction in which sentences are read to backwards/right-to-left. This flag should apply to both training and scoring.
Currently TheanoLM only operates in left-to-right mode. For certain tasks, e.g. rescoring, it is preferable to score sentences separately in both directions and then combine the scores.
Allow a command line flag to change the direction in which sentences are read to backwards/right-to-left. This flag should apply to both training and scoring.
Currently TheanoLM only operates in left-to-right mode. For certain tasks, e.g. rescoring, it is preferable to score sentences separately in both directions and then combine the scores.