alverciito
commited on
Commit
·
0cb9f15
1
Parent(s):
8633ec9
benchmark last stable version
Browse files- research_files/bench.py +5 -6
research_files/bench.py
CHANGED
|
@@ -37,11 +37,11 @@ if __name__ == '__main__':
|
|
| 37 |
)
|
| 38 |
|
| 39 |
for model in [
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
"FacebookAI/xlm-roberta-base" # XLM-R (facebook)
|
| 46 |
]:
|
| 47 |
print("Evaluating Model (3 methods):", model)
|
|
@@ -54,7 +54,6 @@ if __name__ == '__main__':
|
|
| 54 |
device=torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu')
|
| 55 |
) for hyper, method in zip([4, 2, 0.3], ['pelt', 'binseg', 'csim'])]
|
| 56 |
|
| 57 |
-
|
| 58 |
def print_results(directory: str):
|
| 59 |
"""
|
| 60 |
Prints average segmentation metrics from JSON result files in a directory.
|
|
|
|
| 37 |
)
|
| 38 |
|
| 39 |
for model in [
|
| 40 |
+
"sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2", # Baseline Multilingual - sBERT
|
| 41 |
+
'hiiamsid/sentence_similarity_spanish_es', # Spanish similarity - sBERT
|
| 42 |
+
"jaimevera1107/all-MiniLM-L6-v2-similarity-es", # Spanish similarity - sBERT
|
| 43 |
+
"google-bert/bert-base-multilingual-cased", # mBERT (google)
|
| 44 |
+
"sentence-transformers/LaBSE", # LaBSE (google)
|
| 45 |
"FacebookAI/xlm-roberta-base" # XLM-R (facebook)
|
| 46 |
]:
|
| 47 |
print("Evaluating Model (3 methods):", model)
|
|
|
|
| 54 |
device=torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu')
|
| 55 |
) for hyper, method in zip([4, 2, 0.3], ['pelt', 'binseg', 'csim'])]
|
| 56 |
|
|
|
|
| 57 |
def print_results(directory: str):
|
| 58 |
"""
|
| 59 |
Prints average segmentation metrics from JSON result files in a directory.
|