GithubHelp home page GithubHelp logo

00mjk / 2021_korean_competition Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zizun/2021_korean_competition

0.0 0.0 0.0 12.72 MB

2021 국립국어원 인공 지능 언어 능력 평가 화성갈끄니까 Team

Shell 3.15% Python 95.36% Dockerfile 1.49%

2021_korean_competition's Introduction

2021_korean_competition

2021 국립국어원 인공 지능 언어 능력 평가 (화성갈끄니까 팀)

각 Task별 Train 코드

  1. Environment Setting
pip install -r requirements.txt
  1. Train 코드 실행
bash boolq.sh roberta [bsz]
bash cola.sh roberta [bsz]
bash copa.sh roberta [bsz]
bash wic.sh roberta [bsz]

Docker build and 모델 앙상블 평가 방법(CUDA11지원, 현재 모델 파라미터, 데이터 제공X)

  1. Docker Image build & container 실행
git clone https://github.com/ZIZUN/2021_korean_competition.git
cd 2021_korean_competition
docker build -t rocket
docker run --gpus 1 --rm -it rocket
  1. Conda Environment Setting
conda activate rocket
pip install -r requirements.txt
  1. 평가용 데이터 삽입(./data/boolq/ , ... 각 4가지 Task별 폴더에 삽입)

<참고> boolq - 판정의문문, cola - 문법성판단, copa - 인과관계추론, wic - 동형이의어

  1. evaluation 코드(get_result.py)를 arguments(데이터 경로, batchsize 등)와 함께 실행 (40분 정도 소요)
python get_result.py --batch_size 100 --num_worker 5 --boolq_data_path 'data/boolq/_.tsv' --cola_data_path 'data/cola/_.tsv' --copa_data_path 'data/copa/_.tsv' --wic_data_path 'data/wic/_.tsv' --result_file_name 'result.json' --device 'cuda:0'
  1. 평가가 완료되면 './result/' 경로에 결과파일(tsv)이 저장된다.

Solution

1 1 1 1 1 1 1

2021_korean_competition's People

Contributors

gkzmsltm avatar zizun 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.