Skip to content

Commit d44d5c4

Browse files
committed
Ch5 minor fixes
1 parent 9bc5428 commit d44d5c4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: Ch5/01_KPE.ipynb

+3-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@
9191
"#Let us use a sample text file, nlphistory.txt, which is the text from the history section of Wikipedia's\n",
9292
"#page on Natural Language Processing \n",
9393
"#https://en.wikipedia.org/wiki/Natural_language_processing\n",
94-
"mytext = open('/home/etherealenvy/Downloads/practical-nlp/Ch2/Data/nlphistory.txt').read()\n",
94+
"path = 'PATH TO REPO'\n",
95+
"\n",
96+
"mytext = open(path+'/practical-nlp/Ch2/Data/nlphistory.txt').read()\n",
9597
"\n",
9698
"#convert the text into a spacy document.\n",
9799
"doc = textacy.make_spacy_doc(mytext, lang=en)"

Diff for: Ch5/06_EntityLinking-AzureTextAnalytics.ipynb

+2-4
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"This notebook shows how to extract Named Entity linking information using Azure Text Analytics API.\n",
8-
"\n",
9-
"https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/\n",
7+
"This notebook shows how to extract Named Entity linking information using [Azure Text Analytics API](https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/)\n",
108
"\n",
119
"There is a 7 day trial version, which gives you an API key to play with and explore stuff. "
1210
]
@@ -274,7 +272,7 @@
274272
"name": "python",
275273
"nbconvert_exporter": "python",
276274
"pygments_lexer": "ipython3",
277-
"version": "3.6.8"
275+
"version": "3.6.10"
278276
}
279277
},
280278
"nbformat": 4,

0 commit comments

Comments
 (0)