-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathrun_multiple_models.py
More file actions
40 lines (35 loc) · 1.16 KB
/
run_multiple_models.py
File metadata and controls
40 lines (35 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
"""
Reproduce benchmark results.
"""
import workrb
if __name__ == "__main__":
# 1. Setup model and tasks
models = [
workrb.models.BiEncoderModel(),
workrb.models.JobBERTModel(),
]
# Cfg
langs = [
"en",
"fr",
"de",
"nl",
]
split = "test"
tasks = [
workrb.tasks.ESCOJob2SkillRanking(split=split, languages=langs),
workrb.tasks.ESCOSkill2JobRanking(split=split, languages=langs),
workrb.tasks.ESCOSkillNormRanking(split=split, languages=langs),
workrb.tasks.SkillMatch1kSkillSimilarityRanking(split=split, languages=langs),
workrb.tasks.JobBERTJobNormRanking(split=split, languages=langs),
workrb.tasks.HouseSkillExtractRanking(split=split, languages=langs),
workrb.tasks.TechSkillExtractRanking(split=split, languages=langs),
workrb.tasks.ESCOJob2SkillClassification(split=split, languages=langs),
]
results = workrb.evaluate_multiple_models(
models=models,
tasks=tasks,
output_folder_template="../results/simple_demo/{model_name}",
description="Simple WorkRB demo",
force_restart=True,
)