practical-machine-learning-with-python
practical-machine-learning-with-python copied to clipboard
Master the essential skills needed to recognize and solve complex real-world problems with Machine Learning and Deep Learning by leveraging the highly popular Python Machine Learning Eco-system.
The word ain't produces "as not" because expand_contractions has the following code: `expanded_contraction = first_char + expanded_contraction[1:]` Ain't does not fit this general rule
Hi, In the chapter 7 :: https://github.com/dipanjanS/practical-machine-learning-with-python/blob/master/notebooks/Ch07_Analyzing_Movie_Reviews_Sentiment/Text%20Normalization%20Demo.ipynb , please use contractions_dict instead of "import CONTRACTION_MAP". Also, please correct the spaCy load.
I think this would benefit from a requirements file with pinned versions. I'm getting stuck as usual on packages having conflicting/ incorrect versions in my conda environment.
Index Error
When execute following statement from .ipynb file `**neg_idx = df[(df.news_category=='technology') & (df.sentiment_score == -15)].index[0]** I get following IndexError Traceback (most recent call last) in ----> 5 neg_idx = df[(df.news_category=='technology') &...
Easier way to download "en_vectors_web_lg" model in spacy
The procedure for downloading the **"en_vectors_web_lg"** in spacy. by downloading and unzipping the file, and shifting it to the appropriate directory, as illustrated [here](https://github.com/dipanjanS/practical-machine-learning-with-python/blob/master/bonus%20content/feature%20engineering%20text%20data/Feature%20Engineering%20Text%20Data%20-%20Advanced%20Deep%20Learning%20Strategies.ipynb) is long and cumbersome. Instead of...
expand contractions is not working as expected
When there are more than one single quote(') such as "you'll've" , Expand contractions in text_normalizer.py is giving output as "you willve" but the expected output is "you will have"
word.lemma_ will lowercase the token
`text = ' '.join([word.lemma_ if word.lemma_ != '-PRON-' else word.text for word in text])` In the latest Spacy, after I run the code, the text will be lowercased. Actually, I...
datasets
is there a link for the datasets used in this book
Bug-Fix Issue-#29
#29 Issue **Errors:** 1. AttributeError: 'Series' object has no attribute 'ix' 2. TypeError: Addition/subtraction of integers and integer-arrays with Timestamp is no longer supported. Instead of adding/subtracting `n`, use `n...
As of 2023-12-26, the notebook notebooks/Ch04_Feature_Engineering_and_Selection/Feature Engineering on Numeric Data.ipynb doesn’t render on the GitHub site, but instead results in an error page.