diff --git a/chapter8/7-NltkAnalysis.py b/chapter8/7-NltkAnalysis.py index 2f9f77c..03f86de 100644 --- a/chapter8/7-NltkAnalysis.py +++ b/chapter8/7-NltkAnalysis.py @@ -5,6 +5,6 @@ for sentence in sentences: if "google" in sentence.lower(): taggedWords = pos_tag(word_tokenize(sentence)) - for word in taggedWords: - if word[0].lower() == "google" and word[1] in nouns: - print(sentence) + for word in taggedWords: + if word[0].lower() == "google" and word[1] in nouns: + print(sentence)