Gliner annotations input format help

Gliner model.py file takes into input labelled tasks for fine-tuning, however label studios output format does not include text tokens , but gliner requires tokens and labels as input for fine-tuning. How can I modify my gliner model file for the same?