Giter VIP home page Giter VIP logo

perturbed-masking's People

Contributors

lividwo 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  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  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

perturbed-masking's Issues

The results about the left/right in ABSC experiments

Thanks for the code publishing. Here comes a issue when I am trying to repro the ABSC part in paper.
For the ABSC part, the paper use PWCN model and compare the induced tree with the left/right chain additionally. And the left/right get different performance results. However, based on the data pre-processing in PWCN, the left and the right chain should be same. So I am wondering why they two have different output results? or there is some trick missing in the paper?
Expect the reply for this issue, really Thanks.

parsing.py: error: argument

This error occurs for constituency probe:

parsing.py: error: argument --decoder: invalid choice: 'mart' (choose from 'eisner', 'cle', 'right_chain', 'top_down', 'right_branching', 'left_branching')

after running:

python parsing.py --probe constituency \
    --matrix [the generated impact matrix file] \
    --decoder mart

A Question about Figure 1 in Paper

Thank you for your interesting and impressive work on interpreting BERT in unsupervised linguistic tasks. I have a small question about Figure 1 in the paper, just as below:

image

What is the meaning of each cell, does it mean the distance or the impact? I understand it should be impact since the following sections address that the higher impact represents the closer correlation. However, the right-side color bar ranging from 0 to 5 makes me very confused. So, I'm wondering how to compute the cell using Dist or Prob?

Looking forward to your response, thanks :)

"Dist" and "Prob" versions

Reading the paper (section 2.2), I see the two difference functions

  • "Dist" (Euclidean distance between the embeddings) and
  • "Prob" (difference in probability of target token)

However, looking at the code, I see the options for the --metric flag are

Is the metric cos the "Prob" of the paper?

Help needed to achieve the distance in the ABSC task

Thanks for publishing your code.
I am trying to reproduce the results of the ABSC tasks. I used bert-base-uncased to generate the distance of Laptops, but got different distances from your Laptops_Test_Gold.xlm.seg.dist. Since the distance generation does not include random factors (BERT in evaluation mode should always give the same prediction), could you help to achieve the distance as you got in the ABSC folder ? Which layer was you using and metric, etc. ?

Problems about masking details.

when calculating the impact of x_i+1 to x_i, is there a must to mask x_i? I have done a test on sentence segment without masking x_i , and it achieved a comparatively better result with less matrix calculation.

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.