Giter Site home page Giter Site logo

aveqa's Introduction

AVEQA

the reproduction code of the paper "Learning to Extract Attribute Value from Product via Question Answering: A Multi-task Approach"

Usage

Use the following command to run the train.py or test.py

python train.py --device=cuda

The model would run in 1 GPU in defualt, to change the setting, change the number in find_gpus in train.py and test.py

Put the aepub dataset in the ./dataset folder as an txt file (./dataset/publish_data.txt), and the processed dataset would be save to './dataset/aePub'

Use the ae_pub.py to generate and preprocess the dataset.

Modify the config.json to set the parameter and the dataset path.

The training.py would automatically go through the training and testing pipeline and generate the training and testing dataset

After training, the training accuracy would be stored in the training_metric.json at the root directory.

Requirment

Python 3.7

scikit-learn

torch 1.11.0

transformer 4.18.0

You may find other packages in the requirement.txt and requirement_conda.txt for pip and conda environment.

aveqa's People

Contributors

wyb0627 avatar zinc-30 avatar

Stargazers

 avatar  avatar  avatar Yushi Sun avatar Lucy Park avatar

Watchers

Lucy Park avatar  avatar Yushi Sun avatar

Forkers

ysunbp

aveqa's Issues

Dockerfile

If you update the data/weight/model, I will make a dockerfile for easy reproduction. Thanks!

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.