Coder Social home page Coder Social logo

contextual_embedding_bias_measure's People

Contributors

ayushoriginal avatar berzentine avatar keitakurita avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

contextual_embedding_bias_measure's Issues

NIPS method replication templates

Hello,

I went through the notebooks for NIPS method replication, however, I couldn't find some files.
Are the files:

  • gender_occ_pos_w_probs_train.txt
  • gender_occ_neg_w_probs_train.txt
  • gender_emo_w_probs_train.txt
  • gender_occ_pos_w_probs_val.txt
  • gender_occ_neg_w_probs_val.txt
  • gender_emo_w_probs_val.txt
    available anywhere?

get_index() funtion returns 0('[CLS]') as an index

In

weat_result_replication_permute_targets.ipynb

There seems to be problem with get_index() called in function in get_mask_fill_logits.

print(np.log(get_mask_fill_logits("[MASK] are beautiful.", ["clover"])['clover']))
print(np.log(get_mask_fill_logits("[MASK] are [MASK].", ["clover"], use_last_mask=True)['clover']))

results in

gender_comes_first=False

Tokens for ptgt : [[MASK], are, beautiful, .]
0 [MASK]
return maskid from get_index() function : 1
response from get_mask_fill_logits : -18.595278

gender_comes_first=True

Tokens for prior : [[MASK], are, [, [UNK]]
0 [UNK]
1 [
2 are
3 [MASK]
maskid : 0
response from get_mask_fill_logits : -10.874125

gender_comes_first=True
Expected response:

Tokens for prior : [[MASK], are, [MASK], .]
0 [MASK]
1 are
2 [MASK]
3 .
maskid : 3
response from get_mask_fill_logits : -28.40166

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.