GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Russole/AICUP-2023-Spring-NLP

BranchesTags
Open more actions menu

Latest commit

 

History

110 Commits
110 Commits

Folders and files

NameName
Last commit message
Last commit date
checkpoints
checkpoints
 
 
data
data
 
 
logs/第二階段資料/無BM25
logs/第二階段資料/無BM25
 
 
weights
weights
 
 
.gitignore
.gitignore
 
 
ClaimVerInfer.ipynb
ClaimVerInfer.ipynb
 
 
ClaimVerTrain.ipynb
ClaimVerTrain.ipynb
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SentenceRetrievalInfer.ipynb
SentenceRetrievalInfer.ipynb
 
 
SentenceRetrievalTrain.ipynb
SentenceRetrievalTrain.ipynb
 
 
Stage1_BM25Final.ipynb
Stage1_BM25Final.ipynb
 
 
Stage1_Un_BM25.ipynb
Stage1_Un_BM25.ipynb
 
 
dataset.py
dataset.py
 
 
environment.yml
environment.yml
 
 
helper_function.py
helper_function.py
 
 
requirements.txt
requirements.txt
 
 
submission.jsonl
submission.jsonl
 
 
utils.py
utils.py
 
 

Repository files navigation

AICUP-2023-Spring-NLP-真相只有一個: 事實文字檢索與查核競賽

比賽目標

給一段敘述,驗證該敘述的真實性。

  • 找出佐證該敘述真實性的文章以及句子。

隊伍:Team_3181

運行環境

使用 Anaconda 建立環境 :

conda env create -f environment.yml
conda activate AI_CUP

資料

  • data/raw : 裡面是未經過處理的原始資料集
  • data/Stage1 : 經過Stage 1 Stage1_BM25Final.ipynb 及 Stage1_Un_BM25.ipynb處理過的資料集
  • data/Stage2/PublicTrain/WithoutBM25 : Train Data 經過 SentenceRetrievalTrain.ipynb 運算後產出的訓練數據集
  • data/Stage2/Private : Private Data 經過 SentenceRetrievalInfer.ipynb 運算後產出的Infer數據集
  • data/Stage2ModelTrainData : Stage 2 的訓練集,與data/Stage 1/UnBM25_train_doc10.jsonl 資料一樣
  • data/Stage3ModelTrainData : Stage 3 的訓練集,與data/Stage 2/PublicTrain/WithoutBM25 資料夾裡的資料一樣

還有一項資料wiki pages因檔案太大,所以沒傳上來,執行程式前,請先解壓後再放在data資料夾(路徑:data/wiki-pages)

wiki pages為競賽網頁上的資料,這裡有提供下載連結

wiki pages下載網址

Stage 1

因為會遇到wikipedia 在search時候的一些問題,所以Stage 1是在Colab雲端上運算

  • Stage1_BM25Final.ipynb : 透過BM25演算法搜尋文章
  • Stage1_Un_BM25.ipynb ,處理訓練資料,以利後續Stage 2 的訓練
  • Stage1_BM25Final.ipynb 處理Test及Private的資料,後續Stage 2 Infer用的資料

訓練

Stage 2 訓練

進行Stage 2 訓練前,請先將 data/Stage1/UnBM25_train_doc10.jsonl 複製到 data/Stage2ModelTrainData 資料夾中

  • Stage 2 Training: SentenceRetrievalTrain.ipynb ,產生的訓練資料會繼續在Stage 3訓練

Stage 3 訓練

進行Stage3 訓練前,請先將 data/Stage2/PublicTrain/WithoutBM25 資料夾裡的資料,複製到 data/Stage3ModelTrainData 資料夾中

  • Stage 3 Training: ClaimVerTrain.ipynb

預測

權重下載網址

請先下載權重並且放在weights資料夾中,連結有提供Stage2 及 3的模型權重

  • Stage 2 : SentenceRetrievalInfer.ipynb ,產生的Infer資料會在Stage 3運算
  • Stage 3 : ClaimVerInfer.ipynb , 產生最後的預測檔案

備註: 因為在實驗的過程中,觀察到wikipedia.search()回傳的資料會有浮動,再還沒執行Stage 1 及Stage 2的情況下,下載好模型權重後,可以直接執行ClaimVerInfer.ipynb,產生最後的預測檔案

About

No description, website, or topics provided.

Resources

Readme
AGPL-3.0 license
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.