File size: 2,107 Bytes
a78e602 51001af a78e602 51001af a78e602 51001af a78e602 51001af a78e602 51001af f2ad7d2 a78e602 88bca53 51001af 88bca53 51001af a78e602 51001af a78e602 51001af 88bca53 a78e602 51001af a78e602 51001af a78e602 51001af a78e602 51001af a78e602 51001af a78e602 51001af a78e602 51001af a78e602 51001af a78e602 51001af |
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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
---
license: apache-2.0
pipeline_tag: text-generation
tags:
- transformers
- text-generation
- english
- quran
- islamic
- religious-texts
- question-answering
- safetensors
- t5
language:
- en
library_name: transformers
widget:
- text: What is Islam?
example_title: Basic Question
- text: Tell me about the five pillars of Islam
example_title: Islamic Concepts
- text: Explain the significance of prayer in Islam
example_title: Religious Practice
inference: true
---
# QuranPlus - English Language Islamic Q&A Model
This model is fine-tuned to answer questions about Islam and the Quran in **English**. While it has knowledge of Arabic religious texts and can reference them, it primarily operates in English for both input and output.
## Model Details
- **Primary Language**: English
- **Model Type**: T5 (Text-to-Text Transfer Transformer)
- **Task**: Question Answering about Islamic topics
- **Input**: English questions about Islam, Quran, and Islamic teachings
- **Output**: English responses with references to Islamic texts
## Usage
You can ask questions in English and receive answers in English:
```python
from transformers import T5ForConditionalGeneration, T5Tokenizer
model = T5ForConditionalGeneration.from_pretrained("justdeen/QuranPlus")
tokenizer = T5Tokenizer.from_pretrained("justdeen/QuranPlus")
# Ask questions in English
question = "What is the importance of charity in Islam?"
inputs = tokenizer(question, return_tensors="pt", max_length=512, truncation=True)
outputs = model.generate(**inputs, max_length=150)
answer = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(answer)
```
## Example Questions
- "What is Islam?"
- "Tell me about the five pillars of Islam"
- "What does the Quran say about kindness?"
- "Explain the concept of Tawheed"
- "What is the significance of Ramadan?"
## Note
While this model may reference Arabic terms and texts, it is designed to:
- Accept questions in English
- Provide responses in English
- Explain Islamic concepts in English
The model has been trained to make Islamic knowledge accessible to English speakers.
|