Skip to content

Commit

Permalink
#67 explicitly added id columns
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolay-r committed Sep 29, 2023
1 parent c620470 commit ffa141e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arekit_ss/sample.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import argparse

from arekit.common.data import const
from arekit.common.pipeline.base import BasePipeline
from arekit.contrib.utils.data.writers.csv_native import NativeCsvWriter
from arekit.contrib.utils.data.writers.json_opennre import OpenNREJsonWriter
Expand Down Expand Up @@ -60,7 +61,7 @@
elif args.writer in ['jsonl', 'json']:
writer = OpenNREJsonWriter(text_columns=["text_a", "text_b"])
elif args.writer == "sqlite":
writer = SQliteWriter(skip_existed=False)
writer = SQliteWriter(skip_existed=False, clear_table=True, index_column_names=[const.ID])
else:
raise Exception("writer `{}` is not supported!".format(args.writer))

Expand Down

0 comments on commit ffa141e

Please sign in to comment.