【发布时间】:2016-06-30 13:57:31
【问题描述】:
我在 nltk 文档 (http://www.nltk.org/_modules/nltk/sentiment/vader.html) 中找到了这段代码
if (i < len(words_and_emoticons) - 1 and item.lower() == "kind" and \
words_and_emoticons[i+1].lower() == "of") or \
item.lower() in BOOSTER_DICT:
sentiments.append(valence)
continue
有人能解释一下 if 条件是什么意思吗?
【问题讨论】:
标签: python