asahi417 commited on
Commit
35ad8e3
1 Parent(s): da1bfea
Files changed (2) hide show
  1. README.md +48 -3
  2. relation_mapping.py +3 -2
README.md CHANGED
@@ -1,7 +1,52 @@
1
- {"id": "m10",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  "reference": ["seeing", "understanding"],
3
  "source": ["seeing", "light", "illuminating", "darkness", "view", "hidden"],
4
  "target": ["understanding", "knowledge", "explaining", "confusion", "interpretation", "secret"],
5
  "agreement": [68.2, 77.3, 86.4, 86.4, 68.2, 86.4],
6
- "pos": ["vbg", "nn", "vbg", "nn", "nn", "jj"],
7
- "target_random": ["knowledge", "interpretation", "explaining", "confusion", "understanding", "secret"]}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license:
5
+ - other
6
+ multilinguality:
7
+ - monolingual
8
+ size_categories:
9
+ - 1K<n<10K
10
+ pretty_name: Relation Mapping
11
+ ---
12
+ # Dataset Card for "relbert/relation_mapping"
13
+ ## Dataset Description
14
+ - **Repository:** [RelBERT](https://github.com/asahi417/relbert)
15
+ - **Paper:** [https://www.jair.org/index.php/jair/article/view/10583](https://www.jair.org/index.php/jair/article/view/10583)
16
+ - **Dataset:** Relation Mapping
17
+
18
+ ### Dataset Summary
19
+ Relation Mapping is a task to choose optimal combination of word pairs (see more detail in the [paper](https://www.jair.org/index.php/jair/article/view/10583)).
20
+
21
+ ## Dataset Structure
22
+ ### Data Instances
23
+ An example looks as follows.
24
+ ```
25
+ {
26
+ "id": "m10",
27
  "reference": ["seeing", "understanding"],
28
  "source": ["seeing", "light", "illuminating", "darkness", "view", "hidden"],
29
  "target": ["understanding", "knowledge", "explaining", "confusion", "interpretation", "secret"],
30
  "agreement": [68.2, 77.3, 86.4, 86.4, 68.2, 86.4],
31
+ "pos": ["vbg", "nn", "vbg", "nn", "nn", "jj"],
32
+ "target_random": ["knowledge", "interpretation", "explaining", "confusion", "understanding", "secret"]
33
+ }
34
+ ```
35
+
36
+ ### Data Splits
37
+ | name |test|
38
+ |---------|----:|
39
+ |relation_mapping| 33 |
40
+
41
+
42
+ ### Citation Information
43
+ ```
44
+ @article{turney2008latent,
45
+ title={The latent relation mapping engine: Algorithm and experiments},
46
+ author={Turney, Peter D},
47
+ journal={Journal of Artificial Intelligence Research},
48
+ volume={33},
49
+ pages={615--655},
50
+ year={2008}
51
+ }
52
+ ```
relation_mapping.py CHANGED
@@ -42,8 +42,9 @@ class RelationMapping(datasets.GeneratorBasedBuilder):
42
 
43
  def _split_generators(self, dl_manager):
44
  downloaded_file = dl_manager.download_and_extract(_URLS)
45
- return [datasets.SplitGenerator(name=i, gen_kwargs={"filepaths": downloaded_file[str(i)]})
46
- for i in [datasets.Split.TRAIN, datasets.Split.VALIDATION]]
 
47
 
48
  def _generate_examples(self, filepaths):
49
  _key = 0
 
42
 
43
  def _split_generators(self, dl_manager):
44
  downloaded_file = dl_manager.download_and_extract(_URLS)
45
+ return [datasets.SplitGenerator(
46
+ name=str(datasets.Split.TRAIN), gen_kwargs={"filepaths": downloaded_file[str(datasets.Split.TRAIN)]})
47
+ ]
48
 
49
  def _generate_examples(self, filepaths):
50
  _key = 0