(data_type, corpus_file, side)
Args:
        data_type (str): type of the source input.
            Options are [text|img|audio].
        corpus_file (str): file path to get the features.
        side (str): for source or for target.

    Returns:
        number of features on `side`.
Args:
        data_type (str): type of the source input.
            Options are [text|img|audio].
        corpus_file (str): file path to get the features.
        side (str): for source or for target.
Args : data_type ( str ) : type of the source input . Options are [ text|img|audio ] . corpus_file ( str ) : file path to get the features . side ( str ) : for source or for target .
def get_num_features(data_type, corpus_file, side):
    """
    Args:
        data_type (str): type of the source input.
            Options are [text|img|audio].
        corpus_file (str): file path to get the features.
        side (str): for source or for target.

    Returns:
        number of features on `side`.
    """
    assert side in ["src", "tgt"]

    if data_type == 'text':
        return TextDataset.get_num_features(corpus_file, side)
    elif data_type == 'img':
        return ImageDataset.get_num_features(corpus_file, side)
    elif data_type == 'audio':
        return AudioDataset.get_num_features(corpus_file, side)
    else:
        raise ValueError("Data type not implemented")
def get_num_features ( data_type , corpus_file , side ) : assert side in [ "src" , "tgt" ] if data_type == 'text' : return TextDataset . get_num_features ( corpus_file , side ) elif data_type == 'img' : return ImageDataset . get_num_features ( corpus_file , side ) elif data_type == 'audio' : return AudioDataset . get_num_features ( corpus_file , side ) else : raise ValueError ( "Data type not implemented" )