Van Tuan DANG
commited on
Commit
·
7fc3c6d
1
Parent(s):
f2d0d08
add discription
Browse files
README.md
CHANGED
@@ -67,11 +67,14 @@ df_dev = load_dataset("stsb_multi_mt", name="fr", split="dev")
|
|
67 |
df_test = load_dataset("stsb_multi_mt", name="fr", split="test")
|
68 |
|
69 |
# Convert the dataset for evaluation
|
|
|
|
|
70 |
dev_samples = convert_dataset(df_dev)
|
71 |
val_evaluator = EmbeddingSimilarityEvaluator.from_input_examples(dev_samples, name='sts-dev')
|
72 |
val_evaluator(model, output_path="./")
|
73 |
|
74 |
-
|
|
|
75 |
test_evaluator = EmbeddingSimilarityEvaluator.from_input_examples(test_samples, name='sts-test')
|
76 |
test_evaluator(model, output_path="./")
|
77 |
```
|
|
|
67 |
df_test = load_dataset("stsb_multi_mt", name="fr", split="test")
|
68 |
|
69 |
# Convert the dataset for evaluation
|
70 |
+
|
71 |
+
# For Dev set:
|
72 |
dev_samples = convert_dataset(df_dev)
|
73 |
val_evaluator = EmbeddingSimilarityEvaluator.from_input_examples(dev_samples, name='sts-dev')
|
74 |
val_evaluator(model, output_path="./")
|
75 |
|
76 |
+
# For Test set:
|
77 |
+
test_samples = convert_dataset(df_test)
|
78 |
test_evaluator = EmbeddingSimilarityEvaluator.from_input_examples(test_samples, name='sts-test')
|
79 |
test_evaluator(model, output_path="./")
|
80 |
```
|