asahi417 commited on
Commit
69038d1
1 Parent(s): 2ceec3f

model update

Browse files
Files changed (2) hide show
  1. README.md +7 -7
  2. relation_mapping.json +1 -0
README.md CHANGED
@@ -2,7 +2,7 @@
2
  datasets:
3
  - relbert/semeval2012_relational_similarity
4
  model-index:
5
- - name: relbert/roberta-large-semeval2012-average-prompt-e-nce
6
  results:
7
  - task:
8
  name: Relation Mapping
@@ -153,26 +153,26 @@ model-index:
153
  value: 0.8965223263877973
154
 
155
  ---
156
- # relbert/roberta-large-semeval2012-average-prompt-e-nce
157
 
158
  RelBERT fine-tuned from [roberta-large](https://huggingface.co/roberta-large) on
159
  [relbert/semeval2012_relational_similarity](https://huggingface.co/datasets/relbert/semeval2012_relational_similarity).
160
  Fine-tuning is done via [RelBERT](https://github.com/asahi417/relbert) library (see the repository for more detail).
161
  It achieves the following results on the relation understanding tasks:
162
- - Analogy Question ([dataset](https://huggingface.co/datasets/relbert/analogy_questions), [full result](https://huggingface.co/relbert/roberta-large-semeval2012-average-prompt-e-nce/raw/main/analogy.json)):
163
  - Accuracy on SAT (full): 0.6256684491978609
164
  - Accuracy on SAT: 0.6379821958456974
165
  - Accuracy on BATS: 0.7354085603112841
166
  - Accuracy on U2: 0.6403508771929824
167
  - Accuracy on U4: 0.6273148148148148
168
  - Accuracy on Google: 0.882
169
- - Lexical Relation Classification ([dataset](https://huggingface.co/datasets/relbert/lexical_relation_classification), [full result](https://huggingface.co/relbert/roberta-large-semeval2012-average-prompt-e-nce/raw/main/classification.json)):
170
  - Micro F1 score on BLESS: 0.926020792526744
171
  - Micro F1 score on CogALexV: 0.8514084507042253
172
  - Micro F1 score on EVALution: 0.6868905742145178
173
  - Micro F1 score on K&H+N: 0.955762676497183
174
  - Micro F1 score on ROOT09: 0.898464431212786
175
- - Relation Mapping ([dataset](https://huggingface.co/datasets/relbert/relation_mapping), [full result](https://huggingface.co/relbert/roberta-large-semeval2012-average-prompt-e-nce/raw/main/relation_mapping.json)):
176
  - Accuracy on Relation Mapping: 0.8490079365079365
177
 
178
 
@@ -184,7 +184,7 @@ pip install relbert
184
  and activate model as below.
185
  ```python
186
  from relbert import RelBERT
187
- model = RelBERT("relbert/roberta-large-semeval2012-average-prompt-e-nce")
188
  vector = model.get_embedding(['Tokyo', 'Japan']) # shape of (1024, )
189
  ```
190
 
@@ -216,7 +216,7 @@ The following hyperparameters were used during training:
216
  - n_sample: 640
217
  - gradient_accumulation: 8
218
 
219
- The full configuration can be found at [fine-tuning parameter file](https://huggingface.co/relbert/roberta-large-semeval2012-average-prompt-e-nce/raw/main/trainer_config.json).
220
 
221
  ### Reference
222
  If you use any resource from RelBERT, please consider to cite our [paper](https://aclanthology.org/2021.eacl-demos.7/).
 
2
  datasets:
3
  - relbert/semeval2012_relational_similarity
4
  model-index:
5
+ - name: relbert/roberta-large-semeval2012-average-prompt-e-nce-conceptnet-validated
6
  results:
7
  - task:
8
  name: Relation Mapping
 
153
  value: 0.8965223263877973
154
 
155
  ---
156
+ # relbert/roberta-large-semeval2012-average-prompt-e-nce-conceptnet-validated
157
 
158
  RelBERT fine-tuned from [roberta-large](https://huggingface.co/roberta-large) on
159
  [relbert/semeval2012_relational_similarity](https://huggingface.co/datasets/relbert/semeval2012_relational_similarity).
160
  Fine-tuning is done via [RelBERT](https://github.com/asahi417/relbert) library (see the repository for more detail).
161
  It achieves the following results on the relation understanding tasks:
162
+ - Analogy Question ([dataset](https://huggingface.co/datasets/relbert/analogy_questions), [full result](https://huggingface.co/relbert/roberta-large-semeval2012-average-prompt-e-nce-conceptnet-validated/raw/main/analogy.json)):
163
  - Accuracy on SAT (full): 0.6256684491978609
164
  - Accuracy on SAT: 0.6379821958456974
165
  - Accuracy on BATS: 0.7354085603112841
166
  - Accuracy on U2: 0.6403508771929824
167
  - Accuracy on U4: 0.6273148148148148
168
  - Accuracy on Google: 0.882
169
+ - Lexical Relation Classification ([dataset](https://huggingface.co/datasets/relbert/lexical_relation_classification), [full result](https://huggingface.co/relbert/roberta-large-semeval2012-average-prompt-e-nce-conceptnet-validated/raw/main/classification.json)):
170
  - Micro F1 score on BLESS: 0.926020792526744
171
  - Micro F1 score on CogALexV: 0.8514084507042253
172
  - Micro F1 score on EVALution: 0.6868905742145178
173
  - Micro F1 score on K&H+N: 0.955762676497183
174
  - Micro F1 score on ROOT09: 0.898464431212786
175
+ - Relation Mapping ([dataset](https://huggingface.co/datasets/relbert/relation_mapping), [full result](https://huggingface.co/relbert/roberta-large-semeval2012-average-prompt-e-nce-conceptnet-validated/raw/main/relation_mapping.json)):
176
  - Accuracy on Relation Mapping: 0.8490079365079365
177
 
178
 
 
184
  and activate model as below.
185
  ```python
186
  from relbert import RelBERT
187
+ model = RelBERT("relbert/roberta-large-semeval2012-average-prompt-e-nce-conceptnet-validated")
188
  vector = model.get_embedding(['Tokyo', 'Japan']) # shape of (1024, )
189
  ```
190
 
 
216
  - n_sample: 640
217
  - gradient_accumulation: 8
218
 
219
+ The full configuration can be found at [fine-tuning parameter file](https://huggingface.co/relbert/roberta-large-semeval2012-average-prompt-e-nce-conceptnet-validated/raw/main/trainer_config.json).
220
 
221
  ### Reference
222
  If you use any resource from RelBERT, please consider to cite our [paper](https://aclanthology.org/2021.eacl-demos.7/).
relation_mapping.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"accuracy": 0.8490079365079365, "prediction": [{"source": ["solar system", "sun", "planet", "mass", "attracts", "revolves", "gravity"], "true": ["atom", "nucleus", "electron", "charge", "attracts", "revolves", "electromagnetism"], "pred": ["atom", "nucleus", "electron", "charge", "attracts", "revolves", "electromagnetism"], "alignment_match": true, "accuracy": 1, "similarity": 0.9999999997898223, "similarity_true": 0.9999999997898223}, {"source": ["water", "flows", "pressure", "water tower", "bucket", "filling", "emptying", "hydrodynamics"], "true": ["heat", "transfers", "temperature", "burner", "kettle", "heating", "cooling", "thermodynamics"], "pred": ["heat", "transfers", "temperature", "burner", "kettle", "heating", "cooling", "thermodynamics"], "alignment_match": true, "accuracy": 1, "similarity": 0.9457925000742521, "similarity_true": 0.9457925000742521}, {"source": ["waves", "shore", "reflects", "water", "breakwater", "rough", "calm", "crashing"], "true": ["sounds", "wall", "echoes", "air", "insulation", "loud", "quiet", "vibrating"], "pred": ["echoes", "wall", "sounds", "air", "insulation", "loud", "quiet", "vibrating"], "alignment_match": false, "accuracy": 0.75, "similarity": 0.9062836189046372, "similarity_true": 0.8972522484034419}, {"source": ["combustion", "fire", "fuel", "burning", "hot", "intense", "oxygen", "carbon dioxide"], "true": ["respiration", "animal", "food", "breathing", "living", "vigorous", "oxygen", "carbon dioxide"], "pred": ["respiration", "animal", "food", "breathing", "living", "vigorous", "oxygen", "carbon dioxide"], "alignment_match": true, "accuracy": 1, "similarity": 0.9999999998138631, "similarity_true": 0.9999999998138631}, {"source": ["sound", "low", "high", "echoes", "loud", "quiet", "horn"], "true": ["light", "red", "violet", "reflects", "bright", "dim", "lens"], "pred": ["light", "violet", "red", "reflects", "bright", "dim", "lens"], "alignment_match": false, "accuracy": 0.7142857142857143, "similarity": 0.9195897050252319, "similarity_true": 0.9195897050252319}, {"source": ["projectile", "trajectory", "earth", "parabolic", "air", "gravity", "attracts"], "true": ["planet", "orbit", "sun", "elliptical", "space", "gravity", "attracts"], "pred": ["sun", "orbit", "planet", "elliptical", "space", "gravity", "attracts"], "alignment_match": false, "accuracy": 0.7142857142857143, "similarity": 0.9999999997817628, "similarity_true": 0.9999999997817628}, {"source": ["breeds", "selection", "conformance", "artificial", "popularity", "breeding", "domesticated"], "true": ["species", "competition", "adaptation", "natural", "fitness", "mating", "wild"], "pred": ["species", "adaptation", "fitness", "natural", "competition", "mating", "wild"], "alignment_match": false, "accuracy": 0.5714285714285714, "similarity": 0.8485983924669573, "similarity_true": 0.8429113318732205}, {"source": ["ball", "billiards", "speed", "table", "bouncing", "moving", "slow", "fast"], "true": ["molecules", "gas", "temperature", "container", "pressing", "moving", "cold", "hot"], "pred": ["molecules", "gas", "temperature", "container", "pressing", "moving", "cold", "hot"], "alignment_match": true, "accuracy": 1, "similarity": 0.9327636400005811, "similarity_true": 0.9327636400005811}, {"source": ["computer", "processing", "erasing", "write", "read", "memory", "outputs", "inputs", "bug"], "true": ["mind", "thinking", "forgetting", "memorize", "remember", "memory", "muscles", "senses", "mistake"], "pred": ["mind", "thinking", "forgetting", "memorize", "remember", "memory", "senses", "muscles", "mistake"], "alignment_match": false, "accuracy": 0.7777777777777778, "similarity": 0.9343370830157076, "similarity_true": 0.9343370830157076}, {"source": ["slot machines", "reels", "spinning", "winning", "losing"], "true": ["bacteria", "genes", "mutating", "reproducing", "dying"], "pred": ["bacteria", "genes", "mutating", "reproducing", "dying"], "alignment_match": true, "accuracy": 1, "similarity": 0.874134525303485, "similarity_true": 0.874134525303485}, {"source": ["war", "soldier", "destroy", "fighting", "defeat", "attacks", "weapon"], "true": ["argument", "debater", "refute", "arguing", "acceptance", "criticizes", "logic"], "pred": ["argument", "debater", "refute", "arguing", "acceptance", "criticizes", "logic"], "alignment_match": true, "accuracy": 1, "similarity": 0.8934702056055576, "similarity_true": 0.8934702056055576}, {"source": ["buyer", "merchandise", "buying", "selling", "returning", "valuable", "worthless"], "true": ["believer", "belief", "accepting", "advocating", "rejecting", "true", "false"], "pred": ["believer", "belief", "advocating", "rejecting", "accepting", "true", "false"], "alignment_match": false, "accuracy": 0.5714285714285714, "similarity": 0.8975714340457634, "similarity_true": 0.8975714340457634}, {"source": ["foundations", "buildings", "supporting", "solid", "weak", "crack"], "true": ["reasons", "theories", "confirming", "rational", "dubious", "flaw"], "pred": ["reasons", "theories", "confirming", "dubious", "rational", "flaw"], "alignment_match": false, "accuracy": 0.6666666666666666, "similarity": 0.8799804970483114, "similarity_true": 0.8774244556906112}, {"source": ["obstructions", "destination", "route", "traveller", "traveling", "companion", "arriving"], "true": ["difficulties", "goal", "plan", "person", "problem solving", "partner", "succeeding"], "pred": ["difficulties", "goal", "plan", "person", "problem solving", "partner", "succeeding"], "alignment_match": true, "accuracy": 1, "similarity": 0.8869640310386687, "similarity_true": 0.8869640310386687}, {"source": ["money", "allocate", "budget", "effective", "cheap", "expansive"], "true": ["time", "invest", "schedule", "efficient", "quick", "slow"], "pred": ["time", "invest", "schedule", "quick", "slow", "efficient"], "alignment_match": false, "accuracy": 0.5, "similarity": 0.9071011805976154, "similarity_true": 0.8784549814837116}, {"source": ["seeds", "planted", "fruitful", "fruit", "grow", "wither", "blossom"], "true": ["ideas", "inspired", "productive", "product", "develop", "fail", "succeed"], "pred": ["ideas", "inspired", "productive", "product", "succeed", "fail", "develop"], "alignment_match": false, "accuracy": 0.7142857142857143, "similarity": 0.9253092663317172, "similarity_true": 0.9187328065933107}, {"source": ["machine", "working", "turned on", "turned off", "broken", "power", "repair"], "true": ["mind", "thinking", "awake", "asleep", "confused", "intelligence", "therapy"], "pred": ["mind", "thinking", "awake", "asleep", "confused", "intelligence", "therapy"], "alignment_match": true, "accuracy": 1, "similarity": 0.9080954194723798, "similarity_true": 0.9080954194723798}, {"source": ["object", "hold", "weight", "heavy", "light"], "true": ["idea", "understand", "analyze", "important", "trivial"], "pred": ["idea", "understand", "analyze", "important", "trivial"], "alignment_match": true, "accuracy": 1, "similarity": 0.8575402311196507, "similarity_true": 0.8575402311196507}, {"source": ["follow", "leader", "path", "follower", "lost", "wanders", "twisted", "straight"], "true": ["understand", "speaker", "argument", "listener", "misunderstood", "digresses", "complicated", "simple"], "pred": ["understand", "speaker", "argument", "listener", "misunderstood", "digresses", "complicated", "simple"], "alignment_match": true, "accuracy": 1, "similarity": 0.894493783413004, "similarity_true": 0.894493783413004}, {"source": ["seeing", "light", "illuminating", "darkness", "view", "hidden"], "true": ["understanding", "knowledge", "explaining", "confusion", "interpretation", "secret"], "pred": ["understanding", "knowledge", "explaining", "confusion", "interpretation", "secret"], "alignment_match": true, "accuracy": 1, "similarity": 0.8973249995993127, "similarity_true": 0.8973249995993127}]}