Very strange (to me) problem


I'm working through a python tutorial on natural language processing. There is a code sample using a for loop, thus:

my_stop_words = ['say', 'be', 'said', 'says', 'saying', 'field']
for stopword in my_stop_words:
    lexeme = nlp.vocab[stopword]
    lexeme.is_stop = True

in Linux, PyCharm complains that there is a typo in "stopword".

In Windows it does not complain.

Can anyone explain what is going on here. I'm confused and too much of a novice to be able to figure it out.

Thank you

Comment actions Permalink

Looks like nlp-module issue.

Comment actions Permalink

This is a result of proofreading inspection which can be disabled, see the screenshot. Also, you can add this word to a dictionary, from the context menu of the highlighted word-> more actions->add to dictionary.



Please sign in to leave a comment.