mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nlp.git
				synced 2025-10-31 01:12:47 +00:00 
			
		
		
		
	Add model version number
This commit is contained in:
		| @@ -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: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user