Skip to content

Commit 857ad45

Browse files
committed
updated notebooks
1 parent 1692a29 commit 857ad45

File tree

13 files changed

+59
-53
lines changed

13 files changed

+59
-53
lines changed

notebooks/claude4_test.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"source": [
77
"# Claude 4 Interaction using the Anthropic API\n",
88
"\n",
9-
"(C) 2024-2025 by [Damir Cavar](http://damir.cavar.me/)\n",
9+
"© 2024-2025 by [Damir Cavar](http://damir.cavar.me/)\n",
1010
"\n",
1111
"The basic API example is documented on the [Anthropic](https://www.anthropic.com/) website. The code below is extended and based on the example provided by [Anthropic](https://www.anthropic.com/)."
1212
]
@@ -163,9 +163,9 @@
163163
"text": [
164164
"Looking at the sentence \"John bought a car and Mary a bicycle,\" I need to determine if it contains an ellipsis.\n",
165165
"\n",
166-
"In this sentence, the second clause \"Mary a bicycle\" is missing the verb \"bought\" - the full form would be \"John bought a car and Mary bought a bicycle.\" The verb from the first clause is understood to apply to the second clause as well, but it has been omitted to avoid repetition.\n",
166+
"In this sentence, the second clause \"Mary a bicycle\" is missing the verb \"bought\" - the complete form would be \"John bought a car and Mary bought a bicycle.\" \n",
167167
"\n",
168-
"This is indeed an example of ellipsis, specifically verb phrase ellipsis (or gapping), where the verb \"bought\" is elided from the second conjunct because it can be recovered from the context of the first conjunct.\n",
168+
"This is indeed an example of ellipsis, specifically verb phrase ellipsis (or gapping), where the verb \"bought\" from the first clause is omitted in the second clause because it can be understood from context. The missing element is recoverable from the linguistic context, which is a key characteristic of ellipsis.\n",
169169
"\n",
170170
"**1**\n"
171171
]
@@ -185,7 +185,7 @@
185185
"cell_type": "markdown",
186186
"metadata": {},
187187
"source": [
188-
"(C) 2024-2025 by [Damir Cavar](http://damir.cavar.me/)"
188+
"© 2024-2025 by [Damir Cavar](http://damir.cavar.me/)"
189189
]
190190
}
191191
],

notebooks/data/StanfordSentimentTreebank/README.txt

100644100755
File mode changed.

notebooks/data/StanfordSentimentTreebank/SOStr.txt

100644100755
File mode changed.

notebooks/data/StanfordSentimentTreebank/STree.txt

100644100755
File mode changed.

notebooks/data/StanfordSentimentTreebank/datasetSentences.txt

100644100755
File mode changed.

notebooks/data/StanfordSentimentTreebank/datasetSplit.txt

100644100755
File mode changed.

notebooks/data/StanfordSentimentTreebank/dictionary.txt

100644100755
File mode changed.

notebooks/data/StanfordSentimentTreebank/original_rt_snippets.txt

100644100755
File mode changed.

notebooks/data/StanfordSentimentTreebank/sentiment_labels.txt

100644100755
File mode changed.

notebooks/gemini_test.ipynb

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"source": [
88
"# Testing Gemini API for Text to Graph\n",
99
"\n",
10-
"(C) 2025 by [Damir Cavar](https://damir.cavar.me/)\n",
10+
"© 2025 by [Damir Cavar](https://damir.cavar.me/)\n",
1111
"\n",
1212
"**Version:** 1.0, September 2025\n",
1313
"\n",
@@ -64,7 +64,7 @@
6464
},
6565
{
6666
"cell_type": "code",
67-
"execution_count": 2,
67+
"execution_count": 3,
6868
"id": "751ae453",
6969
"metadata": {},
7070
"outputs": [],
@@ -76,7 +76,7 @@
7676
},
7777
{
7878
"cell_type": "code",
79-
"execution_count": 3,
79+
"execution_count": 4,
8080
"id": "12f54575",
8181
"metadata": {},
8282
"outputs": [
@@ -86,7 +86,7 @@
8686
"True"
8787
]
8888
},
89-
"execution_count": 3,
89+
"execution_count": 4,
9090
"metadata": {},
9191
"output_type": "execute_result"
9292
}
@@ -97,7 +97,7 @@
9797
},
9898
{
9999
"cell_type": "code",
100-
"execution_count": 4,
100+
"execution_count": 5,
101101
"id": "4c21713d",
102102
"metadata": {},
103103
"outputs": [],
@@ -116,7 +116,7 @@
116116
},
117117
{
118118
"cell_type": "code",
119-
"execution_count": 5,
119+
"execution_count": 6,
120120
"id": "f5234e9b",
121121
"metadata": {},
122122
"outputs": [],
@@ -138,7 +138,7 @@
138138
},
139139
{
140140
"cell_type": "code",
141-
"execution_count": 6,
141+
"execution_count": 7,
142142
"id": "26f463ec",
143143
"metadata": {},
144144
"outputs": [],
@@ -148,21 +148,15 @@
148148
},
149149
{
150150
"cell_type": "code",
151-
"execution_count": 7,
151+
"execution_count": 8,
152152
"id": "4dc7e233",
153153
"metadata": {},
154154
"outputs": [
155155
{
156156
"name": "stdout",
157157
"output_type": "stream",
158158
"text": [
159-
"Based on the text provided, here are a few ways to summarize it:\n",
160-
"\n",
161-
"**Shortest summary:**\n",
162-
"Artificial intelligence (AI) is intelligence demonstrated by machines, as opposed to humans or animals.\n",
163-
"\n",
164-
"**Slightly more detailed summary:**\n",
165-
"Artificial intelligence (AI) is the capacity of machines to perceive, synthesize, and infer information, which distinguishes it from the natural intelligence found in humans and animals.\n"
159+
"Artificial intelligence (AI) is intelligence demonstrated by machines, unlike the natural intelligence of humans and animals. It involves the ability to perceive, synthesize, and infer information.\n"
166160
]
167161
}
168162
],
@@ -270,7 +264,7 @@
270264
"id": "787207f0",
271265
"metadata": {},
272266
"source": [
273-
"**(C) 2025 by [Damir Cavar](http://damir.cavar.me/) <<dcavar@iu.edu>>**"
267+
"**&copy; 2025 by [Damir Cavar](http://damir.cavar.me/) <<dcavar@iu.edu>>**"
274268
]
275269
}
276270
],

0 commit comments

Comments
 (0)