Skip to content

Commit e9b7a00

Browse files
committed
updated models
1 parent 857ad45 commit e9b7a00

File tree

4 files changed

+32
-34
lines changed

4 files changed

+32
-34
lines changed

notebooks/claude4_test.ipynb

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
},
127127
{
128128
"cell_type": "code",
129-
"execution_count": 4,
129+
"execution_count": 5,
130130
"metadata": {},
131131
"outputs": [],
132132
"source": [
@@ -154,28 +154,31 @@
154154
},
155155
{
156156
"cell_type": "code",
157-
"execution_count": 5,
157+
"execution_count": 7,
158158
"metadata": {},
159159
"outputs": [
160160
{
161161
"name": "stdout",
162162
"output_type": "stream",
163163
"text": [
164-
"Looking at the sentence \"John bought a car and Mary a bicycle,\" I need to determine if it contains an ellipsis.\n",
164+
"Looking at the sentence \"John bought a car and Mary bought a bicycle,\" I need to determine if it contains an ellipsis.\n",
165+
"\n",
166+
"An ellipsis in linguistics refers to the omission of words that are understood from context. In this sentence, the full form would be:\n",
167+
"- \"John bought a car and Mary bought a bicycle.\"\n",
165168
"\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",
169+
"While this sentence could potentially be analyzed as having an understood repetition of the verb phrase structure in the second clause, it is actually written in its complete, standard form. Both clauses contain explicit subjects, verbs, and objects. This is a typical coordinate structure where both parts are fully expressed.\n",
167170
"\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",
171+
"The sentence does not demonstrate ellipsis - there are no omitted words that need to be recovered from context. It's a complete compound sentence with two independent clauses joined by \"and.\"\n",
169172
"\n",
170-
"**1**\n"
173+
"**0**\n"
171174
]
172175
}
173176
],
174177
"source": [
175178
"instructions = \"Respond with 1 if the claim is true, and with 0 if it is not.\"\n",
176179
"prompt = \"\"\"\n",
177180
"The following sentence contains an ellipsis: \n",
178-
"'John bought a car and Mary a bicycle.'\n",
181+
"'John bought a car and Mary bought a bicycle.'\n",
179182
"\"\"\"\n",
180183
"\n",
181184
"print(call_claude(prompt, instructions)) # , temperature=0.7))"

notebooks/gemini_test.ipynb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
},
6565
{
6666
"cell_type": "code",
67-
"execution_count": 3,
67+
"execution_count": 2,
6868
"id": "751ae453",
6969
"metadata": {},
7070
"outputs": [],
@@ -76,7 +76,7 @@
7676
},
7777
{
7878
"cell_type": "code",
79-
"execution_count": 4,
79+
"execution_count": 3,
8080
"id": "12f54575",
8181
"metadata": {},
8282
"outputs": [
@@ -86,7 +86,7 @@
8686
"True"
8787
]
8888
},
89-
"execution_count": 4,
89+
"execution_count": 3,
9090
"metadata": {},
9191
"output_type": "execute_result"
9292
}
@@ -97,7 +97,7 @@
9797
},
9898
{
9999
"cell_type": "code",
100-
"execution_count": 5,
100+
"execution_count": 4,
101101
"id": "4c21713d",
102102
"metadata": {},
103103
"outputs": [],
@@ -116,7 +116,7 @@
116116
},
117117
{
118118
"cell_type": "code",
119-
"execution_count": 6,
119+
"execution_count": 5,
120120
"id": "f5234e9b",
121121
"metadata": {},
122122
"outputs": [],
@@ -138,7 +138,7 @@
138138
},
139139
{
140140
"cell_type": "code",
141-
"execution_count": 7,
141+
"execution_count": 6,
142142
"id": "26f463ec",
143143
"metadata": {},
144144
"outputs": [],
@@ -148,15 +148,15 @@
148148
},
149149
{
150150
"cell_type": "code",
151-
"execution_count": 8,
151+
"execution_count": 7,
152152
"id": "4dc7e233",
153153
"metadata": {},
154154
"outputs": [
155155
{
156156
"name": "stdout",
157157
"output_type": "stream",
158158
"text": [
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"
159+
"Based on the text provided, **Artificial intelligence (AI)** is intelligence demonstrated by **machines**, as opposed to the natural intelligence of humans or animals. It involves the ability to perceive, synthesize, and infer information.\n"
160160
]
161161
}
162162
],

notebooks/gpt4_test.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@
162162
{
163163
"data": {
164164
"text/plain": [
165-
"'As a linguist with expertise in Slavic languages, I can help analyze the grammatical structure of the sentence \"U koju je Ivan usao kucu?\" in the context of Croatian or Serbian, where such a sentence structure might be considered.\\n\\nThe sentence appears to attempt to say, \"Which house did Ivan enter?\" However, there are a couple of grammatical issues present:\\n\\n1. **Word Order**: In Croatian or Serbian, the typical word order for questions involves placing the verb at the beginning or shortly thereafter. A more appropriate phrasing could be \"U koju kuću je Ivan ušao?\" This places the noun \"kuću\" (house) in the correct position within the sentence.\\n\\n2. **Case Agreement**: In the sentence, \"kuću\" (house) is in the accusative case, which is correct for indicating the direct object of the verb \"ući\" (to enter). However, the phrase \"u koju\" is also needed to specify \"which house,\" and it should agree in case and gender with the noun. The original word choice appears correct in this regard, and this phrase structure requires u koju + accusative.\\n\\nWith these considerations, the corrected version of the sentence would read:\\n- \"U koju kuću je Ivan ušao?\"\\n\\nThis maintains proper word order and ensures grammatical agreement within the sentence.'"
165+
"'While I am not Noam Chomsky, I can provide linguistic insight into the structure of this sentence. The sentence \"U koju je Ivan usao kucu?\" is written in the context of a question in Croatian, one of the South Slavic languages. \\n\\nIn Croatian, word order is somewhat flexible due to the inflectional nature of the language. However, the sentence\\'s structure seems to be off, particularly with the use of the verb \"ušao\" (entered) and its object.\\n\\nHere\\'s a breakdown:\\n\\n1. \"U koju\" translates to \"into which,\" typically introducing a relative clause or a question related to place.\\n2. \"Je\" is an auxiliary verb used for the past tense.\\n3. \"Ivan\" is the subject of the sentence.\\n4. \"Ušao\" is the past participle of \"enter\" (ući).\\n5. \"Kuću\" is the accusative form of \"house.\"\\n\\nFor this sentence to be grammatical, it needs to correctly match the verb with the object and place. The sentence seems to be missing agreement in the prepositional phrase \"u koju\" with the object \"kuću.\" A corrected form might look like: \"U koju je kuću Ivan ušao?\" meaning \"Into which house did Ivan enter?\"\\n\\nTherefore, in its original form, the sentence is not grammatical.'"
166166
]
167167
},
168168
"execution_count": 5,

notebooks/ollama_test.ipynb

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -94,26 +94,23 @@
9494
"name": "stdout",
9595
"output_type": "stream",
9696
"text": [
97-
"A long-distance passive construction is a type of sentence structure in linguistics that involves a combination of passive voice and relativization. In a long-distance passive construction, the subject of the sentence is not the performer of the action described by the verb, but rather an NP (Noun Phrase) that is embedded within a relative clause or a complement clause.\n",
97+
"In linguistics, a long-distance passive construction (LDPC) refers to a type of sentence where the subject of the sentence is not the one performing the action described by the verb, but rather some other entity that is connected to the main subject through a series of prepositional phrases or other grammatical structures.\n",
9898
"\n",
99-
"The characteristic features of a long-distance passive construction are:\n",
99+
"To illustrate this, consider the following examples:\n",
100100
"\n",
101-
"1. **Passive voice**: The main clause has a passive verb form, where the subject is not the doer of the action.\n",
102-
"2. **Relativization**: A relative pronoun (e.g., \"who\", \"which\", etc.) introduces a subordinate clause that provides additional information about the subject or another NP in the sentence.\n",
103-
"3. **Long-distance**: The relative clause can be separated from the main clause by several layers of embedding, which means that the relationship between the subject and the action described by the verb is not immediately apparent.\n",
101+
"1. The package was sent to Mary by John from Chicago to San Francisco. (Here, \"the package\" is the subject, but it's not performing the action; instead, \"John\" is the agent performing the action of sending.)\n",
102+
"2. The book was written about ancient civilizations by a team of experts led by Dr. Smith.\n",
103+
"3. The new policy will be implemented nationwide by the Department of Education.\n",
104104
"\n",
105-
"Here's an example of a long-distance passive construction:\n",
105+
"In each case, we have a long-distance passive construction because there are several prepositional phrases or other connectors between the subject (the package, the book, the new policy) and the actual agent performing the action (John, the team of experts led by Dr. Smith, the Department of Education).\n",
106106
"\n",
107-
"\"The book that was written by the famous author has been translated into many languages.\"\n",
107+
"The key characteristics of LDPCs are:\n",
108108
"\n",
109-
"In this sentence:\n",
109+
"1. The main subject is not the one performing the action.\n",
110+
"2. There are several prepositional phrases or other connectors between the subject and the agent.\n",
111+
"3. The sentence structure is often complex, with multiple clauses or embedded sentences.\n",
110112
"\n",
111-
"* \"The book\" is the subject, but it's not the doer of the action (writing).\n",
112-
"* The main clause is in the passive voice (\"was written\").\n",
113-
"* The relative clause \"that was written by the famous author\" provides additional information about the book.\n",
114-
"* The relationship between the book and the act of writing is not immediately apparent; it takes several layers of embedding to see that the book is the one being written about.\n",
115-
"\n",
116-
"Long-distance passive constructions can be found in many languages, including English, French, German, Italian, and others. They are often used to express complex relationships between entities or events, and they can add complexity, nuance, and interest to sentence structures.\n"
113+
"LDPCs can be found in many languages, including English, Spanish, French, Chinese, Japanese, and others. They can add complexity and nuance to a sentence, allowing speakers to convey more information about the relationships between entities involved in an action.\n"
117114
]
118115
}
119116
],
@@ -143,7 +140,7 @@
143140
"name": "stdout",
144141
"output_type": "stream",
145142
"text": [
146-
"The capital of France is Paris!\n"
143+
"The capital of France is Paris.\n"
147144
]
148145
}
149146
],
@@ -182,9 +179,7 @@
182179
"name": "stdout",
183180
"output_type": "stream",
184181
"text": [
185-
"I'm happy to help! However, I need more information about where you're planning to go. Could you please tell me the location or city you're interested in visiting? That way, I can give you personalized recommendations on what to see and do.\n",
186-
"\n",
187-
"If you don't have a specific destination in mind, feel free to ask me about popular tourist spots, landmarks, museums, parks, or any other type of attraction. I'd be happy to help!\n"
182+
"I'm happy to help! However, I need more information about the place you're referring to. Could you please specify where you are or would like to visit? Is it a city, country, landmark, or attraction? The more details you provide, the better I can assist you in recommending what to see and do.\n"
188183
]
189184
}
190185
],

0 commit comments

Comments
 (0)