We've been working on a little library that might be useful if you work with #TEI and NER or text analysis:
• Extract plaintext from TEI
• Run your NER/NLP tools
• Map results back into the original TEI—without breaking anything!
Perfect for adding automated annotations to existing markup.