From d771137dc7e70c8034aa198dc58aa4852145cec5 Mon Sep 17 00:00:00 2001 From: Ozbolt Menegatti Date: Wed, 3 Jul 2019 13:05:52 +0200 Subject: [PATCH] removing pickled structures --- src/syntactic_structure.py | 3 --- src/wani.py | 1 - 2 files changed, 4 deletions(-) diff --git a/src/syntactic_structure.py b/src/syntactic_structure.py index b7b9dd5..6cf4d28 100644 --- a/src/syntactic_structure.py +++ b/src/syntactic_structure.py @@ -98,9 +98,6 @@ class SyntacticStructure: def build_structures(args): filename = args.structures - if args.pickled_structures: - with open(filename, 'rb') as fp: - return pickle.load(fp) max_num_components = -1 with open(filename, 'r') as fp: diff --git a/src/wani.py b/src/wani.py index 7de759d..16c9cc0 100644 --- a/src/wani.py +++ b/src/wani.py @@ -152,7 +152,6 @@ if __name__ == '__main__': help='Run in multiple processes, should speed things up') parser.add_argument('--match-to-file', help='Do not use!') - parser.add_argument('--pickled-structures', help='Do not use!', action='store_true') args = parser.parse_args() logging.basicConfig(stream=sys.stderr, level=args.verbose.upper())