Skip to content

Commit e2e7e1b

Browse files
committed
Revert "Merge branch 'master' into tutorials_greek"
This reverts commit 80cf42f, reversing changes made to 831c49b.
1 parent 80cf42f commit e2e7e1b

3 files changed

Lines changed: 10 additions & 11 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/ # To be adapted to your file system"
437+
"!ls -l /home/kyle/cltk_data/originals/"
438438
]
439439
}
440440
],

3 Basic NLP.ipynb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -711,10 +711,8 @@
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-
"\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",
714+
"# observe no stopwords\n",
715+
"#! consider others you might want to add to the Latin stops list\n",
718716
"print(cato_no_stops)"
719717
]
720718
}

9 Lexical Dispersion Plot.ipynb

Lines changed: 7 additions & 6 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,16 +72,17 @@
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\")"
84+
" print(\"Language not presently covered by CLTK or wrong language code\") \n",
85+
" \n"
8586
]
8687
},
8788
{

0 commit comments

Comments
 (0)