Datasets:

Modalities:
Text
Formats:
parquet
Languages:
Japanese
Size:
< 1K
ArXiv:
Libraries:
Datasets
pandas
License:
citrusjunos commited on
Commit
ec414ca
·
verified ·
1 Parent(s): 354db1c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +11 -3
README.md CHANGED
@@ -43,7 +43,7 @@ Therefore, we collaborate with in-house ad creators to refine the CAMERA referen
43
 
44
 
45
  ## Usage
46
- Please use this dataset together with the CAMERA dataset. Specifically, as shown in the sample code below, it is recommended that you use the asset_id to link the examples in the CAMERA dataset and this dataset, and then, if a reference ad text in the CAMERA dataset is not faithful to the input, use a reference ad text in this dataset.
47
 
48
  ```python
49
  import datasets
@@ -61,17 +61,25 @@ faithful_test_instances = {}
61
  for record in test_split_of_faithcamera:
62
  asset_id = record['asset_id']
63
  info = test_d[asset_id]
64
- y = record['ad_title'] if record['flg_revised'] else info['title_org']
65
  faithful_test_instance = {
66
  'asset_id': asset_id,
67
  'keywords': info['kw'].split(" "),
68
  'lp_meta_description': info['lp_meta_description'],
69
- 'ad_title': y,
70
  'lp_ocr_sentences': info['parsed_full_text_annotation']['text']
71
  }
72
  faithful_test_instances.append(faithful_test_instance)
73
  ```
74
 
 
 
 
 
 
 
 
 
 
75
  ### Note
76
  - Because this dataset is targeted at Japanese ad texts, an instance of asset_id: 100637, where all the text on the landing page (LP) is in English, have been excluded (in the tsv file, the reference ad text for this instance is set as an empty string).
77
 
 
43
 
44
 
45
  ## Usage
46
+ Please use this dataset together with the CAMERA dataset. Specifically, as shown in the sample code below, it is recommended that you use the asset_id to link the examples in the CAMERA dataset and this dataset.
47
 
48
  ```python
49
  import datasets
 
61
  for record in test_split_of_faithcamera:
62
  asset_id = record['asset_id']
63
  info = test_d[asset_id]
 
64
  faithful_test_instance = {
65
  'asset_id': asset_id,
66
  'keywords': info['kw'].split(" "),
67
  'lp_meta_description': info['lp_meta_description'],
68
+ 'ad_title': record['ad_title'],
69
  'lp_ocr_sentences': info['parsed_full_text_annotation']['text']
70
  }
71
  faithful_test_instances.append(faithful_test_instance)
72
  ```
73
 
74
+ ### Dataset Structure
75
+
76
+ | Name | Description |
77
+ | ---- | ---- |
78
+ | asset_id | This field can be used to match each instance in this dataset with an instance in the CAMERA dataset. |
79
+ | ad_title | ad text (gold reference) |
80
+ | flg_revised | If this field is “True”, it means that the ad text has been rewritten to be faithful to the input. On the other hand, if it is “False”, it means that the ad text in the CAMERA dataset is already faithful to the input, so no rewriting is done. |
81
+
82
+
83
  ### Note
84
  - Because this dataset is targeted at Japanese ad texts, an instance of asset_id: 100637, where all the text on the landing page (LP) is in English, have been excluded (in the tsv file, the reference ad text for this instance is set as an empty string).
85