Giter VIP home page Giter VIP logo

certified-word-sub's People

Contributors

robinjia 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

Watchers

 avatar  avatar  avatar

certified-word-sub's Issues

Doubt regarding modifications to word substitution approach

In the paper it is written that :

"the adversary applies substitutions one at a time, and the neighborhoods and language model scores are computed relative to the current altered version of the input. This results in a hard-to-define attack surface, as changing one word can allow or disallow changes to other words"

What do you mean by "hard-to-define attack surface as changing one word can allow or disallow changes to other words" statement ?

Thanks !

LSTM attention mechanism

Hi, in the paper you define the IBP for softmax which is used in the LSTM attention mechanism. However, I only found the 'mean' pooling for training LSTM.
Maybe I missed it in your paper, but my question is: Did you use the mean pooling for LSTM in your evaluation?

KeyError: 'Unrecognized sentence...

I'm testing with a trained model using --use-lm and the following error occurred:

KeyError: 'Unrecognized sentence "although the production and jerry jameson \'s direction are definite improvements , `` airport \'77 \'\' is n\'t

I search in lm_scores/imdb_all.txt, and find the sentence actually exists, but it's slightly different.

The key in lm_scores (from lm_scores/imdb_all.txt):

although the production and jerry jameson 's direction are definite improvements , `` airport '77 '' is n't much better than `` airport 1975 '' : slick , commercial rubbish submerging ( this time literally ) a decent cast . jack lemmon is the pilot of a packed airliner which gets hijacked by art thieves and crashes into the sea ( all the publicity claimed it was near the bermuda triangle , but there 's no mention of it in the film itself ) . when the rescue ships come to raise the airplane out of the water , we see all their cranes dropping ( rather blindly ) into the ocean and it 's hard not to laugh ( imagining the cranes plugging the plane , the passengers and the waterlogged script ) . nbc used to air what appeared to be the `` director 's cut '' , with at least an hour of extra footage -- mostly flashbacks -- injected into the proceedings with all the subtlety of a `` gilligan 's island '' episode . most exciting moment is the plane crash , and some of the players have a little fun : lee grant is an obnoxious drunk , brenda vaccaro a no-nonsense stewardess , joseph cotten and olivia de havilland are flirting oldsters . still , the personality conflicts and the excruciating military detail eventually tear at one 's patience . ** from ****

The raw_data sentence:

although the production and jerry jameson 's direction are definite improvements , `` airport '77 '' is n't much better than `` airport 1975 '' : slick , commercial rubbish submerging ( this time literally ) a decent cast . jack lemmon is the pilot of a packed airliner which gets hijacked by art thieves and crashes into the sea ( all the publicity claimed it was near the bermuda triangle , but there 's no mention of it in the film itself ) . when the rescue ships come to raise the airplane out of the water , we see all their cranes dropping ( rather blindly ) into the ocean and it 's hard not to laugh ( imagining the cranes plugging the plane , the passengers and the waterlogged script ) . nbc used to air what appeared to be the `` director 's cut '' , with at least an hour of extra footage -- mostly flashbacks -- injected into the proceedings with all the subtlety of a `` gilligan 's island '' episode . most exciting moment is the plane crash , and some of the players have a little fun : lee grant is an obnoxious drunk , brenda vaccaro a no-nonsense stewardess , joseph cotten and olivia de havilland are flirting oldsters . still , the personality conflicts and the excruciating military detail eventually tear at one 's patience . * * from * * * *

It seems the last few characters are different. Any idea on this?

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.