cerebras.modelzoo.data_preparation.nlp.write_csv_ner.InputFeatures#

class cerebras.modelzoo.data_preparation.nlp.write_csv_ner.InputFeatures#

Bases: tuple

InputFeatures(tokens, labels)

Create new instance of InputFeatures(tokens, labels)

Methods

count

Return number of occurrences of value.

index

Return first index of value.

Attributes

labels

Alias for field number 1

tokens

Alias for field number 0

__add__(value, /)#

Return self+value.

__mul__(value, /)#

Return self*value.

static __new__(_cls, tokens, labels)#

Create new instance of InputFeatures(tokens, labels)

count(value, /)#

Return number of occurrences of value.

index(value, start=0, stop=9223372036854775807, /)#

Return first index of value.

Raises ValueError if the value is not present.

labels#

Alias for field number 1

tokens#

Alias for field number 0