cerebras.modelzoo.data_preparation.nlp.extractive_summarisation_utils.BertInputFeatures#
- class cerebras.modelzoo.data_preparation.nlp.extractive_summarisation_utils.BertInputFeatures#
Bases:
tuple
BertInputFeatures(input_token_ids, labels, segment_ids, cls_ids)
Create new instance of BertInputFeatures(input_token_ids, labels, segment_ids, cls_ids)
Methods
Return number of occurrences of value.
Return first index of value.
Attributes
Alias for field number 3
Alias for field number 0
Alias for field number 1
Alias for field number 2
- __add__(value, /)#
Return self+value.
- __mul__(value, /)#
Return self*value.
- static __new__(_cls, input_token_ids, labels, segment_ids, cls_ids)#
Create new instance of BertInputFeatures(input_token_ids, labels, segment_ids, cls_ids)
- cls_ids#
Alias for field number 3
- 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.
- input_token_ids#
Alias for field number 0
- labels#
Alias for field number 1
- segment_ids#
Alias for field number 2