ClassInputter

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

Reading class from a text file.

Inherits from: opennmt.inputters.TextInputter

make_features(element=None, features=None, training=None)[source]

Tokenizes raw text.

input_signature()[source]

Returns the input signature of this inputter.