Mozilla PDF.js based viewer for multiclass machine learning tasks