jensjorisdecorte commited on
Commit
6593f25
·
verified ·
1 Parent(s): 59f1449

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +202 -125
README.md CHANGED
@@ -10,126 +10,157 @@ base_model: sentence-transformers/paraphrase-multilingual-mpnet-base-v2
10
  widget:
11
  - source_sentence: 系统管理员技术员——TS/SCI级别并拥有多项式验证
12
  sentences:
13
- - support development of annual budget, create a financial report, report analysis
14
- results, Microsoft Access, accounting, use presentation software, interpret financial
15
- statements, synthesise financial information, develop vaccines, handle financial
16
- overviews of the store, produce statistical financial records, develop financial
17
- statistics reports, explain accounting records, financial analysis, SAP R3, represent
18
- the company, examine budgets, prepare presentation material, use spreadsheets
19
- software, forecast account metrics, meet deadlines, prepare financial projections,
20
- manage budgets, exercise self-control, financial statements
21
- - ensure cross-department cooperation, establish customer rapport, improve business
22
- processes, manage technical security systems, handle incidents, maintain ICT system,
23
- explain characteristics of computer peripheral equipment, gather technical information,
24
- collaborate in company's daily operations , apply change management, maintain
25
- technical equipment, communicate with customers, solve technical problems, perform
26
- ICT troubleshooting, use ICT equipment in maintenance activities, manage major
27
- incidents, build business relationships, computer engineering, perform software
28
- recovery testing, identify process improvements, maintain relationship with customers,
29
- carry out project activities, collaborate in the development of marketing strategies,
30
- computer technology, technical terminology
31
- - utilise machine learning, cloud technologies, develop predictive models, assess
32
- sportive performance, formulate findings , principles of artificial intelligence,
33
- perform business research, communicate with stakeholders, computer engineering,
34
- build predictive models, computer science, develop automated software tests, analyse
35
- business objectives, Agile development, cloud monitoring and reporting, provide
36
- written content, obtain relevant licenses, design prototypes, machine learning,
37
- e-learning software infrastructure, analyse education system, disseminate results
38
- to the scientific community, learning technologies, ML (computer programming),
39
- task algorithmisation
 
 
 
 
 
 
 
40
  - source_sentence: 安全运营官
41
  sentences:
42
- - deliver outstanding service, manage carriers, direct customers to merchandise,
43
- improve customer interaction, manage time, support managers, assist customers,
44
- process customer orders, manage customer service, satisfy customers, guarantee
45
- customer satisfaction, respond to customers' inquiries
46
- - manage several projects, implement operational business plans, identify improvement
47
- actions, develop strategy to solve problems, manage website, carry out project
48
- activities, follow reporting procedures, supervise site maintenance, adjust priorities,
49
- schedule shifts, conduct public presentations, motivate others, manage operational
50
- budgets, report to the team leader, encourage teams for continuous improvement,
51
- lead the sustainability reporting process, implement sustainable procurement,
52
- show an exemplary leading role in an organisation, manage manufacturing facilities,
53
- develop training programmes, develop production line, supply chain management,
54
- leadership principles, lead a team, coaching techniques
55
- - provide emergency supplies, provide first aid, liaise with security authorities,
56
- apply medical first aid in case of emergency, regulate traffic, train security
57
- officers, maintain physical fitness, provide protective escort, ensure public
58
- safety and security, ensure inspections of facilities, work in inclement conditions,
59
- follow procedures in the event of an alarm, set safety and security standards,
60
- comply with the principles of self-defence, present reports, maintain facility
61
- security systems, conduct security screenings, types of evaluation , monitor security
62
- measures, office equipment, escort pedestrians across streets, advise on security
63
- staff selection, wear appropriate protective gear, work in outdoor conditions,
 
 
 
 
 
64
  assist emergency services
65
  - source_sentence: Empleado de control de COVID
66
  sentences:
67
- - maintain records of clients' prescriptions, assist people in contaminated areas,
68
- label samples, maintain museum records, apply social distancing protocols, collect
69
- biological samples from patients, infection control, label medical laboratory
70
- samples, disinfect surfaces, maintain customer records, ensure health and safety
71
- of staff, personal protective equipment, remove contaminated materials, store
72
- contaminated materials, prepare prescription labels, use personal protection equipment
73
- - promote organisational communication, provide legal advice, human resource management,
74
- company policies, perform customer management, business processes, ensure compliance
75
- with legal requirements, develop communications strategies, enforce company values,
76
- develop outreach training plans, use consulting techniques, develop employment
77
- policies, human resources department processes, personnel management, identify
78
- training needs, participate in health personnel training, health and safety in
79
- the workplace, lead police investigations, ensure compliance with policies, prepare
80
- compliance documents, perform internal investigations, develop employee retention
81
- programs, develop corporate training programmes, customer relationship management,
82
- manage localisation
83
- - perform escalation procedure, imprint visionary aspirations into the business
84
- management, observe confidentiality, impart business plans to collaborators, lead
85
- a team, human resources department processes, respect confidentiality obligations,
86
- hire human resources, manage commercial risks, develop business plans, communicate
87
- with stakeholders, maintain relationship with customers, manage several projects,
88
- provide improvement strategies, manage technical security systems, knowledge management,
89
- risk management, develop program ideas, perform project management, project management,
90
- cope with uncertainty, address identified risks, provide performance feedback,
 
 
 
 
 
 
91
  information confidentiality, track key performance indicators
92
  - source_sentence: Aerie - Brand Ambassador (Sales Associate) - US
93
  sentences:
94
- - lay bricks, provide first aid, enforce park rules, conflict management, give swimming
95
- lessons, assist in performing physical exercises, perform park safety inspections,
96
- assist in the movement of heavy loads, lead a team, first aid, supervise pool
97
- activities, swim, coach staff for running the performance, show an exemplary leading
98
- role in an organisation, teach public speaking principles, collaborate with coaching
99
- team, supervise work, calculate stairs rise and run, calculate compensation payments,
100
- manage a team, information confidentiality
101
- - react to events in time-critical environments, operate in a specific field of
102
- nursing care, clinical science, promote healthy fitness environment, lead others,
103
- comply with legislation related to health care, maintain a safe, hygienic and
104
- secure working environment, provide healthcare services to patients in specialised
105
- medicine, write English, conduct physical examinations, leadership principles,
106
- use clinical assessment techniques, apply context specific clinical competences,
107
- conduct health related research, conceptualise healthcare user’s needs, assessment
108
- processes, communicate in healthcare, provide professional care in nursing, nursing
109
- science, promote health and safety, implement policy in healthcare practices,
110
- engage with stakeholders, identify problems, respond to changing situations in
111
- health care, perform resource planning
112
- - ensure the privacy of guests, provide customised products, company policies, exude
113
- enthusiasm during the action sessions, provide customer guidance on product selection,
114
- collect briefing regarding products, perform multiple tasks at the same time,
115
- create solutions to problems, respond to visitor complaints
 
 
 
 
 
 
116
  - source_sentence: 医师——危重症护理——重症监护专家——项目医务总监
117
  sentences:
118
- - handle incidents, provide technical documentation, coordinate operational activities,
119
- ensure information security, work in teams, manage manufacturing documentation,
120
- project configuration management, operate call distribution system, maintain computer
121
- hardware, apply change management, manage aircraft support systems, perform escalation
122
- procedure, manage production changeovers, maintenance operations, call-centre
123
- technologies, manage service contracts in the drilling industry, encourage teambuilding,
124
- manage major incidents, resolve equipment malfunctions, work independently, think
125
- analytically, manage maintenance operations, maintain plan for continuity of operations
126
- - develop recycling programs, receive actors' resumes, work in cold environments,
127
- perform cleaning duties, operate floor cleaning equipment, operate forklift
128
- - perform technical tasks with great care, supervise medical residents, manage a
129
- multidisciplinary team involved in patient care, administrative tasks in a medical
130
- environment, demonstrate technical skills during neurological surgery, apply problem
131
- solving in social service, intensive care medicine, provide comprehensive care
132
- for patients with surgical conditions, work in teams, solve problems
 
 
 
 
 
 
 
133
  pipeline_tag: sentence-similarity
134
  library_name: sentence-transformers
135
  co2_eq_emissions:
@@ -142,6 +173,12 @@ co2_eq_emissions:
142
  ram_total_size: 83.47684860229492
143
  hours_used: 5.34
144
  hardware_used: 1 x NVIDIA A100-SXM4-40GB
 
 
 
 
 
 
145
  ---
146
 
147
  # SentenceTransformer based on sentence-transformers/paraphrase-multilingual-mpnet-base-v2
@@ -189,27 +226,67 @@ First install the Sentence Transformers library:
189
  pip install -U sentence-transformers
190
  ```
191
 
192
- Then you can load this model and run inference.
193
  ```python
 
 
 
194
  from sentence_transformers import SentenceTransformer
 
195
 
196
- # Download from the 🤗 Hub
197
  model = SentenceTransformer("TechWolf/JobBERT-v3")
198
- # Run inference
199
- sentences = [
200
- '医师——危重症护理——重症监护专家——项目医务总监',
201
- 'perform technical tasks with great care, supervise medical residents, manage a multidisciplinary team involved in patient care, administrative tasks in a medical environment, demonstrate technical skills during neurological surgery, apply problem solving in social service, intensive care medicine, provide comprehensive care for patients with surgical conditions, work in teams, solve problems',
202
- 'handle incidents, provide technical documentation, coordinate operational activities, ensure information security, work in teams, manage manufacturing documentation, project configuration management, operate call distribution system, maintain computer hardware, apply change management, manage aircraft support systems, perform escalation procedure, manage production changeovers, maintenance operations, call-centre technologies, manage service contracts in the drilling industry, encourage teambuilding, manage major incidents, resolve equipment malfunctions, work independently, think analytically, manage maintenance operations, maintain plan for continuity of operations',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
203
  ]
204
- embeddings = model.encode(sentences)
205
- print(embeddings.shape)
206
- # [3, 1024]
207
-
208
- # Get the similarity scores for the embeddings
209
- similarities = model.similarity(embeddings, embeddings)
210
- print(similarities.shape)
211
- # [3, 3]
 
 
 
212
  ```
 
 
 
 
 
 
213
 
214
  <!--
215
  ### Direct Usage (Transformers)
 
10
  widget:
11
  - source_sentence: 系统管理员技术员——TS/SCI级别并拥有多项式验证
12
  sentences:
13
+ - >-
14
+ support development of annual budget, create a financial report, report
15
+ analysis results, Microsoft Access, accounting, use presentation software,
16
+ interpret financial statements, synthesise financial information, develop
17
+ vaccines, handle financial overviews of the store, produce statistical
18
+ financial records, develop financial statistics reports, explain accounting
19
+ records, financial analysis, SAP R3, represent the company, examine budgets,
20
+ prepare presentation material, use spreadsheets software, forecast account
21
+ metrics, meet deadlines, prepare financial projections, manage budgets,
22
+ exercise self-control, financial statements
23
+ - >-
24
+ ensure cross-department cooperation, establish customer rapport, improve
25
+ business processes, manage technical security systems, handle incidents,
26
+ maintain ICT system, explain characteristics of computer peripheral
27
+ equipment, gather technical information, collaborate in company's daily
28
+ operations , apply change management, maintain technical equipment,
29
+ communicate with customers, solve technical problems, perform ICT
30
+ troubleshooting, use ICT equipment in maintenance activities, manage major
31
+ incidents, build business relationships, computer engineering, perform
32
+ software recovery testing, identify process improvements, maintain
33
+ relationship with customers, carry out project activities, collaborate in
34
+ the development of marketing strategies, computer technology, technical
35
+ terminology
36
+ - >-
37
+ utilise machine learning, cloud technologies, develop predictive models,
38
+ assess sportive performance, formulate findings , principles of artificial
39
+ intelligence, perform business research, communicate with stakeholders,
40
+ computer engineering, build predictive models, computer science, develop
41
+ automated software tests, analyse business objectives, Agile development,
42
+ cloud monitoring and reporting, provide written content, obtain relevant
43
+ licenses, design prototypes, machine learning, e-learning software
44
+ infrastructure, analyse education system, disseminate results to the
45
+ scientific community, learning technologies, ML (computer programming), task
46
+ algorithmisation
47
  - source_sentence: 安全运营官
48
  sentences:
49
+ - >-
50
+ deliver outstanding service, manage carriers, direct customers to
51
+ merchandise, improve customer interaction, manage time, support managers,
52
+ assist customers, process customer orders, manage customer service, satisfy
53
+ customers, guarantee customer satisfaction, respond to customers' inquiries
54
+ - >-
55
+ manage several projects, implement operational business plans, identify
56
+ improvement actions, develop strategy to solve problems, manage website,
57
+ carry out project activities, follow reporting procedures, supervise site
58
+ maintenance, adjust priorities, schedule shifts, conduct public
59
+ presentations, motivate others, manage operational budgets, report to the
60
+ team leader, encourage teams for continuous improvement, lead the
61
+ sustainability reporting process, implement sustainable procurement, show an
62
+ exemplary leading role in an organisation, manage manufacturing facilities,
63
+ develop training programmes, develop production line, supply chain
64
+ management, leadership principles, lead a team, coaching techniques
65
+ - >-
66
+ provide emergency supplies, provide first aid, liaise with security
67
+ authorities, apply medical first aid in case of emergency, regulate traffic,
68
+ train security officers, maintain physical fitness, provide protective
69
+ escort, ensure public safety and security, ensure inspections of facilities,
70
+ work in inclement conditions, follow procedures in the event of an alarm,
71
+ set safety and security standards, comply with the principles of
72
+ self-defence, present reports, maintain facility security systems, conduct
73
+ security screenings, types of evaluation , monitor security measures, office
74
+ equipment, escort pedestrians across streets, advise on security staff
75
+ selection, wear appropriate protective gear, work in outdoor conditions,
76
  assist emergency services
77
  - source_sentence: Empleado de control de COVID
78
  sentences:
79
+ - >-
80
+ maintain records of clients' prescriptions, assist people in contaminated
81
+ areas, label samples, maintain museum records, apply social distancing
82
+ protocols, collect biological samples from patients, infection control,
83
+ label medical laboratory samples, disinfect surfaces, maintain customer
84
+ records, ensure health and safety of staff, personal protective equipment,
85
+ remove contaminated materials, store contaminated materials, prepare
86
+ prescription labels, use personal protection equipment
87
+ - >-
88
+ promote organisational communication, provide legal advice, human resource
89
+ management, company policies, perform customer management, business
90
+ processes, ensure compliance with legal requirements, develop communications
91
+ strategies, enforce company values, develop outreach training plans, use
92
+ consulting techniques, develop employment policies, human resources
93
+ department processes, personnel management, identify training needs,
94
+ participate in health personnel training, health and safety in the
95
+ workplace, lead police investigations, ensure compliance with policies,
96
+ prepare compliance documents, perform internal investigations, develop
97
+ employee retention programs, develop corporate training programmes, customer
98
+ relationship management, manage localisation
99
+ - >-
100
+ perform escalation procedure, imprint visionary aspirations into the
101
+ business management, observe confidentiality, impart business plans to
102
+ collaborators, lead a team, human resources department processes, respect
103
+ confidentiality obligations, hire human resources, manage commercial risks,
104
+ develop business plans, communicate with stakeholders, maintain relationship
105
+ with customers, manage several projects, provide improvement strategies,
106
+ manage technical security systems, knowledge management, risk management,
107
+ develop program ideas, perform project management, project management, cope
108
+ with uncertainty, address identified risks, provide performance feedback,
109
  information confidentiality, track key performance indicators
110
  - source_sentence: Aerie - Brand Ambassador (Sales Associate) - US
111
  sentences:
112
+ - >-
113
+ lay bricks, provide first aid, enforce park rules, conflict management, give
114
+ swimming lessons, assist in performing physical exercises, perform park
115
+ safety inspections, assist in the movement of heavy loads, lead a team,
116
+ first aid, supervise pool activities, swim, coach staff for running the
117
+ performance, show an exemplary leading role in an organisation, teach public
118
+ speaking principles, collaborate with coaching team, supervise work,
119
+ calculate stairs rise and run, calculate compensation payments, manage a
120
+ team, information confidentiality
121
+ - >-
122
+ react to events in time-critical environments, operate in a specific field
123
+ of nursing care, clinical science, promote healthy fitness environment, lead
124
+ others, comply with legislation related to health care, maintain a safe,
125
+ hygienic and secure working environment, provide healthcare services to
126
+ patients in specialised medicine, write English, conduct physical
127
+ examinations, leadership principles, use clinical assessment techniques,
128
+ apply context specific clinical competences, conduct health related
129
+ research, conceptualise healthcare user’s needs, assessment processes,
130
+ communicate in healthcare, provide professional care in nursing, nursing
131
+ science, promote health and safety, implement policy in healthcare
132
+ practices, engage with stakeholders, identify problems, respond to changing
133
+ situations in health care, perform resource planning
134
+ - >-
135
+ ensure the privacy of guests, provide customised products, company policies,
136
+ exude enthusiasm during the action sessions, provide customer guidance on
137
+ product selection, collect briefing regarding products, perform multiple
138
+ tasks at the same time, create solutions to problems, respond to visitor
139
+ complaints
140
  - source_sentence: 医师——危重症护理——重症监护专家——项目医务总监
141
  sentences:
142
+ - >-
143
+ handle incidents, provide technical documentation, coordinate operational
144
+ activities, ensure information security, work in teams, manage manufacturing
145
+ documentation, project configuration management, operate call distribution
146
+ system, maintain computer hardware, apply change management, manage aircraft
147
+ support systems, perform escalation procedure, manage production
148
+ changeovers, maintenance operations, call-centre technologies, manage
149
+ service contracts in the drilling industry, encourage teambuilding, manage
150
+ major incidents, resolve equipment malfunctions, work independently, think
151
+ analytically, manage maintenance operations, maintain plan for continuity of
152
+ operations
153
+ - >-
154
+ develop recycling programs, receive actors' resumes, work in cold
155
+ environments, perform cleaning duties, operate floor cleaning equipment,
156
+ operate forklift
157
+ - >-
158
+ perform technical tasks with great care, supervise medical residents, manage
159
+ a multidisciplinary team involved in patient care, administrative tasks in a
160
+ medical environment, demonstrate technical skills during neurological
161
+ surgery, apply problem solving in social service, intensive care medicine,
162
+ provide comprehensive care for patients with surgical conditions, work in
163
+ teams, solve problems
164
  pipeline_tag: sentence-similarity
165
  library_name: sentence-transformers
166
  co2_eq_emissions:
 
173
  ram_total_size: 83.47684860229492
174
  hours_used: 5.34
175
  hardware_used: 1 x NVIDIA A100-SXM4-40GB
176
+ license: mit
177
+ language:
178
+ - en
179
+ - es
180
+ - de
181
+ - zh
182
  ---
183
 
184
  # SentenceTransformer based on sentence-transformers/paraphrase-multilingual-mpnet-base-v2
 
226
  pip install -U sentence-transformers
227
  ```
228
 
229
+ Then you can load and use the model with the following code:
230
  ```python
231
+ import torch
232
+ import numpy as np
233
+ from tqdm.auto import tqdm
234
  from sentence_transformers import SentenceTransformer
235
+ from sentence_transformers.util import batch_to_device, cos_sim
236
 
237
+ # Load the model
238
  model = SentenceTransformer("TechWolf/JobBERT-v3")
239
+
240
+ def encode_batch(jobbert_model, texts):
241
+ features = jobbert_model.tokenize(texts)
242
+ features = batch_to_device(features, jobbert_model.device)
243
+ features["text_keys"] = ["anchor"]
244
+ with torch.no_grad():
245
+ out_features = jobbert_model.forward(features)
246
+ return out_features["sentence_embedding"].cpu().numpy()
247
+
248
+ def encode(jobbert_model, texts, batch_size: int = 8):
249
+ # Sort texts by length and keep track of original indices
250
+ sorted_indices = np.argsort([len(text) for text in texts])
251
+ sorted_texts = [texts[i] for i in sorted_indices]
252
+
253
+ embeddings = []
254
+
255
+ # Encode in batches
256
+ for i in tqdm(range(0, len(sorted_texts), batch_size)):
257
+ batch = sorted_texts[i:i+batch_size]
258
+ embeddings.append(encode_batch(jobbert_model, batch))
259
+
260
+ # Concatenate embeddings and reorder to original indices
261
+ sorted_embeddings = np.concatenate(embeddings)
262
+ original_order = np.argsort(sorted_indices)
263
+ return sorted_embeddings[original_order]
264
+
265
+ # Example usage
266
+ job_titles = [
267
+ 'Software Engineer',
268
+ '高级软件开发人员', # senior software developer
269
+ 'Produktmanager', # product manager
270
+ 'Científica de datos' # data scientist
271
  ]
272
+
273
+ # Get embeddings
274
+ embeddings = encode(model, job_titles)
275
+
276
+ # Calculate cosine similarity matrix
277
+ similarities = cos_sim(embeddings, embeddings)
278
+ print(similarities)
279
+ ```
280
+
281
+ The output will be a similarity matrix where each value represents the cosine similarity between two job titles:
282
+
283
  ```
284
+ tensor([[1.0000, 0.8087, 0.4673, 0.5669],
285
+ [0.8087, 1.0000, 0.4428, 0.4968],
286
+ [0.4673, 0.4428, 1.0000, 0.4292],
287
+ [0.5669, 0.4968, 0.4292, 1.0000]])
288
+ ```
289
+
290
 
291
  <!--
292
  ### Direct Usage (Transformers)