Deep Learning based Questions Answering package
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file quesans-0.0.1.tar.gz
.
File metadata
- Download URL: quesans-0.0.1.tar.gz
- Upload date:
- Size: 49.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35a62ce1b296bab652b5c1d47ec8a1c9ea461b5accbcba8f3d9f0cbbe17e7b7e |
|
MD5 | cafabf643da1bcf37fc77e933a7d2955 |
|
BLAKE2b-256 | 1e9eded2e85c2707051ede49ac38d9bd00918675854336aa1f1305ce3a625281 |
File details
Details for the file quesans-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: quesans-0.0.1-py3-none-any.whl
- Upload date:
- Size: 55.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | caa238ab3130a59ca476d715a2642d9d6076c8e75bf88948ce16e575bef30b41 |
|
MD5 | 2a749021e8fdec8f41eb732d07dcc9c1 |
|
BLAKE2b-256 | d8009ce24b22232526670410d17d977d78e67b18598ccdd24947705760ebb2b5 |