Embedding Extraction for Arabic Text Using the AraBERT Model
Source abstract
Abstract
Nowadays, we can use the multi-task learning approach to train a machine-learning algorithm to learn multiple related tasks instead of training it to solve a single task. In this work, we propose an algorithm for estimating textual similarity scores and then use these scores in multiple tasks such as text ranking, essay grading, and question answering systems. We used several vectorization schemes to represent the Arabic texts in the SemEval2017-task3-subtask-D dataset. The used schemes include lexical-based similarity features, frequency-based features, and pre-trained model-based features. Also, we used contextual-based embedding models such as Arabic Bidirectional Encoder Representations from Transformers (AraBERT). We used the AraBERT model in two different variants. First, as a feature extractor in addition to the text vectorization schemes’ features. We fed those features to various regression models to make a prediction value that represents the relevancy score between Arabic text units. Second, AraBERT is adopted as a pre-trained model, and its parameters are fine-tuned to estimate the relevancy scores between Arabic textual sentences. To evaluate the research results, we conducted several experiments to compare the use of the AraBERT model in its two variants. In terms of Mean Absolute Percentage Error (MAPE), the results show minor variance between AraBERT v0.2 as a feature extractor (21.7723) and the fine-tuned AraBERT v2 (21.8211). On the other hand, AraBERT v0.2-Large as a feature extractor outperforms the fine-tuned AraBERT v2 model on the used data set in terms of the coefficient of determination () values (0.014050,−0.032861), respectively.
Source: openalex_inverted_index · Quality: baseline
Research context
OpenAlex topics: Topic Modeling · Natural Language Processing Techniques · Text and Document Classification Technologies
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
References (44)
Show source-provided references
1. Textual similarity measurement approaches: A survey (1)
2. A survey of text similarity approaches10.5120/11638-7118 ↗
3. Word representations in vector space and their applications for arabic
4. Brownlee · Deep Learning with Python: Develop Deep Learning Models on Theano and Tensorow Using Keras · 2016
5. Part of speech based term weighting for information retrieval
6. Jurafsky · Speech and Language Processing · 2009 · 3 · 189
7. Distributed representations of words and phrases and their compositionality
8. Distributed representations of sentences and documents
9. Learning word vectors for 157 languages
10. GloVe: Global vectors for word representation
11. AraVec: A set of arabic word embedding models for use in arabic NLP10.1016/j.procs.2017.10.117 ↗
12. Deep contextualized word representations
13. Universal language model fine-tuning for text classification
14. BERT: Pre-training of deep bidirectional transformers for language understanding
15. How multilingual is multilingual BERT?
16. AraBERT: Transformer-based model for arabic language understanding
17. Analysis on the use of Latent Semantic Indexing (LSI) for document classification and retrieval system of PNP files
18. Graph-based text representation and matching: A review of the state of the art and future challenges10.1109/ACCESS.2020.2993191 ↗
19. A semantic approach to post-retrieval query performance prediction10.1016/j.ipm.2021.102746 ↗
20. A probabilistic framework for integrating sentence-level semantics via BERT into pseudo-relevance feedback10.1016/j.ipm.2021.102734 ↗
21. Evaluating SIAMESE architecture neural models for Arabic textual similarity and plagiarism detection
22. A Multi-embeddings approach coupled with deep learning for arabic named entity recognition
23. Contextual semantic embeddings based on fine-tuned AraBERT model for arabic text multi-class categorization
24. Quranic verses semantic relatedness using AraBERT
25. AraBERT and Farasa segmentation based approach for sarcasm and sentiment detection in Arabic tweets
26. SemEval-2016 Task 3: Community question answering
27. T. Zerrouki, “Tashaphyne, Arabic light stemmer.” 2012, [Online]. Available: https://pypi.python.org/pypi/Tashaphyne/0.2.
28. Farasa: A new fast and accurate Arabic word segmenter
29. NLTK: The natural language toolkit
30. A novel root based arabic stemmer10.1016/j.jksuci.2014.04.001 ↗
31. The longest common subsequence problem revisited10.1007/BF01840365 ↗
32. A. F. Gad, “Implementing the levenshtein distance in python,” Paperspace Blog, 2019. [Online]. Available: https://blog.paperspace.com/implementing-levenshtein-distance-word-autocomplete-autocorrect/ (accessed Oct. 22, 2021).
33. Feature extraction
34. Software framework for topic modelling with large corpora
35. A simple but tough-to-beat baseline for sentence embeddings
36. XGBoost: A scalable tree boosting system
37. Scikit-learn: Machine learning in python
38. Adam: A method for stochastic optimization
39. Andreas · Introduction to Machine Learning with Python: A Guide for Data Scientists · 2016 · 5
40. R. Al-Rfou, G. Alain, A. Almahairi, C. Angermueller, D. Bahdanau et al., “Theano: A python framework for fast computation of mathematical expressions,” arXiv e-prints, vol. abs/1605.0, May 2016, [Online]. Available: http://arxiv.org/abs/1605.02688.
41. Composable multi-threading for python libraries10.25080/Majora-629e541a-002 ↗
42. A. Astori, “Concurrency and parallelism in python,” Towards Data Science, Apr. 2021. [Online]. Available: https://towardsdatascience.com/concurrency-and-parallelism-in-python-bbd7af8c6625 (accessed Oct. 22, 2021).
43. S. Raschka, “An introduction to parallel programming using Python's multiprocessing module–using Python's multiprocessing module,” sebastianraschka.com, Jun. 2014. [Online]. Available: https://sebastianraschka.com/Articles/2014_multiprocessing.html (accessed Junuary. 3, 2022).
44. Swamidass · Encyclopedia of Production and Manufacturing Management · 2000 · 462