Added training functionality that connects with Ocrn.