Coder Social home page Coder Social logo

qazalo's Introduction

Bài toán Question Answering trong cuộc thi Zalo AI Challenge 2019

Thực tập kỹ thuật

@author: hsthe29

Overview

Given a question, related paragraphs from a Wikipedia article (in the shuffle order), the task is finding paragraph which answers the question of each test case.

F1 measure based on precision and recall is used to rank competing submissions.

For detailed, visit: https://challenge.zalo.ai/portal/question-answering

About Data?

Visit: https://challenge.zalo.ai/portal/question-answering

Approaches

I used pretrained bert (bert-base-multilingual-cased) for fine-tuning

Hyperparameter

num_train_epochs = 6.0

max_seq_length = 512

train_batch_size = 16

learning_rate = 2e-5

Run

Run the project using flags. For more details on the flags defined, read the main.py file or run this command: python main.py -h

Train

Please download the init checkpoint at here and put into the folder checkpoint.

Run command sh train.sh

Predict

If you want to only predict, please download the checkpoint of trained model at here

Run command: sh predict.sh.

Result:

Training logs are store at logs/.

For visualizing: $ tensorboard --logdir=logs/tensorboard

With validation set (data/train/val.csv), this model reach 83.6% of F1 score

qazalo's People

Contributors

hsthe29 avatar

Stargazers

Ngô Đức Hào avatar Hồ Sỹ Thế avatar

Watchers

 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.