Implement OCRSegDataset in mmocr.datasets.ocr_seg_dataset that loads a newline-delimited JSON ann_file into data_infos and supports pre_pipeline to set img_prefix. Implement _parse_anno_info with strict validation, prepare_train_img(index) returning the required dict, and evaluate(results, metric) computing word_acc, char_precision, and char_recall as per tests.