{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "\n", "\n", "\n", "\n", "---\n", "\n", "To get started: consult [start](start.ipynb)\n", "\n", "---\n", "\n", "# Export to Excel\n", "\n", "In a notebook, you can perform searches and view them in a tabular display and zoom in on items with\n", "pretty displays.\n", "\n", "But there are times that you want to take your results outside Text-Fabric, outside a notebook, outside Python, and just\n", "work with them in other programs, such as Excel.\n", "\n", "You want to do that not only with query results, but with all kinds of lists of tuples of nodes.\n", "\n", "There is a function for that, `A.export()`, and here we show what it can do." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "%load_ext autoreload\n", "%autoreload 2" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "ExecuteTime": { "end_time": "2018-05-24T10:06:39.818664Z", "start_time": "2018-05-24T10:06:39.796588Z" } }, "outputs": [], "source": [ "import os\n", "from tf.app import use" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/html": [ "TF-app: ~/text-fabric-data/q-ran/quran/app" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "data: ~/text-fabric-data/q-ran/quran/tf/0.4" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stdout", "output_type": "stream", "text": [ "This is Text-Fabric 9.2.3\n", "Api reference : https://annotation.github.io/text-fabric/tf/cheatsheet.html\n", "\n", "40 features found and 0 ignored\n" ] }, { "data": { "text/html": [ "Text-Fabric: Text-Fabric API 9.2.3, q-ran/quran/app v3, Search Reference
Data: QURAN, Character table, Feature docs
Features:
\n", "
Quran\n", "
\n", "\n", "
\n", "
\n", "a\n", "
\n", "
str
\n", "
\n", " not yet understood\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "ascii\n", "
\n", "
str
\n", "
\n", " transliterated text of word\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "ax\n", "
\n", "
str
\n", "
\n", " not yet understood\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "case\n", "
\n", "
str
\n", "
\n", " case of word\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "component\n", "
\n", "
str
\n", "
\n", " role of the word in its word group (prefix, main, or suffix)\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "definite\n", "
\n", "
int
\n", "
\n", " whether the word is definite\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "f\n", "
\n", "
str
\n", "
\n", " not yet understood\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "formation\n", "
\n", "
str
\n", "
\n", " stem formation of verb\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "fx\n", "
\n", "
str
\n", "
\n", " not yet understood\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "gn\n", "
\n", "
str
\n", "
\n", " gender of word (masculine, feminine)\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "interjection\n", "
\n", "
str
\n", "
\n", " kind of interjection\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "l\n", "
\n", "
str
\n", "
\n", " not yet understood\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "lemma\n", "
\n", "
str
\n", "
\n", " lemma of word\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "lx\n", "
\n", "
str
\n", "
\n", " not yet understood\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "mood\n", "
\n", "
str
\n", "
\n", " mood of a verb (subj, jus, ...)\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "n\n", "
\n", "
str
\n", "
\n", " not yet understood\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "name\n", "
\n", "
str
\n", "
\n", " Name of sura in Arabic\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
language:
\n", "
arabic
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "name@ll\n", "
\n", "
str
\n", "
\n", " Name of sura in English\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
language:
\n", "
english
\n", "
\n", "\n", "
\n", "
languageCode:
\n", "
en
\n", "
\n", "\n", "
\n", "
languageEnglish:
\n", "
English
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "nameAscii\n", "
\n", "
str
\n", "
\n", " Name of sura in Arabic, transliterated\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
language:
\n", "
arabic
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "nameTrans\n", "
\n", "
str
\n", "
\n", " Name of sura in Arabic, transcribed\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
language:
\n", "
arabic
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "nu\n", "
\n", "
str
\n", "
\n", " number of word (singular, dual, plural)\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "number\n", "
\n", "
int
\n", "
\n", " Number of sura, aya, word group, or word\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:56Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "order\n", "
\n", "
int
\n", "
\n", " ordinal number of sura\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:56Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "otype\n", "
\n", "
str
\n", "
\n", " Quran: plain text plus morphological annotations at the word level\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:56Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "pos\n", "
\n", "
str
\n", "
\n", " part-of-speech of word, main class\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:56Z
\n", "
\n", "\n", "
\n", "
documentation:
\n", "
http://corpus.quran.com/documentation/tagset.jsp
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "posx\n", "
\n", "
str
\n", "
\n", " part-of-speech of word, refined class\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:56Z
\n", "
\n", "\n", "
\n", "
documentation:
\n", "
http://corpus.quran.com/documentation/tagset.jsp
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "ps\n", "
\n", "
str
\n", "
\n", " person of word (1st, 2nd, 3rd)\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:56Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "root\n", "
\n", "
str
\n", "
\n", " root of word\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:56Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "sp\n", "
\n", "
str
\n", "
\n", " not yet understood\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:56Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "space\n", "
\n", "
str
\n", "
\n", " material between this word and the next\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:56Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "tense\n", "
\n", "
str
\n", "
\n", " tense of a verb (perfect, imperfect, ...)\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:56Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "translation@ll\n", "
\n", "
str
\n", "
\n", " english translation of whole aya\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:56Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
translator:
\n", "
Arthur Arberry (1955), https://en.wikipedia.org/wiki/Arthur_John_Arberry
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "type\n", "
\n", "
str
\n", "
\n", " type of sura\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:56Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "unicode\n", "
\n", "
str
\n", "
\n", " unicode arabic text of word\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:56Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "voice\n", "
\n", "
str
\n", "
\n", " voice of a verb (active, passive)\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:57Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "w\n", "
\n", "
str
\n", "
\n", " not yet understood\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:57Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "wx\n", "
\n", "
str
\n", "
\n", " not yet understood\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:57Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "oslots\n", "
\n", "
none
\n", "
\n", " Quran: plain text plus morphological annotations at the word level\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:57Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "\n", "\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
Text-Fabric API: names N F E L T S C TF directly usable

" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A = use(\"q-ran/quran\", hoist=globals())\n", "# A = use('q-ran/quran', hoist=globals())" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Inspect the contents of a file\n", "We write a function that can peek into file on your system, and show the first few lines.\n", "We'll use it to inspect the exported files that we are going to produce." ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [], "source": [ "EXPORT_FILE = os.path.expanduser(\"~/Downloads/results.tsv\")\n", "UPTO = 10\n", "\n", "\n", "def checkout():\n", " with open(EXPORT_FILE, encoding=\"utf_16\") as fh:\n", " for (i, line) in enumerate(fh):\n", " if i >= UPTO:\n", " break\n", " print(line)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Encoding\n", "\n", "Our exported `.tsv` files open in Excel without hassle, even if they contain non-latin characters.\n", "That is because TF writes such files in an\n", "encoding that works well with Excel: `utf_16_le`.\n", "You can just open them in Excel, there is no need for conversion before or after opening these files.\n", "\n", "Should you want to process these files by means of a (Python) program,\n", "take care to read them with encoding `utf_16`." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Example query\n", "\n", "We first run a query in order to export the results." ] }, { "cell_type": "code", "execution_count": 5, "metadata": { "ExecuteTime": { "end_time": "2018-05-24T07:46:55.998382Z", "start_time": "2018-05-24T07:46:55.137956Z" } }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ " 0.30s 529 results\n" ] } ], "source": [ "query = \"\"\"\n", "aya\n", " word pos=verb\n", " <: word pos=noun posx=proper root=Alh\n", " <: word\n", "\"\"\"\n", "results = A.search(query)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Bare export\n", "\n", "You can export the table of results to Excel.\n", "\n", "The following command writes a tab-separated file `results.tsv` to your downloads directory.\n", "\n", "You can specify arguments `toDir=directory` and `toFile=file name` to write to a different file.\n", "If the directory does not exist, it will be created.\n", "\n", "We stick to the default, however." ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [], "source": [ "A.export(results)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Check out the contents:" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "R\tS1\tS2\tNODE1\tTYPE1\tTEXT1\tNODE2\tTYPE2\tTEXT2\tpos2\tNODE3\tTYPE3\tTEXT3\tpos3\tposx3\troot3\tNODE4\tTYPE4\tTEXT4\n", "\n", "1\t2\t7\t128233\taya\tخَتَمَ ٱللَّهُ عَلَىٰ قُلُوبِهِمْ وَعَلَىٰ سَمْعِهِمْ وَعَلَىٰٓ أَبْصَٰرِهِمْ غِشَٰوَةٌ وَلَهُمْ عَذَابٌ عَظِيمٌ\t131\tword\tخَتَمَ \tverb\t132\tword\tٱللَّهُ \tnoun\tproper\tAlh\t133\tword\tعَلَىٰ \n", "\n", "2\t2\t17\t128243\taya\tمَثَلُهُمْ كَمَثَلِ ٱلَّذِى ٱسْتَوْقَدَ نَارًا فَلَمَّآ أَضَآءَتْ مَا حَوْلَهُۥ ذَهَبَ ٱللَّهُ بِنُورِهِمْ وَتَرَكَهُمْ فِى ظُلُمَٰتٍ لَّا يُبْصِرُونَ\t341\tword\tذَهَبَ \tverb\t342\tword\tٱللَّهُ \tnoun\tproper\tAlh\t343\tword\tبِ\n", "\n", "3\t2\t20\t128246\taya\tيَكَادُ ٱلْبَرْقُ يَخْطَفُ أَبْصَٰرَهُمْ كُلَّمَآ أَضَآءَ لَهُم مَّشَوْا۟ فِيهِ وَإِذَآ أَظْلَمَ عَلَيْهِمْ قَامُوا۟ وَلَوْ شَآءَ ٱللَّهُ لَذَهَبَ بِسَمْعِهِمْ وَأَبْصَٰرِهِمْ إِنَّ ٱللَّهَ عَلَىٰ كُلِّ شَىْءٍ قَدِيرٌ\t417\tword\tشَآءَ \tverb\t418\tword\tٱللَّهُ \tnoun\tproper\tAlh\t419\tword\tلَ\n", "\n", "4\t2\t26\t128252\taya\tإِنَّ ٱللَّهَ لَا يَسْتَحْىِۦٓ أَن يَضْرِبَ مَثَلًا مَّا بَعُوضَةً فَمَا فَوْقَهَا فَأَمَّا ٱلَّذِينَ ءَامَنُوا۟ فَيَعْلَمُونَ أَنَّهُ ٱلْحَقُّ مِن رَّبِّهِمْ وَأَمَّا ٱلَّذِينَ كَفَرُوا۟ فَيَقُولُونَ مَاذَآ أَرَادَ ٱللَّهُ بِهَٰذَا مَثَلًا يُضِلُّ بِهِۦ كَثِيرًا وَيَهْدِى بِهِۦ كَثِيرًا وَمَا يُضِلُّ بِهِۦٓ إِلَّا ٱلْفَٰسِقِينَ\t641\tword\tأَرَادَ \tverb\t642\tword\tٱللَّهُ \tnoun\tproper\tAlh\t643\tword\tبِ\n", "\n", "5\t2\t27\t128253\taya\tٱلَّذِينَ يَنقُضُونَ عَهْدَ ٱللَّهِ مِنۢ بَعْدِ مِيثَٰقِهِۦ وَيَقْطَعُونَ مَآ أَمَرَ ٱللَّهُ بِهِۦٓ أَن يُوصَلَ وَيُفْسِدُونَ فِى ٱلْأَرْضِ أُو۟لَٰٓئِكَ هُمُ ٱلْخَٰسِرُونَ\t676\tword\tأَمَرَ \tverb\t677\tword\tٱللَّهُ \tnoun\tproper\tAlh\t678\tword\tبِ\n", "\n", "6\t2\t55\t128281\taya\tوَإِذْ قُلْتُمْ يَٰمُوسَىٰ لَن نُّؤْمِنَ لَكَ حَتَّىٰ نَرَى ٱللَّهَ جَهْرَةً فَأَخَذَتْكُمُ ٱلصَّٰعِقَةُ وَأَنتُمْ تَنظُرُونَ\t1393\tword\tنَرَى \tverb\t1394\tword\tٱللَّهَ \tnoun\tproper\tAlh\t1395\tword\tجَهْرَةً \n", "\n", "7\t2\t70\t128296\taya\tقَالُوا۟ ٱدْعُ لَنَا رَبَّكَ يُبَيِّن لَّنَا مَا هِىَ إِنَّ ٱلْبَقَرَ تَشَٰبَهَ عَلَيْنَا وَإِنَّآ إِن شَآءَ ٱللَّهُ لَمُهْتَدُونَ\t1922\tword\tشَآءَ \tverb\t1923\tword\tٱللَّهُ \tnoun\tproper\tAlh\t1924\tword\tلَ\n", "\n", "8\t2\t73\t128299\taya\tفَقُلْنَا ٱضْرِبُوهُ بِبَعْضِهَا كَذَٰلِكَ يُحْىِ ٱللَّهُ ٱلْمَوْتَىٰ وَيُرِيكُمْ ءَايَٰتِهِۦ لَعَلَّكُمْ تَعْقِلُونَ\t1996\tword\tيُحْىِ \tverb\t1997\tword\tٱللَّهُ \tnoun\tproper\tAlh\t1998\tword\tٱلْ\n", "\n", "9\t2\t76\t128302\taya\tوَإِذَا لَقُوا۟ ٱلَّذِينَ ءَامَنُوا۟ قَالُوٓا۟ ءَامَنَّا وَإِذَا خَلَا بَعْضُهُمْ إِلَىٰ بَعْضٍ قَالُوٓا۟ أَتُحَدِّثُونَهُم بِمَا فَتَحَ ٱللَّهُ عَلَيْكُمْ لِيُحَآجُّوكُم بِهِۦ عِندَ رَبِّكُمْ أَفَلَا تَعْقِلُونَ\t2127\tword\tفَتَحَ \tverb\t2128\tword\tٱللَّهُ \tnoun\tproper\tAlh\t2129\tword\tعَلَيْ\n", "\n" ] } ], "source": [ "checkout()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "You see the following columns:\n", "\n", "* *`R`* the sequence number of the result tuple in the result list\n", "* *`S1 S2`* the section as sura and aya in separate columns\n", "* *`NODEi TYPEi`* the node and its type, for each node *`i`* in the result tuple\n", "* *`TEXTi`* the full text of node *`i`*, if the node type admits a concise text representation\n", "* *`pos2`* the value of feature `pos` on node 2, since our query mentions the feature `pos` on node 2\n", "* other features: likewise for `pos3`, `posx3`, `root3`" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Richer exports\n", "\n", "If we want to see the feature `posx` and the word gender (feature `gn`) on the last word (4), we must mention them\n", "in the query.\n", "\n", "We can do so as follows:" ] }, { "cell_type": "code", "execution_count": 8, "metadata": { "ExecuteTime": { "end_time": "2018-05-24T07:46:55.998382Z", "start_time": "2018-05-24T07:46:55.137956Z" } }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ " 0.49s 529 results\n" ] } ], "source": [ "query = \"\"\"\n", "aya\n", " word pos=verb\n", " <: word pos=noun posx=proper root=Alh\n", " <: word posx* gn*\n", "\"\"\"\n", "results = A.search(query)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The same number of results as before.\n", "The `*` is a trivial condition, it is always true.\n", "\n", "We do the export again and peek at the results." ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "R\tS1\tS2\tNODE1\tTYPE1\tTEXT1\tNODE2\tTYPE2\tTEXT2\tpos2\tNODE3\tTYPE3\tTEXT3\tpos3\tposx3\troot3\tNODE4\tTYPE4\tTEXT4\tgn4\tposx4\n", "\n", "1\t2\t7\t128233\taya\tخَتَمَ ٱللَّهُ عَلَىٰ قُلُوبِهِمْ وَعَلَىٰ سَمْعِهِمْ وَعَلَىٰٓ أَبْصَٰرِهِمْ غِشَٰوَةٌ وَلَهُمْ عَذَابٌ عَظِيمٌ\t131\tword\tخَتَمَ \tverb\t132\tword\tٱللَّهُ \tnoun\tproper\tAlh\t133\tword\tعَلَىٰ \t\t\n", "\n", "2\t2\t17\t128243\taya\tمَثَلُهُمْ كَمَثَلِ ٱلَّذِى ٱسْتَوْقَدَ نَارًا فَلَمَّآ أَضَآءَتْ مَا حَوْلَهُۥ ذَهَبَ ٱللَّهُ بِنُورِهِمْ وَتَرَكَهُمْ فِى ظُلُمَٰتٍ لَّا يُبْصِرُونَ\t341\tword\tذَهَبَ \tverb\t342\tword\tٱللَّهُ \tnoun\tproper\tAlh\t343\tword\tبِ\t\t\n", "\n", "3\t2\t20\t128246\taya\tيَكَادُ ٱلْبَرْقُ يَخْطَفُ أَبْصَٰرَهُمْ كُلَّمَآ أَضَآءَ لَهُم مَّشَوْا۟ فِيهِ وَإِذَآ أَظْلَمَ عَلَيْهِمْ قَامُوا۟ وَلَوْ شَآءَ ٱللَّهُ لَذَهَبَ بِسَمْعِهِمْ وَأَبْصَٰرِهِمْ إِنَّ ٱللَّهَ عَلَىٰ كُلِّ شَىْءٍ قَدِيرٌ\t417\tword\tشَآءَ \tverb\t418\tword\tٱللَّهُ \tnoun\tproper\tAlh\t419\tword\tلَ\t\temphatic\n", "\n", "4\t2\t26\t128252\taya\tإِنَّ ٱللَّهَ لَا يَسْتَحْىِۦٓ أَن يَضْرِبَ مَثَلًا مَّا بَعُوضَةً فَمَا فَوْقَهَا فَأَمَّا ٱلَّذِينَ ءَامَنُوا۟ فَيَعْلَمُونَ أَنَّهُ ٱلْحَقُّ مِن رَّبِّهِمْ وَأَمَّا ٱلَّذِينَ كَفَرُوا۟ فَيَقُولُونَ مَاذَآ أَرَادَ ٱللَّهُ بِهَٰذَا مَثَلًا يُضِلُّ بِهِۦ كَثِيرًا وَيَهْدِى بِهِۦ كَثِيرًا وَمَا يُضِلُّ بِهِۦٓ إِلَّا ٱلْفَٰسِقِينَ\t641\tword\tأَرَادَ \tverb\t642\tword\tٱللَّهُ \tnoun\tproper\tAlh\t643\tword\tبِ\t\t\n", "\n", "5\t2\t27\t128253\taya\tٱلَّذِينَ يَنقُضُونَ عَهْدَ ٱللَّهِ مِنۢ بَعْدِ مِيثَٰقِهِۦ وَيَقْطَعُونَ مَآ أَمَرَ ٱللَّهُ بِهِۦٓ أَن يُوصَلَ وَيُفْسِدُونَ فِى ٱلْأَرْضِ أُو۟لَٰٓئِكَ هُمُ ٱلْخَٰسِرُونَ\t676\tword\tأَمَرَ \tverb\t677\tword\tٱللَّهُ \tnoun\tproper\tAlh\t678\tword\tبِ\t\t\n", "\n", "6\t2\t55\t128281\taya\tوَإِذْ قُلْتُمْ يَٰمُوسَىٰ لَن نُّؤْمِنَ لَكَ حَتَّىٰ نَرَى ٱللَّهَ جَهْرَةً فَأَخَذَتْكُمُ ٱلصَّٰعِقَةُ وَأَنتُمْ تَنظُرُونَ\t1393\tword\tنَرَى \tverb\t1394\tword\tٱللَّهَ \tnoun\tproper\tAlh\t1395\tword\tجَهْرَةً \tf\t\n", "\n", "7\t2\t70\t128296\taya\tقَالُوا۟ ٱدْعُ لَنَا رَبَّكَ يُبَيِّن لَّنَا مَا هِىَ إِنَّ ٱلْبَقَرَ تَشَٰبَهَ عَلَيْنَا وَإِنَّآ إِن شَآءَ ٱللَّهُ لَمُهْتَدُونَ\t1922\tword\tشَآءَ \tverb\t1923\tword\tٱللَّهُ \tnoun\tproper\tAlh\t1924\tword\tلَ\t\temphatic\n", "\n", "8\t2\t73\t128299\taya\tفَقُلْنَا ٱضْرِبُوهُ بِبَعْضِهَا كَذَٰلِكَ يُحْىِ ٱللَّهُ ٱلْمَوْتَىٰ وَيُرِيكُمْ ءَايَٰتِهِۦ لَعَلَّكُمْ تَعْقِلُونَ\t1996\tword\tيُحْىِ \tverb\t1997\tword\tٱللَّهُ \tnoun\tproper\tAlh\t1998\tword\tٱلْ\t\t\n", "\n", "9\t2\t76\t128302\taya\tوَإِذَا لَقُوا۟ ٱلَّذِينَ ءَامَنُوا۟ قَالُوٓا۟ ءَامَنَّا وَإِذَا خَلَا بَعْضُهُمْ إِلَىٰ بَعْضٍ قَالُوٓا۟ أَتُحَدِّثُونَهُم بِمَا فَتَحَ ٱللَّهُ عَلَيْكُمْ لِيُحَآجُّوكُم بِهِۦ عِندَ رَبِّكُمْ أَفَلَا تَعْقِلُونَ\t2127\tword\tفَتَحَ \tverb\t2128\tword\tٱللَّهُ \tnoun\tproper\tAlh\t2129\tword\tعَلَيْ\t\t\n", "\n" ] } ], "source": [ "A.export(results)\n", "checkout()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "As you see, you have extra columns *`gn4`* and *`posx4`*.\n", "\n", "This gives you a lot of control over the generation of spreadsheets." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Not from queries\n", "\n", "You can also export lists of node tuples that are not obtained by a query:" ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "((131, 132), (341, 342))" ] }, "execution_count": 10, "metadata": {}, "output_type": "execute_result" } ], "source": [ "tuples = (\n", " tuple(results[0][1:3]),\n", " tuple(results[1][1:3]),\n", ")\n", "\n", "tuples" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Two rows, each row has a clause node and a word node.\n", "\n", "Let's do a bare export:" ] }, { "cell_type": "code", "execution_count": 11, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "R\tS1\tS2\tNODE1\tTYPE1\tTEXT1\tNODE2\tTYPE2\tTEXT2\tpos2\n", "\n", "1\t2\t7\t131\tword\tخَتَمَ \t132\tword\tٱللَّهُ \tnoun\n", "\n", "2\t2\t17\t341\tword\tذَهَبَ \t342\tword\tٱللَّهُ \tnoun\n", "\n" ] } ], "source": [ "A.export(tuples)\n", "checkout()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Wait a minute: why is the `pos2` there?\n", "\n", "It is because we have run a query before where we asked for `pos`.\n", "\n", "If we do not want to be influenced by previous things we've run, we need to reset the display:" ] }, { "cell_type": "code", "execution_count": 12, "metadata": {}, "outputs": [], "source": [ "A.displayReset(\"tupleFeatures\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Again:" ] }, { "cell_type": "code", "execution_count": 13, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "R\tS1\tS2\tNODE1\tTYPE1\tTEXT1\tNODE2\tTYPE2\tTEXT2\n", "\n", "1\t2\t7\t131\tword\tخَتَمَ \t132\tword\tٱللَّهُ \n", "\n", "2\t2\t17\t341\tword\tذَهَبَ \t342\tword\tٱللَّهُ \n", "\n" ] } ], "source": [ "A.export(tuples)\n", "checkout()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Display setup\n", "\n", "We can get richer exports by means of\n", "`A.displaySetup()`, using the parameter `tupleFeatures`:" ] }, { "cell_type": "code", "execution_count": 14, "metadata": {}, "outputs": [], "source": [ "A.displaySetup(\n", " tupleFeatures=(\n", " (0, \"pos posx\"),\n", " (1, \"pos root\"),\n", " )\n", ")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We assign extra features per member of the tuple.\n", "\n", "In the above case:\n", "\n", "* the first (`0`) member (the first word node), gets features `pos` and `posx`;\n", "* the second (`1`) member (the second word node), gets features `pos` and `root`." ] }, { "cell_type": "code", "execution_count": 15, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "R\tS1\tS2\tNODE1\tTYPE1\tTEXT1\tpos1\tposx1\tNODE2\tTYPE2\tTEXT2\tpos2\troot2\n", "\n", "1\t2\t7\t131\tword\tخَتَمَ \tverb\t\t132\tword\tٱللَّهُ \tnoun\tAlh\n", "\n", "2\t2\t17\t341\tword\tذَهَبَ \tverb\t\t342\tword\tٱللَّهُ \tnoun\tAlh\n", "\n" ] } ], "source": [ "A.export(tuples)\n", "checkout()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Talking about display setup: other parameters also have effect, e.g. the text format.\n", "\n", "Let's change it to the ASCII transcription." ] }, { "cell_type": "code", "execution_count": 16, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "R\tS1\tS2\tNODE1\tTYPE1\tTEXT1\tpos1\tposx1\tNODE2\tTYPE2\tTEXT2\tpos2\troot2\n", "\n", "1\t2\t7\t131\tword\txatama \tverb\t\t132\tword\t{ll~ahu \tnoun\tAlh\n", "\n", "2\t2\t17\t341\tword\t*ahaba \tverb\t\t342\tword\t{ll~ahu \tnoun\tAlh\n", "\n" ] } ], "source": [ "A.export(tuples, fmt=\"text-trans-full\")\n", "checkout()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Chained queries\n", "\n", "You can chain queries like this:" ] }, { "cell_type": "code", "execution_count": 17, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ " 0.30s 24 results\n", " 0.30s 101 results\n" ] } ], "source": [ "results = (\n", " A.search(\n", " \"\"\"\n", "aya\n", " word pos=verb\n", " <: word pos=noun posx=proper root=Alh\n", " <: word pos=verb\n", "\"\"\"\n", " )[0:2]\n", " + A.search(\n", " \"\"\"\n", "aya\n", " word pos=verb\n", " <: word pos=noun posx=proper root=Alh\n", " <: word pos=noun\n", "\"\"\"\n", " )[0:2]\n", ")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "In such cases, it is better to setup the features yourself:" ] }, { "cell_type": "code", "execution_count": 18, "metadata": {}, "outputs": [], "source": [ "A.displaySetup(\n", " tupleFeatures=(\n", " (1, \"root formation tense\"),\n", " (3, \"pos gn nu ps mood\"),\n", " ),\n", " fmt=\"text-orig-full\",\n", ")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now we can do a fine export:" ] }, { "cell_type": "code", "execution_count": 19, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "R\tS1\tS2\tNODE1\tTYPE1\tTEXT1\tNODE2\tTYPE2\tTEXT2\troot2\tformation2\ttense2\tNODE3\tTYPE3\tTEXT3\tNODE4\tTYPE4\tTEXT4\tpos4\tgn4\tnu4\tps4\tmood4\n", "\n", "1\t2\t91\t128317\taya\tوَإِذَا قِيلَ لَهُمْ ءَامِنُوا۟ بِمَآ أَنزَلَ ٱللَّهُ قَالُوا۟ نُؤْمِنُ بِمَآ أُنزِلَ عَلَيْنَا وَيَكْفُرُونَ بِمَا وَرَآءَهُۥ وَهُوَ ٱلْحَقُّ مُصَدِّقًا لِّمَا مَعَهُمْ قُلْ فَلِمَ تَقْتُلُونَ أَنۢبِيَآءَ ٱللَّهِ مِن قَبْلُ إِن كُنتُم مُّؤْمِنِينَ\t2645\tword\tأَنزَلَ \tnzl\tIV\tperfect\t2646\tword\tٱللَّهُ \t2647\tword\tقَالُ\tverb\tm\tp\t3\t\n", "\n", "2\t2\t170\t128396\taya\tوَإِذَا قِيلَ لَهُمُ ٱتَّبِعُوا۟ مَآ أَنزَلَ ٱللَّهُ قَالُوا۟ بَلْ نَتَّبِعُ مَآ أَلْفَيْنَا عَلَيْهِ ءَابَآءَنَآ أَوَلَوْ كَانَ ءَابَآؤُهُمْ لَا يَعْقِلُونَ شَيْـًٔا وَلَا يَهْتَدُونَ\t5164\tword\tأَنزَلَ \tnzl\tIV\tperfect\t5165\tword\tٱللَّهُ \t5166\tword\tقَالُ\tverb\tm\tp\t3\t\n", "\n", "3\t2\t55\t128281\taya\tوَإِذْ قُلْتُمْ يَٰمُوسَىٰ لَن نُّؤْمِنَ لَكَ حَتَّىٰ نَرَى ٱللَّهَ جَهْرَةً فَأَخَذَتْكُمُ ٱلصَّٰعِقَةُ وَأَنتُمْ تَنظُرُونَ\t1393\tword\tنَرَى \trAy\t\timperfect\t1394\tword\tٱللَّهَ \t1395\tword\tجَهْرَةً \tnoun\tf\t\t\t\n", "\n", "4\t2\t80\t128306\taya\tوَقَالُوا۟ لَن تَمَسَّنَا ٱلنَّارُ إِلَّآ أَيَّامًا مَّعْدُودَةً قُلْ أَتَّخَذْتُمْ عِندَ ٱللَّهِ عَهْدًا فَلَن يُخْلِفَ ٱللَّهُ عَهْدَهُۥٓ أَمْ تَقُولُونَ عَلَى ٱللَّهِ مَا لَا تَعْلَمُونَ\t2239\tword\tيُخْلِفَ \txlf\tIV\timperfect\t2240\tword\tٱللَّهُ \t2241\tword\tعَهْدَ\tnoun\tm\t\t\t\n", "\n" ] } ], "source": [ "A.export(results)\n", "checkout()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "---\n", "\n", "All chapters:\n", "\n", "* **[start](start.ipynb)** introduction to computing with your corpus\n", "* **[display](display.ipynb)** become an expert in creating pretty displays of your text structures\n", "* **[search](search.ipynb)** turbo charge your hand-coding with search templates\n", "* **export Excel** make tailor-made spreadsheets out of your results\n", "* **[share](share.ipynb)** draw in other people's data and let them use yours\n", "* **[similarAyas](similarAyas.ipynb)** spot the similarities between lines\n", "* **[rings](rings.ipynb)** ring structures in sura 2\n", "\n", "CC-BY Dirk Roorda" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.10.2" }, "widgets": { "application/vnd.jupyter.widget-state+json": { "state": {}, "version_major": 2, "version_minor": 0 } } }, "nbformat": 4, "nbformat_minor": 4 }