Skip to content

Commit feefe64

Browse files
committed
added batch_size as keyword argument
There's probably a better default value....
1 parent 1508528 commit feefe64

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎examples/parallel_parse.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def save_parses(batch_id, input_, out_dir, n_threads, batch_size):
5858
n_thread=("Number of threads per process", "option", "t", int),
5959
batch_size=("Number of texts to accumulate in a buffer", "option", "b", int)
6060
)
61-
def main(in_loc, out_dir, n_process=1, n_thread=4):
61+
def main(in_loc, out_dir, n_process=1, n_thread=4, batch_size=100):
6262
if not path.exists(out_dir):
6363
path.join(out_dir)
6464
if n_process >= 2:

0 commit comments

Comments
 (0)