text_plain_output_1.png
import numpy as np

test = 'The standard way to access entity annotations is the doc.ents property, which produces a sequence of Span objects. The entity type is accessible either as a hash value or as a string using the attributes ent.label and  The Span object acts as a sequence of tokens so you can iterate over the entity or index into it. You can also get the text form of the whole entity, as though it were a single token.'
clean_text = clean(test)

clean_text_arr = np.array(clean_text.split())

clean_text_arr.shape