Skip to content

Commit 9f51163

Browse files
authored
Add files via upload
1 parent 1e31f05 commit 9f51163

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Chapter 09/NLTK Chapter 9 - Notes and Exercises.ipynb

+10-10
Original file line numberDiff line numberDiff line change
@@ -1795,12 +1795,12 @@
17951795
"source": [
17961796
"The point of this exercise didn't become clear to me until I started doing it. Water is uncountable, so it can be used with and without an determiner. However, countable nouns can only be used without a determiner if they are plural.\n",
17971797
"\n",
1798-
"*Sing* is a bitransitive verb, meaning it can be transitive or intransitive, while *to be* is a copula. Since I wasn't going use this grammar for anything but the sentences in this exercise, I eliminated the productions for `TV` and `IV` and replaced them with `BV` and `Cop`."
1798+
"*Sing* is a ambitransitive verb, meaning it can be transitive or intransitive, while *to be* is a copula. Since I wasn't going use this grammar for anything but the sentences in this exercise, I eliminated the productions for `TV` and `IV` and replaced them with `ambiV` and `Cop`."
17991799
]
18001800
},
18011801
{
18021802
"cell_type": "code",
1803-
"execution_count": 206,
1803+
"execution_count": 127,
18041804
"metadata": {},
18051805
"outputs": [],
18061806
"source": [
@@ -1816,7 +1816,7 @@
18161816
"NP[NUM=pl, Count = ?c] -> N[NUM=pl, Count = ?c]\n",
18171817
"NP[NUM=?n, Count = False] -> N[NUM=?n, Count = False]\n",
18181818
"# VP expansion productions\n",
1819-
"VP[TENSE=?t, NUM=?n] -> BV[TENSE=?t, NUM=?n]\n",
1819+
"VP[TENSE=?t, NUM=?n] -> ambiV[TENSE=?t, NUM=?n]\n",
18201820
"VP[TENSE=?t, NUM=?n] -> Cop[TENSE=?t, NUM=?n] ADJ\n",
18211821
"# ###################\n",
18221822
"# Lexical Productions\n",
@@ -1825,8 +1825,8 @@
18251825
"N[NUM=sg, Count = True] -> 'boy' | 'Boy' \n",
18261826
"N[NUM=sg, Count = False] -> 'water' | 'Water'\n",
18271827
"N[NUM=pl, Count = True] -> 'Boys' | 'boys'\n",
1828-
"BV[TENSE=pres, NUM=sg] -> 'sings'\n",
1829-
"BV[TENSE=pres, NUM=pl] -> 'sing'\n",
1828+
"ambiV[TENSE=pres, NUM=sg] -> 'sings'\n",
1829+
"ambiV[TENSE=pres, NUM=pl] -> 'sing'\n",
18301830
"Cop[TENSE=pres, NUM=sg] -> 'is'\n",
18311831
"Cop[TENSE=pres, NUM=pl] -> 'are'\n",
18321832
"ADJ -> 'precious'\n",
@@ -1838,7 +1838,7 @@
18381838
},
18391839
{
18401840
"cell_type": "code",
1841-
"execution_count": 207,
1841+
"execution_count": 128,
18421842
"metadata": {},
18431843
"outputs": [
18441844
{
@@ -1847,7 +1847,7 @@
18471847
"text": [
18481848
"(S[]\n",
18491849
" (NP[+Count, NUM='sg'] (Det[] the) (N[+Count, NUM='sg'] boy))\n",
1850-
" (VP[NUM='sg', TENSE='pres'] (BV[NUM='sg', TENSE='pres'] sings)))\n"
1850+
" (VP[NUM='sg', TENSE='pres'] (ambiV[NUM='sg', TENSE='pres'] sings)))\n"
18511851
]
18521852
}
18531853
],
@@ -1862,7 +1862,7 @@
18621862
},
18631863
{
18641864
"cell_type": "code",
1865-
"execution_count": 213,
1865+
"execution_count": 129,
18661866
"metadata": {},
18671867
"outputs": [],
18681868
"source": [
@@ -1875,7 +1875,7 @@
18751875
},
18761876
{
18771877
"cell_type": "code",
1878-
"execution_count": 209,
1878+
"execution_count": 130,
18791879
"metadata": {},
18801880
"outputs": [
18811881
{
@@ -1884,7 +1884,7 @@
18841884
"text": [
18851885
"(S[]\n",
18861886
" (NP[+Count, NUM='pl'] (Det[] The) (N[+Count, NUM='pl'] boys))\n",
1887-
" (VP[NUM='pl', TENSE='pres'] (BV[NUM='pl', TENSE='pres'] sing)))\n"
1887+
" (VP[NUM='pl', TENSE='pres'] (ambiV[NUM='pl', TENSE='pres'] sing)))\n"
18881888
]
18891889
}
18901890
],

0 commit comments

Comments
 (0)