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
|
del matches
|
||||||
gc.collect()
|
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
|
# get word renders for lemma/msd
|
||||||
word_stats.generate_renders()
|
word_stats.generate_renders()
|
||||||
match_store.determine_colocation_dispersions()
|
match_store.determine_colocation_dispersions()
|
||||||
|
@ -76,7 +81,7 @@ if __name__ == '__main__':
|
||||||
parser.add_argument('structures',
|
parser.add_argument('structures',
|
||||||
help='Structures definitions in xml file')
|
help='Structures definitions in xml file')
|
||||||
parser.add_argument('input',
|
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',
|
parser.add_argument('--out',
|
||||||
help='Classic output file')
|
help='Classic output file')
|
||||||
parser.add_argument('--out-no-stat',
|
parser.add_argument('--out-no-stat',
|
||||||
|
@ -116,7 +121,6 @@ if __name__ == '__main__':
|
||||||
parser.add_argument('--pc-tag',
|
parser.add_argument('--pc-tag',
|
||||||
help='Tag for separators, usually pc or c', default="pc")
|
help='Tag for separators, usually pc or c', default="pc")
|
||||||
|
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
logging.basicConfig(stream=sys.stderr, level=args.verbose.upper())
|
logging.basicConfig(stream=sys.stderr, level=args.verbose.upper())
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user