Leandra Budau
Create README
5f45995 verified
raw
history blame contribute delete
689 Bytes
# BioGPT-BQF-Title-Small
Fine-tuned BioGPT for Biomedical Boolean Query Formalization using Titles only.
## Model Details
- Base Model: BioGPT
- Fine-tuned on: CLEF TAR, FASS datasets
- Task: Boolean Query Generation for PubMed searches
## How to Use
```python
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("your_username/BioGPT-BQF-Title-Small")
tokenizer = AutoTokenizer.from_pretrained("your_username/BioGPT-BQF-Title-Small")
input_text = "Best treatments for lung cancer"
inputs = tokenizer(input_text, return_tensors="pt")
outputs = model.generate(**inputs)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))