morpheus.utils.cudf_subword_helper.Feature
- class Feature(input_ids, input_mask, segment_ids)[source]
Bases:
tuple
- Attributes
- input_ids
- input_mask
- segment_ids
Alias for field number 0
Alias for field number 1
Alias for field number 2
Methods
count
(value, /)Return number of occurrences of value.
index
(value[, start, stop])Return first index of value.
- count(value, /)
Return number of occurrences of value.
- index(value, start=0, stop=sys.maxsize, /)
Return first index of value.
Raises ValueError if the value is not present.
- input_ids
Alias for field number 0
- input_mask
Alias for field number 1
- segment_ids
Alias for field number 2