I have been using space for quite some-time and I really liked the displacy
Is there a way where we can serve multiple texts from my data-set in the web-page as-in a small arrow to redirect to next record and mark the entities. The code I'm using is as follows.
def validate(VAL_DATA):
nlp = spacy.load(args.model + '/nn')
for text, _ in VAL_DATA:
doc = nlp(text)
displacy.serve(doc, style='ent')
for ent in doc.ents:
print("entity: " + ent.label_ +"\t" + "text: " + ent.text)
VAL_DATA is my validation set and it has multiple records in it.
Thanks in advance.