UUDigitalHumanitieslab / parseport

Dutch sentence parser for Spindle + Æthel (and maybe others in the future).
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Add system check for presence of required data files #29

Closed XanderVertegaal closed 3 weeks ago

XanderVertegaal commented 2 months ago

Django's system check framework: https://docs.djangoproject.com/en/5.0/topics/checks/

If you do end up using a system check, you could tell the create subset command to ignore system checks (see https://docs.djangoproject.com/en/5.0/howto/custom-management-commands/#django.core.management.BaseCommand.requires_system_checks).

_Originally posted by @bbonf in https://github.com/UUDigitalHumanitieslab/parseport/pull/28#discussion_r1579100632_

XanderVertegaal commented 2 months ago

This could also be relevant for SpindleServer (w.r.t. model_weights.pt).

bbonf commented 2 months ago

I realized system checks were not the right solution for this (partly because they run after AppConfig.ready())