Add a new web page to PendingChangesBot that allows users to visualize how LiftWing machine learning models evaluate Wikipedia articles over their revision history.
User Story
As a user, I want to select a Wikipedia article and visualize how different LiftWing model scores have changed across its revision history, so that I can better understand how these models work and how article quality evolves over time.
Links
Example code
import json
from pywikibot.comms import http
url = 'https://api.wikimedia.org/service/lw/inference/v1/models/revertrisk-multilingual:predict'
headers = {
'Content-Type': 'application/json',
'User-Agent': 'PendingChangesBot/1.0 (https://fi.wikipedia.org/wiki/User:SeulojaBot)'
}
payload = json.dumps({'rev_id': 23599483, 'lang':'fi'}) # your rev ID
resp = http.fetch(url, method='POST', headers=headers, data=payload)
print(resp.text)
Feature Requirements
1. Wiki and Article Selection
2. Revision History Fetching
3. LiftWing Model Selection
4. Model Data Fetching and Caching
5. Visualization - Line Graph
6. Revision List Table
Technical Considerations
- Extend existing PendingChangesBot database model to store:
- Complete revision history (not just pending changes)
- Cached LiftWing model predictions per revision
- Model metadata and timestamps
Add a new web page to PendingChangesBot that allows users to visualize how LiftWing machine learning models evaluate Wikipedia articles over their revision history.
User Story
As a user, I want to select a Wikipedia article and visualize how different LiftWing model scores have changed across its revision history, so that I can better understand how these models work and how article quality evolves over time.
Links
Example code
Feature Requirements
1. Wiki and Article Selection
2. Revision History Fetching
3. LiftWing Model Selection
4. Model Data Fetching and Caching
5. Visualization - Line Graph
6. Revision List Table
Technical Considerations