I have some training data that when I assign it to a variable in a jupyter notebook it seems to automatically convert to an object, 

for example

```
train_data = [("Uber blew through $1 million a week", [(0, 4, 'ORG')]),("Android Pay expands to Canada", [(0, 11, 'PRODUCT'), (23, 30, 'GPE')])]

```

but when I read the same data from text file using

```
with open(path, 'r') as myfile:
  data = myfile.read()

```

and assign it to the train\_data variable I'm no longer to iterate over the objects in the training script

```
for _, annotations in train_data:
    for ent in annotations.get('entities'):
        ner.add_label(ent[2])

```