opennmt.data.WordDropout

class opennmt.data.WordDropout(dropout)[source]

Randomly drops words in a sequence.

Inherits from: opennmt.data.Noise

__init__(dropout)[source]

Initializes the noise module.

Parameters

dropout – The probability to drop word.