cofacts / rumors-api

GraphQL API server for clients like rumors-site and rumors-line-bot
https://api.cofacts.tw
MIT License
110 stars 26 forks source link

2nd script of category review #272

Closed MrOrz closed 2 years ago

MrOrz commented 2 years ago

This PR implements script 2 in category review.

Test run: around 10 minutes

node_modules/.bin/babel-node -- src/scripts/genBERTInputArticles.js -s 1Y9FrI01in2hz5eiveGknH0HE081sr7gVuk0a7hqqKuc -o 20211128 Writing feedbacks to database progress [========================================] 100% | ETA: 0s | 2989/2989 1418 positive feedbacks & 115 negative feedbacks have been written. Scanning through 15584 matching articles progress [========================================] 100% | ETA: 0s | 15584/15584

coveralls commented 2 years ago

Coverage Status

Coverage increased (+0.3%) to 87.149% when pulling 6fd962b8b31eaccb0243397e42951c9dc9b934ed on genBERTInputArticles into 0eee4811f5cce5511b353da00b2565785ecf55e8 on master.

MrOrz commented 2 years ago

Production execution result

node_modules/.bin/babel-node -- src/scripts/genBERTInputArticles.js -s 1Y9FrI01in2hz5eiveGknH0HE081sr7gVuk0a7hqqKuc -o 20211128-production Writing feedbacks to database progress [========================================] 100% | ETA: 0s | 2989/2989 2211 positive feedbacks & 131 negative feedbacks have been written. Scanning through 14910 matching articles progress [========================================] 100% | ETA: 0s | 14910/14910

MrOrz commented 2 years ago

Run again on production DB & new review category to include Flow's ground truth labels added in 12/06.

$ node_modules/.bin/babel-node -- src/scripts/genBERTInputArticles.js -s 1E6S_wYkRIEgItKKnZyaXVBejiwYCS67qvtJ4u3YoFq8 -o ../groundtruth/20211209-production Writing feedbacks to database progress [========================================] 100% | ETA: 0s | 476/476 318 positive feedbacks & 61 negative feedbacks have been written. Scanning through 17111 matching articles progress [========================================] 100% | ETA: 0s | 17111/17111