This module uses the time annotation tool "HeidelTime" to annotate temporal expressions in narrative texts. Input- and outputformat are TEI-XML. It filters and refines the generated annotations using RegEx patterns to better fit our specific text, which is an early 19th century German travelogue by Franz Xaver Bronner.
It makes use of py-heideltime
python_wrapper of HeidelTime and standoffconverter
to facilitate the TEI-XML file(s).
Navigate to the folder bronner-heideltime-annotation
.
Install the requirements by run the following command in your terminal:
pip install -r requirements.txt
Create a folder called data
at the toplevel of the bronner-heideltime-annotation
directory and place all the XML files you'd like to annotate there. Start the main.py
script by typing the following command in your console:
python3 main.py
The annotated XML files should be saved in the data
folder in the following format: name_of_your_file
_timeparsed.xml.
Project Homepage: https://dbs.ifi.uni-heidelberg.de/research/heideltime/
GitHub: https://github.com/HeidelTime/heideltime