Skip to content

Commit

Permalink
tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkroorda committed Jun 1, 2018
1 parent 924b3bd commit 5ba5490
Showing 1 changed file with 61 additions and 62 deletions.
123 changes: 61 additions & 62 deletions tutorial/searchQuantifiers.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
{
"data": {
"text/markdown": [
"**Documentation:** <a target=\"_blank\" href=\"https://etcbc.github.io/bhsa\" title=\"{provenance of this corpus}\">BHSA</a> <a target=\"_blank\" href=\"https://etcbc.github.io/bhsa/features/hebrew/2017/0_home.html\" title=\"{CORPUS} feature documentation\">Feature docs</a> <a target=\"_blank\" href=\"https://dans-labs.github.io/text-fabric/Api/Bhsa/\" title=\"BHSA API documentation\">BHSA API</a> <a target=\"_blank\" href=\"https://dans-labs.github.io/text-fabric/Api/General/\" title=\"text-fabric-api\">Text-Fabric API 4.3.2</a> <a target=\"_blank\" href=\"https://dans-labs.github.io/text-fabric/Api/General/#search-templates\" title=\"Search Templates Introduction and Reference\">Search Reference</a>"
"**Documentation:** <a target=\"_blank\" href=\"https://etcbc.github.io/bhsa\" title=\"{provenance of this corpus}\">BHSA</a> <a target=\"_blank\" href=\"https://etcbc.github.io/bhsa/features/hebrew/2017/0_home.html\" title=\"{CORPUS} feature documentation\">Feature docs</a> <a target=\"_blank\" href=\"https://dans-labs.github.io/text-fabric/Api/Bhsa/\" title=\"BHSA API documentation\">BHSA API</a> <a target=\"_blank\" href=\"https://dans-labs.github.io/text-fabric/Api/General/\" title=\"text-fabric-api\">Text-Fabric API 4.3.3</a> <a target=\"_blank\" href=\"https://dans-labs.github.io/text-fabric/Api/General/#search-templates\" title=\"Search Templates Introduction and Reference\">Search Reference</a>"
],
"text/plain": [
"<IPython.core.display.Markdown object>"
Expand All @@ -81,8 +81,8 @@
"text/markdown": [
"\n",
"This notebook online:\n",
"<a target=\"_blank\" href=\"http://nbviewer.jupyter.org/github/Dans-labs/text-fabric/blob/master/search.ipynb\">NBViewer</a>\n",
"<a target=\"_blank\" href=\"https://github.com/Dans-labs/text-fabric/blob/master/search.ipynb\">GitHub</a>\n"
"<a target=\"_blank\" href=\"http://nbviewer.jupyter.org/github/etcbc/bhsa/blob/master/tutorial/search.ipynb\">NBViewer</a>\n",
"<a target=\"_blank\" href=\"https://github.com/etcbc/bhsa/blob/master/tutorial/search.ipynb\">GitHub</a>\n"
],
"text/plain": [
"<IPython.core.display.Markdown object>"
Expand Down Expand Up @@ -386,15 +386,15 @@
},
{
"cell_type": "code",
"execution_count": 43,
"execution_count": 6,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"382 results\n",
" 1.74s Done\n"
" 1.90s Done\n"
]
}
],
Expand Down Expand Up @@ -424,15 +424,15 @@
},
{
"cell_type": "code",
"execution_count": 44,
"execution_count": 7,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"382 results\n",
" 0.39s Done\n"
" 0.38s Done\n"
]
}
],
Expand Down Expand Up @@ -460,14 +460,14 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 8,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" 0.20s 382\n"
" 0.19s 382\n"
]
}
],
Expand Down Expand Up @@ -495,7 +495,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 9,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -524,15 +524,15 @@
},
{
"cell_type": "code",
"execution_count": 23,
"execution_count": 10,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"31399 results\n",
" 2.69s Done\n"
" 2.37s Done\n"
]
},
{
Expand Down Expand Up @@ -2381,14 +2381,14 @@
},
{
"cell_type": "code",
"execution_count": 24,
"execution_count": 11,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" 1.34s 31399\n"
" 1.72s 31399\n"
]
}
],
Expand All @@ -2411,7 +2411,7 @@
},
{
"cell_type": "code",
"execution_count": 25,
"execution_count": 12,
"metadata": {},
"outputs": [
{
Expand All @@ -2420,7 +2420,7 @@
"True"
]
},
"execution_count": 25,
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -2441,7 +2441,7 @@
},
{
"cell_type": "code",
"execution_count": 46,
"execution_count": 13,
"metadata": {},
"outputs": [
{
Expand All @@ -2451,31 +2451,31 @@
" | 0.00s Feature overview: 109 for nodes; 8 for edges; 1 configs; 7 computed\n",
" 0.00s Checking search template ...\n",
" 0.00s Setting up search space for 2 objects ...\n",
" | 0.04s \"Quantifier on \"parent:clause\"\n",
" | 0.00s \"Quantifier on \"parent:clause\"\n",
" | | /where/\n",
" | | parent:clause\n",
" | | phrase function=Pred\n",
" | | 40m 33s 57070 matching nodes\n",
" | | 0.71s 57070 matching nodes\n",
" | | /have/\n",
" | | parent:clause\n",
" | | phrase function=Pred\n",
" | | /without/\n",
" | | word sp#verb\n",
" | | /-/\n",
" | | /-/\n",
" | | 40m 33s \"Quantifier on \"parent:phrase function=Pred\"\n",
" | | 0.00s \"Quantifier on \"parent:phrase function=Pred\"\n",
" | | | /without/\n",
" | | | parent:phrase function=Pred\n",
" | | | word sp#verb\n",
" | | | /-/\n",
" | | | 1m 41s 4893 nodes to exclude\n",
" | | 40m 35s reduction from 57070 to 52177 nodes\n",
" | | 40m 35s 52177 matching nodes\n",
" | | 40m 35s 4893 match antecedent but not consequent\n",
" | 1.83s reduction from 88101 to 83208 nodes\n",
" 2.22s Constraining search space with 1 relations ...\n",
" 2.22s Setting up retrieval plan ...\n",
" 2.23s Ready to deliver results from 115154 nodes\n",
" | | | 1.51s 4893 nodes to exclude\n",
" | | 1.53s reduction from 57070 to 52177 nodes\n",
" | | 1.79s 52177 matching nodes\n",
" | | 1.82s 4893 match antecedent but not consequent\n",
" | 1.81s reduction from 88101 to 83208 nodes\n",
" 2.20s Constraining search space with 1 relations ...\n",
" 2.20s Setting up retrieval plan ...\n",
" 2.21s Ready to deliver results from 115154 nodes\n",
"Iterate over S.fetch() to get the results\n",
"See S.showPlan() to interpret the results\n"
]
Expand Down Expand Up @@ -2517,15 +2517,15 @@
},
{
"cell_type": "code",
"execution_count": 28,
"execution_count": 14,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"15332 results\n",
" 0.93s Done\n"
" 1.22s Done\n"
]
}
],
Expand Down Expand Up @@ -2555,14 +2555,14 @@
},
{
"cell_type": "code",
"execution_count": 29,
"execution_count": 15,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" 2.70s 15332\n"
" 3.12s 15332\n"
]
}
],
Expand Down Expand Up @@ -2594,7 +2594,7 @@
},
{
"cell_type": "code",
"execution_count": 30,
"execution_count": 16,
"metadata": {},
"outputs": [
{
Expand All @@ -2603,7 +2603,7 @@
"True"
]
},
"execution_count": 30,
"execution_count": 16,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -2621,7 +2621,7 @@
},
{
"cell_type": "code",
"execution_count": 34,
"execution_count": 17,
"metadata": {},
"outputs": [
{
Expand All @@ -2631,20 +2631,19 @@
" | 0.00s Feature overview: 109 for nodes; 8 for edges; 1 configs; 7 computed\n",
" 0.00s Checking search template ...\n",
" 0.00s Setting up search space for 3 objects ...\n",
" | 0.04s \"Quantifier at level 0 on \"c:clause\"\n",
" | /with/\n",
" | c:clause\n",
" | =: phrase function=Subj\n",
" | 0.51s adding 5297 to 0 yields 5297 nodes\n",
" | /or/\n",
" | c:clause\n",
" | := phrase function=Subj/-/\n",
" | 0.53s adding 11118 to 5297 yields 15924 nodes\n",
" | 0.53s RESULTS of \"/with/\" level 0 on \"c:clause\":\n",
" | 0.53s reduction from 88101 to 15924 nodes\n",
" 0.64s Constraining search space with 3 relations ...\n",
" 0.94s Setting up retrieval plan ...\n",
" 0.95s Ready to deliver results from 313680 nodes\n",
" | 0.00s \"Quantifier on \"c:clause\"\n",
" | | /with/\n",
" | | c:clause\n",
" | | =: phrase function=Subj\n",
" | | 0.57s adding 5297 to 0 yields 5297 nodes\n",
" | | /or/\n",
" | | c:clause\n",
" | | := phrase function=Subj/-/\n",
" | | 0.58s adding 11118 to 5297 yields 15924 nodes\n",
" | 0.59s reduction from 88101 to 15924 nodes\n",
" 0.70s Constraining search space with 3 relations ...\n",
" 0.72s Setting up retrieval plan ...\n",
" 0.74s Ready to deliver results from 522298 nodes\n",
"Iterate over S.fetch() to get the results\n",
"See S.showPlan() to interpret the results\n"
]
Expand Down Expand Up @@ -2678,7 +2677,7 @@
},
{
"cell_type": "code",
"execution_count": 35,
"execution_count": 18,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -2714,7 +2713,7 @@
},
{
"cell_type": "code",
"execution_count": 36,
"execution_count": 19,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -2767,7 +2766,7 @@
},
{
"cell_type": "code",
"execution_count": 37,
"execution_count": 20,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -2783,7 +2782,7 @@
},
{
"cell_type": "code",
"execution_count": 38,
"execution_count": 21,
"metadata": {},
"outputs": [
{
Expand All @@ -2810,7 +2809,7 @@
},
{
"cell_type": "code",
"execution_count": 42,
"execution_count": 22,
"metadata": {},
"outputs": [
{
Expand All @@ -2820,22 +2819,22 @@
" | 0.00s Feature overview: 109 for nodes; 8 for edges; 1 configs; 7 computed\n",
" 0.00s Checking search template ...\n",
" 0.00s Setting up search space for 1 objects ...\n",
" | 0.07s \"Quantifier at level 0 on \"parent:phrase\"\n",
" | 0.00s \"Quantifier on \"parent:phrase\"\n",
" | | /where/\n",
" | | parent:phrase\n",
" | | w:word pdp=verb\n",
" | | 38m 06s 69026 matching nodes\n",
" | | 1.09s 69026 matching nodes\n",
" | | /have/\n",
" | | parent:phrase\n",
" | | w:word pdp=verb\n",
" | | parent function=Pred\n",
" | | /-/\n",
" | | 38m 07s 57070 matching nodes\n",
" | | 38m 07s 11955 match antecedent but not consequent\n",
" | 1.74s reduction from 253187 to 241232 nodes\n",
" 1.74s Constraining search space with 0 relations ...\n",
" 1.74s Setting up retrieval plan ...\n",
" 1.74s Ready to deliver results from 241232 nodes\n",
" | | 1.44s 57070 matching nodes\n",
" | | 1.49s 11955 match antecedent but not consequent\n",
" | 1.51s reduction from 253187 to 241232 nodes\n",
" 1.52s Constraining search space with 0 relations ...\n",
" 1.52s Setting up retrieval plan ...\n",
" 1.52s Ready to deliver results from 241232 nodes\n",
"Iterate over S.fetch() to get the results\n",
"See S.showPlan() to interpret the results\n"
]
Expand Down

0 comments on commit 5ba5490

Please sign in to comment.