From 5ba5490185b5b8c37a0e828c9c7fc175ec944253 Mon Sep 17 00:00:00 2001 From: Dirk Roorda Date: Fri, 1 Jun 2018 12:58:15 +0200 Subject: [PATCH] tutorial --- tutorial/searchQuantifiers.ipynb | 123 +++++++++++++++---------------- 1 file changed, 61 insertions(+), 62 deletions(-) diff --git a/tutorial/searchQuantifiers.ipynb b/tutorial/searchQuantifiers.ipynb index 8da2b253..9c3255c6 100644 --- a/tutorial/searchQuantifiers.ipynb +++ b/tutorial/searchQuantifiers.ipynb @@ -67,7 +67,7 @@ { "data": { "text/markdown": [ - "**Documentation:** BHSA Feature docs BHSA API Text-Fabric API 4.3.2 Search Reference" + "**Documentation:** BHSA Feature docs BHSA API Text-Fabric API 4.3.3 Search Reference" ], "text/plain": [ "" @@ -81,8 +81,8 @@ "text/markdown": [ "\n", "This notebook online:\n", - "NBViewer\n", - "GitHub\n" + "NBViewer\n", + "GitHub\n" ], "text/plain": [ "" @@ -386,7 +386,7 @@ }, { "cell_type": "code", - "execution_count": 43, + "execution_count": 6, "metadata": {}, "outputs": [ { @@ -394,7 +394,7 @@ "output_type": "stream", "text": [ "382 results\n", - " 1.74s Done\n" + " 1.90s Done\n" ] } ], @@ -424,7 +424,7 @@ }, { "cell_type": "code", - "execution_count": 44, + "execution_count": 7, "metadata": {}, "outputs": [ { @@ -432,7 +432,7 @@ "output_type": "stream", "text": [ "382 results\n", - " 0.39s Done\n" + " 0.38s Done\n" ] } ], @@ -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" ] } ], @@ -495,7 +495,7 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": 9, "metadata": {}, "outputs": [ { @@ -524,7 +524,7 @@ }, { "cell_type": "code", - "execution_count": 23, + "execution_count": 10, "metadata": {}, "outputs": [ { @@ -532,7 +532,7 @@ "output_type": "stream", "text": [ "31399 results\n", - " 2.69s Done\n" + " 2.37s Done\n" ] }, { @@ -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" ] } ], @@ -2411,7 +2411,7 @@ }, { "cell_type": "code", - "execution_count": 25, + "execution_count": 12, "metadata": {}, "outputs": [ { @@ -2420,7 +2420,7 @@ "True" ] }, - "execution_count": 25, + "execution_count": 12, "metadata": {}, "output_type": "execute_result" } @@ -2441,7 +2441,7 @@ }, { "cell_type": "code", - "execution_count": 46, + "execution_count": 13, "metadata": {}, "outputs": [ { @@ -2451,11 +2451,11 @@ " | 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", @@ -2463,19 +2463,19 @@ " | | 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" ] @@ -2517,7 +2517,7 @@ }, { "cell_type": "code", - "execution_count": 28, + "execution_count": 14, "metadata": {}, "outputs": [ { @@ -2525,7 +2525,7 @@ "output_type": "stream", "text": [ "15332 results\n", - " 0.93s Done\n" + " 1.22s Done\n" ] } ], @@ -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" ] } ], @@ -2594,7 +2594,7 @@ }, { "cell_type": "code", - "execution_count": 30, + "execution_count": 16, "metadata": {}, "outputs": [ { @@ -2603,7 +2603,7 @@ "True" ] }, - "execution_count": 30, + "execution_count": 16, "metadata": {}, "output_type": "execute_result" } @@ -2621,7 +2621,7 @@ }, { "cell_type": "code", - "execution_count": 34, + "execution_count": 17, "metadata": {}, "outputs": [ { @@ -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" ] @@ -2678,7 +2677,7 @@ }, { "cell_type": "code", - "execution_count": 35, + "execution_count": 18, "metadata": {}, "outputs": [ { @@ -2714,7 +2713,7 @@ }, { "cell_type": "code", - "execution_count": 36, + "execution_count": 19, "metadata": {}, "outputs": [ { @@ -2767,7 +2766,7 @@ }, { "cell_type": "code", - "execution_count": 37, + "execution_count": 20, "metadata": {}, "outputs": [], "source": [ @@ -2783,7 +2782,7 @@ }, { "cell_type": "code", - "execution_count": 38, + "execution_count": 21, "metadata": {}, "outputs": [ { @@ -2810,7 +2809,7 @@ }, { "cell_type": "code", - "execution_count": 42, + "execution_count": 22, "metadata": {}, "outputs": [ { @@ -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" ]