I have two of the tuples like this :
('This is example string 1', "{'entities': [(96, 115, 'type_2')]}")
('This is example string 2', "{'entities': [(38, 42, 'type_1'), (5, 15, 'Modality'), (103, 128, 'File Name'), (58, 92, 'subtype_3')]}")
However, I want the double quotes ("") to be removed from both like this :
('This is example string 1', {'entities': [(96, 115, 'type_2')]})
('This is example string 2', {'entities': [(38, 42, 'type_1'), (5, 15, 'Modality'), (103, 128, 'File Name'), (58, 92, 'subtype_3')]})
Once it is done, the tuples should be appended to the list :
[('This is example string 1', {'entities': [(96, 115, 'type_2')]})
('This is example string 2', {'entities': [(38, 42, 'type_1'), (5, 15, 'Modality'), (103, 128, 'File Name'), (58, 92, 'subtype_3')]})]