Skip to main content
100%

Named Entity Recognition on Folger's XML Edition of *A Winter's Tale*

✓ Published0🌍 Public
CCliffordAnderson
Last edited Mar 18, 2014
Created on Jan 2, 2014

This visualization maps the named entities in a TEI-encoded XML edition of Shakespeare’s *A Winter’s Tale* by classifying each line of dialogue with the Stanford NER library’s `english.muc.7class.distsim.crf` classifier. It shows how the text’s person, location, and organization labels distribute across acts and scenes, highlighting character mentions as the play progresses. Written in XQuery 3.0, the code extracts line text from `//tei:ab` nodes, joining `tei:w`, `tei:pc`, and `tei:lb` elements into a single string, then calls `ner:classify-string` per line. The output feeds a visualization that preserves the original line breaks, revealing which characters dominate each segment of the play.

AI-generated description

Similar vizzes