Encoding tools for DDHI
Project description
A collection of command-line utilities to assist in the creation of TEI-encoded oral history interviews. Part of the Dartmouth Digital History Initiative.
DDHI Encoder
The ddhi-encoder package is being developed to assist encoders in the DDHI project in encoding oral history interview transcripts in TEI. At present, it contains three command-line utilities:
ddhi_convert: convert a Dartmouth DVP transcript from docx to tei.xml.
ddhi_tag: perform named-entity tagging on a DDHI TEI transcription.
ddhi_mentioned_places: extract places from stand-off markup for processing with OpenRefine
ddhi_update_places: update places in stand-off markup
Installation
You can use pip to install this package:
pip install ddhi-encoder
To peform named-entity tagging with ddhi_tag, you will need a Spacy model. Before running ddhi_tag, install Spacy’s small English model:
python -m spacy download en_core_web_sm
See the Spacy documentation for more information.
Use
Use ddhi_convert to transform a DOCX-encoded transcription into a simply structured TEI document:
ddhi_convert ~/Desktop/transcripts/zien_jimmy_transcript_final.docx -o tmp.tei.xml
Use ddhi_tag to add named-entity tags to a TEI-encoded transcription:
ddhi_tag -o zien.tei.xml tmp.tei.xml
Use ddhi_mentioned_places to extract the places in a TEI file’s standoff markup and print it as tab-separated values:
ddhi_mentioned_places lovely.tei.xml > lovely.tsv
Use ddhi_update_places to update the places in a TEI file’s standoff markup with identifiers and geo-coordinates obtained via OpenRefine or other procedure:
ddhi_update_places lovely.tei.xml lovely_updates.tsv >
updated_lovely.tei.xml
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for ddhi_encoder-1.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38a99f777afdb1cc6e9963166290761cf4d2c930c8f51d267f4a39cdf52d3661 |
|
MD5 | a7798e87332060ab62f0ae27fbb88cad |
|
BLAKE2b-256 | 0cf41a2e3cd35683293292d61059e84b76af0d0ae398400576e7b05c83bc01c1 |