Skip to content

boostcampaitech6/level2-klue-nlp-03

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BoostcampAItech

KLUE Relation Extraction

Static Badge Static Badge Static Badge Static Badge

Introduction

본 프로젝트의 주제인 관계 추출(Relation Extraction, RE)는 문장 내의 두 개체 사이의 관계를 추출하는 작업입니다. 프로젝트를 수행하기 위해 저희 팀에서는 한국어 자연어 이해 벤치마크 데이터셋인 KLUE(Korean Language Understanding Evaluation)의 RE 데이터셋에 Hugging Face에서 제공하는 사전 학습 모델들을 활용하여 문장 속 단어들의 관계를 30개의 관계 클래스로 분류하는 모델을 만들었습니다.

Features

  • Typed Entity Marker
  • Pretrained Model + Bi-LSTM classifier
  • RE-MC (in 'template' branch)
  • UniST (in 'template' branch)
  • R-BERT (in 'template' branch)
  • Lightning + Hydra template (in 'template' branch)
  • F-Mask
  • streamlit

How To Use

Dependencies

pandas==1.1.5
scikit-learn~=0.24.1
transformers==4.23.0
matplotlib
streamlit

Train

cd code/
python3 train.py

Inference

cd code/
python3 interence.py

NOTE: 'template' 브랜치에서 추가적인 기능을 사용하실 수 있습니다.

Contributors

김연수
badge 김연수
김진기
badge 김진기
석수경
badge 석수경
오주영
badge 오주영
이균
badge 이균
이서연
badge 이서연

Reference

[1] Zhou, W., & Chen, M. (2021). An improved baseline for sentence-level relation extraction. arXiv preprint arXiv:2102.01373 An Improved Baseline for Sentence-level Relation Extraction - Typed Entity Marker
[2] Huang, J. Y., Li, B., Xu, J., & Chen, M. (2022). Unified semantic typing with meaningful label inference. arXiv preprint arXiv:2205.01826. Unified Semantic Typing with Meaningful Label Inference - Semantic Typing
[3] Wu, S., & He, Y. (2019, November). Enriching pre-trained language model with entity information for relation classification. In Proceedings of the 28th ACM international conference on information and knowledge management (pp. 2361-2364). Enriching Pre-trained Language Model with Entity Information for Relation Classification - R-BERT
[4] https://github.com/monologg/R-BERT Pytorch implementation of R-BERT: "Enriching Pre-trained Language Model with Entity Information for Relation Classification"

About

level2-klue-nlp-03 created by GitHub Classroom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages