Very strange (to me) problem
Hello,
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
请先登录再写评论。
Looks like nlp-module issue.
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.