cerebras.modelzoo.data_preparation.nlp.bert.ner_data_processor.InputExample#

class cerebras.modelzoo.data_preparation.nlp.bert.ner_data_processor.InputExample[source]#

Bases: object

A single training/test example for simple sequence classification.

Constructs a InputExample.

Parameters
  • guid – Unique id for the example.

  • text_a – string. The untokenized text of the first sequence. For single sequence tasks, only this sequence must be specified.

  • label – (Optional) string. The label of the example. This should be specified for train and dev examples, but not for test examples.

Methods

__init__(guid, text, label=None)[source]#

Constructs a InputExample.

Parameters
  • guid – Unique id for the example.

  • text_a – string. The untokenized text of the first sequence. For single sequence tasks, only this sequence must be specified.

  • label – (Optional) string. The label of the example. This should be specified for train and dev examples, but not for test examples.