If no output, then just commit stuff to database and exit.
This commit is contained in:
parent
ec02242f47
commit
f9bfac6430
|
@ -53,6 +53,11 @@ def main(args):
|
|||
del matches
|
||||
gc.collect()
|
||||
|
||||
# if no output files, just exit
|
||||
if all([x == None for x in [args.out, args.out_no_stat, args.all, args.stats]]):
|
||||
database.commit()
|
||||
return
|
||||
|
||||
# get word renders for lemma/msd
|
||||
word_stats.generate_renders()
|
||||
match_store.determine_colocation_dispersions()
|
||||
|
@ -76,7 +81,7 @@ if __name__ == '__main__':
|
|||
parser.add_argument('structures',
|
||||
help='Structures definitions in xml file')
|
||||
parser.add_argument('input',
|
||||
help='input xml file in `ssj500k form`, can list more than one', nargs='+')
|
||||
help='input file in (gz or xml currently). If none, then just database is loaded', nargs='*')
|
||||
parser.add_argument('--out',
|
||||
help='Classic output file')
|
||||
parser.add_argument('--out-no-stat',
|
||||
|
@ -116,7 +121,6 @@ if __name__ == '__main__':
|
|||
parser.add_argument('--pc-tag',
|
||||
help='Tag for separators, usually pc or c', default="pc")
|
||||
|
||||
|
||||
args = parser.parse_args()
|
||||
logging.basicConfig(stream=sys.stderr, level=args.verbose.upper())
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user