'Brat annotation file to json file conversion

I am new to using brat annotation tool and I want to convert two of my annotation files "test.ann" and "train.ann" to .json files so that I can use them in my neural network. Is there any specific conversion tool for the same? I have tried a cli tool but it's written in the GO language and I would like to know if there is any written in the Python language



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source