mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nlp.git
synced 2024-12-26 08:44:18 +00:00
Add model version number
This commit is contained in:
parent
887e814020
commit
91708308bc
@ -72,9 +72,11 @@ xml_head = '''<?xml version="1.0" encoding="UTF-8"?>\n\
|
||||
<metadata\n\
|
||||
spacyVersion="{spacy_version}"
|
||||
spacyModel="{spacy_model}"
|
||||
spacyModelVersion="{spacy_model_version}"
|
||||
md5HashOfInput="{md5_hash}">\n'''.format(md5_hash=md5_hash,
|
||||
spacy_version=spacy.__version__,
|
||||
spacy_model=SPACY_MODELS[args.language])
|
||||
spacy_model=SPACY_MODELS[args.language],
|
||||
spacy_model_version=nlp.meta['version'])
|
||||
|
||||
with open(output_file_original_filename, 'w+') as output_file_original, \
|
||||
open(output_file_stand_off_filename, 'w+') as output_file_stand_off:
|
||||
|
Loading…
Reference in New Issue
Block a user