Leandra Budau commited on
Commit
462345b
·
verified ·
1 Parent(s): 6c61f12

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +21 -20
README.md CHANGED
@@ -1,23 +1,3 @@
1
- # BioGPT-BQF-Title-Small
2
- Fine-tuned BioGPT for Biomedical Boolean Query Formalization using Titles only.
3
-
4
- ## Model Details
5
- - Base Model: BioGPT
6
- - Fine-tuned on: CLEF TAR, FASS datasets
7
- - Task: Boolean Query Generation for PubMed searches
8
-
9
- ## How to Use
10
- ```python
11
- from transformers import AutoModelForCausalLM, AutoTokenizer
12
-
13
- model = AutoModelForCausalLM.from_pretrained("your_username/BioGPT-BQF-Title-Small")
14
- tokenizer = AutoTokenizer.from_pretrained("your_username/BioGPT-BQF-Title-Small")
15
-
16
- input_text = "Best treatments for lung cancer"
17
- inputs = tokenizer(input_text, return_tensors="pt")
18
- outputs = model.generate(**inputs)
19
- print(tokenizer.decode(outputs[0], skip_special_tokens=True))
20
-
21
  ---
22
  tags:
23
  - biogpt
@@ -37,11 +17,32 @@ model-index:
37
  type: biomedical
38
  metrics:
39
  - name: Precision @100
 
40
  value: 0.14
41
  - name: Recall @1000
 
42
  value: 0.21
43
  - name: MAP Score
 
44
  value: 0.25
45
  ---
46
 
47
  # BioGPT-BQF-Title-Small
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  tags:
3
  - biogpt
 
17
  type: biomedical
18
  metrics:
19
  - name: Precision @100
20
+ type: precision
21
  value: 0.14
22
  - name: Recall @1000
23
+ type: recall
24
  value: 0.21
25
  - name: MAP Score
26
+ type: mean_average_precision
27
  value: 0.25
28
  ---
29
 
30
  # BioGPT-BQF-Title-Small
31
+ Fine-tuned BioGPT for Biomedical Boolean Query Formalization using Titles only.
32
+
33
+ ## Model Details
34
+ - Base Model: BioGPT
35
+ - Fine-tuned on: CLEF TAR, FASS datasets
36
+ - Task: Boolean Query Generation for PubMed searches
37
+
38
+ ## How to Use
39
+ ```python
40
+ from transformers import AutoModelForCausalLM, AutoTokenizer
41
+
42
+ model = AutoModelForCausalLM.from_pretrained("your_username/BioGPT-BQF-Title-Small")
43
+ tokenizer = AutoTokenizer.from_pretrained("your_username/BioGPT-BQF-Title-Small")
44
+
45
+ input_text = "Best treatments for lung cancer"
46
+ inputs = tokenizer(input_text, return_tensors="pt")
47
+ outputs = model.generate(**inputs)
48
+ print(tokenizer.decode(outputs[0], skip_special_tokens=True))