Skip to content

Commit

Permalink
Explicitly setup delimiter for CSV formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolay-r committed Jun 2, 2023
1 parent 23a0223 commit 778c8f1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion arelight/pipelines/demo/infer_bert_rus.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def demo_infer_texts_bert_pipeline(texts_count,
samples_io = SamplesIO(target_dir=samples_output_dir,
reader=PandasCsvReader(sep=',', compression="infer"),
prefix=samples_prefix,
writer=NativeCsvWriter())
writer=NativeCsvWriter(delimiter=','))

pipeline = BasePipeline(pipeline=[

Expand Down
2 changes: 1 addition & 1 deletion examples/serialize_bert.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
storage=RowCacheStorage(),
samples_io=SamplesIO(target_dir=dirname(backend_template),
prefix=basename(backend_template),
writer=NativeCsvWriter()),
writer=NativeCsvWriter(delimiter=',')),
save_labels_func=lambda data_type: data_type != DataType.Test,
balance_func=lambda data_type: data_type == DataType.Train)
])
Expand Down
2 changes: 1 addition & 1 deletion test/test_bert_serialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def test(self):
BertExperimentInputSerializerPipelineItem(
rows_provider=rows_provider,
storage=RowCacheStorage(),
samples_io=SamplesIO(target_dir=self.TEST_DATA_DIR, writer=NativeCsvWriter()),
samples_io=SamplesIO(target_dir=self.TEST_DATA_DIR, writer=NativeCsvWriter(delimiter=',')),
save_labels_func=lambda data_type: data_type != DataType.Test,
balance_func=lambda data_type: data_type == DataType.Train)
])
Expand Down

0 comments on commit 778c8f1

Please sign in to comment.