fchollet / deep-learning-with-python-notebooks

Jupyter notebooks for the code samples of the book "Deep Learning with Python"
MIT License
18.59k stars 8.63k forks source link

Redundant lines #208

Open ayyucedemirbas opened 2 years ago

ayyucedemirbas commented 2 years ago

You already called the standardize() function in the tokenize() function.

def tokenize(self, text):
        text = self.standardize(text)
        return text.split()

Is it necessary to call it again before the tokenize() function call on the following lines?

https://github.com/fchollet/deep-learning-with-python-notebooks/blob/80410086921aa47b1478b9b84f9e155e019bda6d/chapter11_part01_introduction.ipynb?short_path=3ef20b7#L97

https://github.com/fchollet/deep-learning-with-python-notebooks/blob/80410086921aa47b1478b9b84f9e155e019bda6d/chapter11_part01_introduction.ipynb?short_path=3ef20b7#L106

Thank you so much!