Skip to content

Code for ACL2018 HotFlip: White-Box Adversarial Examples for Text Classification, Data Preparation

Notifications You must be signed in to change notification settings

AnyiRao/SentDataPre

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Data preprocessing for Sentence Classification

This is a full implementation of data preprocessing for a CNN and a b-LSTM. Some of the codes are based on Amit Mandelbaum's code.

With this code you can reproduce almost all results presented on baselines and the results we present in our paper.

Requirements

  • Python (2.7)
  • NumPy
  • NLTK
  • Pandas

Download Google's word embeddings binary file from https://code.google.com/p/word2vec/ extract it, and place it under data/ folder

For most dataset, it could be downloaded from https://github.com/harvardnlp/sent-conv-torch/tree/master/data

About

Code for ACL2018 HotFlip: White-Box Adversarial Examples for Text Classification, Data Preparation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages