Coder Social home page Coder Social logo

paper_sentence_tagging's Introduction

Pater sentence tagging 논문 문장 의미 태깅

캡처

논문의 구조에 따라 문장들이 의도하는 역할을 구분하는 라벨(태그) 부착 연구목적: 문제정의, 가설설정, 기술정의 연구방법: 대상데이터, 분석방법, 제안방법, 이론/모형 연구결과: 성능/효과, 후속연구/제안

사용언어 및 모듈

  • Python
  • PyTorch
  • PyTorch Ignite
  • TorchText
  • Khaiii API
  • Huggingface (for KcBERT)

Pre-process

  1. Format Input file 형식: (tag sentence) 탭으로 분리된 파일 (.tsv) My data: 63437개의 data (논문 태그, 논문 문장)

data

  1. Tokenization 카카오 형태소 분석기 Khaiii Tokenizer을 이용해 문장 토큰화

  2. Dataset shuffle and Split, Cross Validation Train set : Test set = 8:2 Validation set: Train의 20%

Model

cnn, rnn ensemble

1. train.py cnn, rnn 모두 학습

cnn,rnn emsemble

2. classify.py

(Best CNN + Best RNN)/2

  • 저장된 cnn 모델 중 가장 좋은 성능을 가진 모델과 rnn 모델 중 가장 좋은 성능을 가진 best 모델 모두 추론 적용
  • 추론 적용 결과 값들의 평균 구해서 k 번째로 높은 순위를 가진 라벨과 문장 출력 (top-k 설정)

KcBERT

1. train.py

kc-bert

Pre-trained BERT model의 weights 로드 --> fine-tuning 수행

2. classify.py

  • Pre-trained BERT model로 fine-tuning한 최종 모델에 추론 적용
  • 추론 적용 결과 값들 중 k번째로 높은 순위를 가진 라벨과 문장 출력 (top-k 설정)

Inference result

  • 실행 결과 (라벨, 문장)

결과

  • 학습 조건 및 Accuracy

final_model

Reference

paper_sentence_tagging's People

Contributors

ahnty0122 avatar hy310 avatar jiho-030 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.