modelzoo.transformers.data_processing.bert.mlm_only_processor.MLMOnlyInstance#

class modelzoo.transformers.data_processing.bert.mlm_only_processor.MLMOnlyInstance[source]#

Bases: object

A single training MLMOnly instance. :param list tokens: List of tokens for MLM example :param list masked_lm_positions: List of masked lm positions for sentence pair :param list masked_lm_labels: List of masked lm labels for example

Methods

__init__(tokens, masked_lm_positions, masked_lm_labels)[source]#