TransformerBaseRelative

class opennmt.models.TransformerBaseRelative(*args, **kwargs)[source]

Defines a base Transformer model using relative position representations as described in https://arxiv.org/abs/1803.02155.

Inherits from: opennmt.models.Transformer