pascalhuerten commited on
Commit
a7fea0d
1 Parent(s): b80b802

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +29 -3
README.md CHANGED
@@ -1,3 +1,29 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ ---
4
+
5
+ # isy-thl/bge-reranker-base-course-skill-tuned
6
+
7
+ ## Overview
8
+
9
+ This model is a finetuning of BAAI/bge-reranker-base on a German dataset containing positive and negative skill labels and learning outcomes of courses as the query. The model is trained to perform well on calculating relevance scores for learning outcome and esco skill pairs in German language.
10
+
11
+ ## Using FlagEmbedding
12
+
13
+ ```
14
+ pip install -U FlagEmbedding
15
+ ```
16
+
17
+ Get relevance scores (higher scores indicate more relevance):
18
+ ```python
19
+ from FlagEmbedding import FlagReranker
20
+ reranker = FlagReranker('isy-thl/bge-reranker-base-course-skill-tuned', use_fp16=True) # Setting use_fp16 to True speeds up computation with a slight performance degradation
21
+
22
+ scores = reranker.compute_score([['Einführung in die Arbeitsweise von WordPress', 'WordPress'], ['Einführung in die Arbeitsweise von WordPress', 'Software für Content-Management-Systeme nutzen'], ['Einführung in die Arbeitsweise von WordPress', 'Website-Sichtbarkeit erhöhen']])
23
+ print(scores)
24
+ ```
25
+
26
+ The resulting scores can be normalized using a sigmoid function
27
+ ```python
28
+ score = 1 / (1 + math.exp(-score))
29
+ ```