able to load pickled structures
This commit is contained in:
@@ -107,8 +107,8 @@ def match_file(words, structures):
|
||||
return matches
|
||||
|
||||
|
||||
def main(structures_file, args):
|
||||
structures, lemma_msds, max_num_components = build_structures(structures_file)
|
||||
def main(args):
|
||||
structures, lemma_msds, max_num_components = build_structures(args)
|
||||
|
||||
match_store = MatchStore(args)
|
||||
word_stats = WordStats(lemma_msds)
|
||||
@@ -218,11 +218,13 @@ if __name__ == '__main__':
|
||||
help='Tag for separators, usually pc or c', default="pc")
|
||||
parser.add_argument('--parallel',
|
||||
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())
|
||||
|
||||
start = time.time()
|
||||
main(args.structures, args)
|
||||
main(args)
|
||||
logging.info("TIME: {}".format(time.time() - start))
|
||||
|
||||
Reference in New Issue
Block a user