f92383c46af638e91492356f9c6c3d3bc1045c28,skll/data.py,,_classes_for_gen_func,#Any#Any#Any#,57

Before Change


    generator (and whether or not the examples have labels).
    """
    return np.array([class_name for _, class_name, _ in
                     example_gen_func(path, has_labels=has_labels, quiet=True)])


def _features_for_gen_func(example_gen_func, path, has_labels, sparse, quiet):

After Change


    Little helper function to return an array of classes for a given example
    generator (and whether or not the examples have labels).
    """
    if example_gen_func == _tsv_dict_iter:
        gen_results = example_gen_func(path, quiet=True, tsv_label=tsv_label)
    else:
        gen_results = example_gen_func(path, quiet=True)
    return np.array([class_name for _, class_name, _ in gen_results])


def _features_for_gen_func(example_gen_func, path, quiet, sparse, tsv_label):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: EducationalTestingService/skll
Commit Name: f92383c46af638e91492356f9c6c3d3bc1045c28
Time: 2013-08-13
Author: dblanchard@ets.org
File Name: skll/data.py
Class Name:
Method Name: _classes_for_gen_func


Project Name: EducationalTestingService/skll
Commit Name: f92383c46af638e91492356f9c6c3d3bc1045c28
Time: 2013-08-13
Author: dblanchard@ets.org
File Name: skll/data.py
Class Name:
Method Name: _classes_for_gen_func


Project Name: EducationalTestingService/skll
Commit Name: f92383c46af638e91492356f9c6c3d3bc1045c28
Time: 2013-08-13
Author: dblanchard@ets.org
File Name: skll/data.py
Class Name:
Method Name: _ids_for_gen_func


Project Name: EducationalTestingService/skll
Commit Name: f92383c46af638e91492356f9c6c3d3bc1045c28
Time: 2013-08-13
Author: dblanchard@ets.org
File Name: skll/data.py
Class Name:
Method Name: _features_for_gen_func