parent
eca02ebdd3
commit
a088025026
@ -0,0 +1 @@
|
||||
include conversion_utils/resources/jos_specifications.pickle
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,13 @@
|
||||
import pickle
|
||||
import argparse
|
||||
from conversion_utils.jos_msds_and_properties import SpecificationsParser
|
||||
|
||||
arg_parser = argparse.ArgumentParser(description='Parse source TEI specifications file and save as pickle.')
|
||||
arg_parser.add_argument('-xml', type=str, help='input XML file', required=True)
|
||||
arg_parser.add_argument('-pickle', type=str, help='output pickle file', required=True)
|
||||
arguments = arg_parser.parse_args()
|
||||
|
||||
parser = SpecificationsParser()
|
||||
specifications = parser.parse(arguments.xml)
|
||||
with open(arguments.pickle, 'wb') as pickle_file:
|
||||
pickle.dump(specifications, pickle_file)
|
Loading…
Reference in new issue