Datasets:
cjvt
/

Matej Klemen commited on
Commit
1b1ad9b
1 Parent(s): 5b47bfd

Update the returned ID of document to not have the source/target part in it

Browse files
Files changed (1) hide show
  1. solar3.py +1 -1
solar3.py CHANGED
@@ -224,7 +224,7 @@ class Solar3(datasets.GeneratorBasedBuilder):
224
  corr_data.append({"idx_src": src_inds, "idx_tgt": tgt_inds, "corr_types": corr_types})
225
 
226
  yield idx_corr, {
227
- "id_doc": id_doc,
228
  "doc_title": doc_title,
229
  "is_manually_validated": is_manually_validated,
230
  "idx_src_par": src_sent_data.get("idx_par", -1),
 
224
  corr_data.append({"idx_src": src_inds, "idx_tgt": tgt_inds, "corr_types": corr_types})
225
 
226
  yield idx_corr, {
227
+ "id_doc": id_doc[:-1], # doc ID without the "s" or "t" info
228
  "doc_title": doc_title,
229
  "is_manually_validated": is_manually_validated,
230
  "idx_src_par": src_sent_data.get("idx_par", -1),