@@ -0,0 +1,498 @@
+%0A%0Adef mask_sequences(list_of_seq):%0A    '''%0A    %0A    Make mask for sequences.%0A    Very useful especially for recurrent neural netowrks.%0A    %0A    Parameters%0A    ----------%0A    list_of_seq: list of numpy.ndarray%0A        List of numpy array%0A%0A    Returns%0A    -------%0A    mask: numpy.ndarray%0A        Mask%0A    '''%0A    %0A    lens = %5Blen(seq) for seq in list_of_seq%5D%0A    N, M = len(lens), max(lens)%0A    mask = np.zeros((N, M))%0A    %0A    for i, l in enumerate(lens):%0A        mask%5Bi, :l%5D = 1.%0A    return mask  %0A

Create masking.py