Skip to main content

QuestionAnswering : Qur'an Question Answering with Transformers

Transformers based approach for question answering in Qur'an which employs transfer-learning, ensemble-learning across multiple models.

Installation

You first need to install Java for the evaluation script which uses farasapy and the desired version is Java8. Please refer Oracle installation guide for more details on installing JDK for different platforms.

Then you need to install PyTorch. The recommended PyTorch version is 1.11.0 Please refer to PyTorch installation page for more details specifically for the platforms.

When PyTorch has been installed, you can install requirements from source by cloning the repository and running:

git clone https://github.com/DamithDR/QuestionAnswering.git
cd QuestionAnswering
pip install -r requirements.txt

Experiment Results

You can easily run experiments using following command and altering the parameters as you wish

python -m examples.arabic.quran.quran_question_answering --n_fold=1 --transfer_learning=False --self_ensemble=False --models=camelmix,arabert

Parameters

Please find the detailed descriptions of the parameters

n_fold              : Number of executions expected before self ensemble
transfer_learning   : On/Off transfer learning
self_ensemble       : On/Off self ensembling
models              : comma seperated model tags

Model Tags

arabert             : aubmindlab/bert-base-arabertv2
mbertcased          : bert-base-multilingual-cased
mbertuncased        : bert-base-multilingual-uncased
camelmix            : CAMeL-Lab/bert-base-arabic-camelbert-mix
camelca             : CAMeL-Lab/bert-base-arabic-camelbert-ca
araelectradisc      : aubmindlab/araelectra-base-discriminator
araelectragen       : aubmindlab/araelectra-base-generator

Metadata

Release files for quesans 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for quesans 0.0.1
File Size Uploaded Provenance Actions
quesans-0.0.1.tar.gz 49.7 kB Without provenance Details for quesans-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for quesans 0.0.1
File Interpreter ABI Platform Actions
quesans-0.0.1-py3-none-any.whl Python 3 none any Details for quesans-0.0.1-py3-none-any.whl

Total release size: 105.4 kB

Release files / quesans-0.0.1.tar.gz

Download URL quesans-0.0.1.tar.gz
Size 49.7 kB
Tags Source
SHA-256 checksum
How to use checksums
35a62ce1b296bab652b5c1d47ec8a1c9ea461b5accbcba8f3d9f0cbbe17e7b7e
BLAKE2b-256 checksum
How to use checksums
1e9eded2e85c2707051ede49ac38d9bd00918675854336aa1f1305ce3a625281
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.4

Release files / quesans-0.0.1-py3-none-any.whl

Download URL quesans-0.0.1-py3-none-any.whl
Size 55.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
caa238ab3130a59ca476d715a2642d9d6076c8e75bf88948ce16e575bef30b41
BLAKE2b-256 checksum
How to use checksums
d8009ce24b22232526670410d17d977d78e67b18598ccdd24947705760ebb2b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.4

Security for quesans 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page