text-analytics-with-python icon indicating copy to clipboard operation
text-analytics-with-python copied to clipboard

Keras and spaCy New Versions

Open obscrivn opened this issue 3 years ago • 1 comments

Keras and spacy have published updated versions and it breaks some of the follow-along book code.

obscrivn avatar Nov 23 '21 06:11 obscrivn

The first cell in the Ch01 - Natural Language Processing Basics gives a TypeError. Any way to get a correction on this cell? It is affecting the other cells.

import nltk import spacy import numpy as np import pandas as pd

following line is optional for custom vocabulary installation

you can use nlp = spacy.load('en')

nlp = spacy.load('en_core', parse=True, tag=True, entity=True)


TypeError Traceback (most recent call last) in 6 # following line is optional for custom vocabulary installation 7 # you can use nlp = spacy.load('en') ----> 8 nlp = spacy.load('en_core', parse=True, tag=True, entity=True)

TypeError: load() got an unexpected keyword argument 'parse'

ricodep32beb avatar Aug 29 '23 22:08 ricodep32beb