Giter Site home page Giter Site logo

pan19-cross-domain-authorship-attribution's Introduction

Cross-domain Authorship Attribution

A support vector machine based approach for cross-domain authorship attribution. This application is specifically created for the PAN19 cross-domain authorship attribution shared task.

Requirements

  • Both Python 3.6 and Python 2.7 (Python 2.7 is needed for the dependency parser)
  • Python3 packages in python3-requirements.txt
  • Python2 packages in python2-requirements.txt
  • An official data set that is compiled for this shared task or at least in the same format

Installation

Before the application can be used, some external data is needed and the part-of-speech tagger and dependency parser have to be trained. To do this, run the following script:

./scripts/trainAll.sh

Warning: This will take a while.

Usage

Before the SVM model can be used for training and testing, the input data must be preprocessed once. This can be done by running the following script where the second path must be to an non-existing directory:

./scripts/runAll.sh path/to/training-dataset-2019-01-23 path/to/training-dataset-2019-01-23-processed

The preprocessing can also be triggered by adding the -r argument to the main script:

python3 svm.py -r data/training-dataset-2019-01-23 -i data/training-dataset-2019-01-23-processed -o outputs

If the input data is already processed you should run the script without the -r argument:

python3 svm.py -i data/training-dataset-2019-01-23-processed -o outputs

If you want to want to see macro-averaged precision, recall and f-scores during processing, add the --eval argument. The values are identical to the official shared task metrics:

python3 svm.py -i data/training-dataset-2019-01-23-processed -o outputs --eval

pan19-cross-domain-authorship-attribution's People

Contributors

wietsedv avatar

Watchers

 avatar  avatar  avatar

Forkers

pan-webis-de

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.