lvapeab / nmt-keras

Neural Machine Translation with Keras
http://nmt-keras.readthedocs.io
MIT License
533 stars 130 forks source link

Escaping special characters when sampling #82

Closed qazs closed 6 years ago

qazs commented 6 years ago

Hi, is it possible to escape special characters when sampling? For example when sampling this sentence: This is a {{bag}}. result should be: Esto es una {{bolsa}}. It should keep '{{' and '}}'

lvapeab commented 6 years ago

Hi,

this is not currently supported. However, you can possibly do it in a pre/post processing stage.