Skip to content

Commit 2d8814c

Browse files
committed
fix details
1 parent 5874818 commit 2d8814c

3 files changed

Lines changed: 11 additions & 10 deletions

File tree

2 Import corpora.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@
434434
}
435435
],
436436
"source": [
437-
"!ls -l /home/kyle/cltk_data/originals/"
437+
"!ls -l /home/kyle/cltk_data/originals/ # To be adapted to your file system"
438438
]
439439
}
440440
],

3 Basic NLP.ipynb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -711,8 +711,10 @@
711711
],
712712
"source": [
713713
"cato_no_stops = [w for w in cato_cltk_word_tokens_no_punt if not w in STOPS_LIST]\n",
714-
"# observe no stopwords\n",
715-
"#! consider others you might want to add to the Latin stops list\n",
714+
"\n",
715+
"# Note that the stopwords are gone\n",
716+
"# Consider others you might want to add to the Latin stops list\n",
717+
"\n",
716718
"print(cato_no_stops)"
717719
]
718720
}

9 Lexical Dispersion Plot.ipynb

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@
6161
" words[i] = words[i].lower()\n",
6262
" if lang in [\"bn\",\"hi\",\"sa\"]:\n",
6363
" tokens= i_word(text)\n",
64-
" \n",
65-
" # Locating the matches of the words in the text. \n",
64+
"\n",
65+
" # Locating the matches of the words in the text\n",
6666
" x_length = len(tokens)\n",
6767
" y_length = len(words)\n",
6868
" x_list = []\n",
@@ -72,17 +72,16 @@
7272
" if tokens[i]==words[j]:\n",
7373
" x_list.append(i+1)\n",
7474
" y_list.append(j)\n",
75-
" \n",
76-
" #Creation of Dispersion Plot with Matplotlib's pyplot. \n",
75+
"\n",
76+
" # Creation of Dispersion Plot with Matplotlib's pyplot\n",
7777
" plt.plot(x_list, y_list, \"b|\", scalex=.1)\n",
7878
" plt.yticks(list(range(len(words))), words, color=\"b\")\n",
7979
" plt.ylim(-1, len(words))\n",
8080
" plt.xlabel(\"Lexical Distribution\")\n",
8181
" plt.show()\n",
82-
" \n",
82+
"\n",
8383
" else:\n",
84-
" print(\"Language not presently covered by CLTK or wrong language code\") \n",
85-
" \n"
84+
" print(\"Language not presently covered by CLTK or wrong language code\")"
8685
]
8786
},
8887
{

0 commit comments

Comments
 (0)