mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nlp.git
synced 2026-11-15 08:51:57 +00:00
First attempt
This commit is contained in:
1 parent
66516eeb89
commit
0ba0c14b72
4 files changed
+99
-214
No files matched your search
@@ -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