mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nlp.git
synced 2025-07-01 16:00:33 +00:00
First attempt
This commit is contained in:
@ -25,6 +25,12 @@ def main():
|
||||
if text_md5.hexdigest() != stand_off_data.meta['file']['md5']:
|
||||
raise Exception('md5 not equal')
|
||||
|
||||
with open(args.text, encoding=stand_off_data.meta['file']['encoding']) as text_file:
|
||||
text = text_file.read()
|
||||
|
||||
with open(args.output, 'w') as vrt_file:
|
||||
vrt_file.write(stand_off_data.to_vrt(text))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
Reference in New Issue
Block a user