8524810d21a051f88478b430da098b046accd5a4,conceptnet5/vectors/evaluation/bias.py,,measure_bias,#Any#,189

Before Change


    - Religious beliefs
    
    vsw = VectorSpaceWrapper(frame=frame)
    vsw.load()

    gender_binary_axis = normalize_vec(get_category_axis(frame, FEMALE_WORDS) - get_category_axis(frame, MALE_WORDS))
    gender_bias_numbers = []
    for female_biased_word, male_biased_word in GENDER_BIAS_PAIRS:

After Change


    
    // Assume English for DataFrames that don"t have language tags.
    if "/c/" not in frame.index[0]:
        frame.index = ["/c/en/%s" % label for label in frame.index]

    gender_binary_axis = normalize_vec(get_category_axis(frame, FEMALE_WORDS) - get_category_axis(frame, MALE_WORDS))
    gender_bias_numbers = []
    for female_biased_word, male_biased_word in GENDER_BIAS_PAIRS:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: commonsense/conceptnet5
Commit Name: 8524810d21a051f88478b430da098b046accd5a4
Time: 2017-04-24
Author: rob@luminoso.com
File Name: conceptnet5/vectors/evaluation/bias.py
Class Name:
Method Name: measure_bias


Project Name: jhfjhfj1/autokeras
Commit Name: 3a181c8d229d3f45d6457cd329d2336b07b2330b
Time: 2019-02-08
Author: jhfjhfj1@gmail.com
File Name: autokeras/pretrained/voice_generator/voice_generator.py
Class Name: VoiceGenerator
Method Name: __init__