band/seqeval/callbacks.py
def convert_idx_to_name(self, y, array_indexes):
        """Convert label index to name.

        Args:
            y (np.ndarray): label index 2d array.
            array_indexes (list): list of valid index arrays for each row.

        Returns:
            y: label name list.
        """
        y = [[self.id2label[idx] for idx in row[row_indexes]] for
             row, row_indexes in zip(y, array_indexes)]
        return y
Convert label index to name.

        Args:
            y (np.ndarray): label index 2d array.
            array_indexes (list): list of valid index arrays for each row.

        Returns:
            y: label name list.
        
Convert label index to name.
Convert label index to name .
def convert_idx_to_name(self, y, array_indexes):
        y = [[self.id2label[idx] for idx in row[row_indexes]] for
             row, row_indexes in zip(y, array_indexes)]
        return y
def convert_idx_to_name ( self , y , array_indexes ) : y = [ [ self . id2label [ idx ] for idx in row [ row_indexes ] ] for row , row_indexes in zip ( y , array_indexes ) ] return y
Convert label index to name.
Convert label index to name .
"""Convert label index to name.

        Args:
            y (np.ndarray): label index 2d array.
            array_indexes (list): list of valid index arrays for each row.

        Returns:
            y: label name list.
        """
label name list.
label name list .
y
self
y
label index 2d array.
label index 2d array .
array_indexes
list of valid index arrays for each row.
list of valid index arrays for each row .