GithubHelp home page GithubHelp logo

beetroit / alison Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ericx003/alison

0.0 0.0 0.0 101.94 MB

[AAAI'24] ALISON: Fast and Effective Stylometric Authorship Obfuscation

Home Page: https://arxiv.org/abs/2402.00835

Python 100.00%

alison's Introduction

ALISON: Fast and Effective Stylometric Authorship Obfuscation

Data

The three datasets used can be found in the Data folder. Due to TuringBench's large size, it has been partitioned into three files.

Usage

First, clone this repo:

git clone https://github.com/EricX003/ALISON

And resolve dependencies:

pip install -r requirements.txt

Train the Attributor:

python Train.py

Arguments:

  • --train: The path to the training data.
  • --authors_total: Total number of authors in the dataset (default 10)
  • --dir: Path to the directory containing the trained model (Contains feature set, model, etc.)
  • --trial_name: Name of the trial (human-readable) to generate the save directory (default is an empty string)
  • --test_size: Proportion of Data to use for network testing (default 0.15)
  • --top_ngrams: t, The Number of top character and POS-n-grams to retain
  • --V: V, the set of n-gram lengths to use (default '[1, 2, 3, 4]')

Additional arguments for fine-tuning the hyperparms of the training of the n-gram-based neural network model are provided and can be accessed via:

python Train.py -h

For Obfuscation:

python Obfuscate.py

Arguments:

  • --texts: The path to the texts for obfuscation.
  • --authors_total: Total number of authors in the dataset (default 10)
  • --dir: Path to the directory containing the trained model (Contains feature set, model, etc.)
  • --trial_name: Name of the trial (human-readable) to generate the save directory (default is empty string)
  • --L: L, the number of top POS n-grams to consider for obfuscation (default 15)
  • --c: c, the length scaling constant (default 1.35)
  • --min_length: The minimum length of POS n-gram to consider for obfuscation (default 1)
  • --ig_steps: Number of steps associated with discrete integral calculation for Integrated Gradients attribution (default 1024)

Citation

@inproceedings{xing2024alison,
      title={ALISON: Fast and Effective Stylometric Authorship Obfuscation}, 
      author={Eric Xing and Saranya Venkatraman and Thai Le and Dongwon Lee},
      booktitle={AAAI},
      year={2024},
}

alison's People

Contributors

ericx003 avatar

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.