dipanjanS/text-analytics-with-python

Keras and spaCy New Versions

obscrivn opened this issue · 1 comments

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

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'