Coder Social home page Coder Social logo

jiant-rev_dxbg's Introduction

jiant NLP toolkit

jiant NLP toolkit 을 활용하여 2021 국립국어원 인공지능언어능력평가에 맞게 수정하여 사용하였습니다.

모델은 koELECTRA 를 사용하였습니다.

jiant 를 수정한 부분은 아래와 같습니다.

예제 수정

  1. ElectraFast 모델/토크나이저 추가 :

    • 모듈 : ./jiant/shared/model_resolution.py
      • 변수 : TOKENIZER_CLASS_DICT
        • ElectraFastTokenizer 추가
    • 모듈 : ./jiant/proj/main/modeling/primary.py
      • 함수 : @JiantTransformersModelFactory.register()
        • 모델 등록
  2. task 데이터셋 로드(NIKL) :

    • 모듈 : ./jiant/scripts/download_data/utils.py
      • 함수 : convert_hf_dataset_to_examples()
        • 데이터셋 로드 변경
    • 모듈 : ./jiant/scripts/download_data/dl_datasets/hf_datasets_tasks.py
      • 변수 : HF_DATASETS_CONVERSION_DICT
        • task 데이터셋 칼럼요소 변경(cola, copa, wic, boolq)
  3. 평가결과 제출(JSON)

    • 모듈 : ./jiant/proj/main/components/evaluate.py
      • 함수 : write_preds()
        • ID, 결과 포멧

jiant-rev_dxbg's People

Contributors

rightlit avatar trellixvulnteam 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.