The file case-insensitive.zip has all the code and samples you need to try it yourself.
文件 case-insensitive.zip 包含了您亲自试一试所需的所有代码和样本。
Hint: multiple pattern-matching blocks may be necessary. (This article's code download includes one solution - but I hope you'll try it yourself before peeking.)
提示:需要使用多个模式匹配代码块(本文的代码下载中包含了一个解决方案—但是建议您在查看之前首先自己进行尝试)。
There is some subjectivity in deciding whether a word is positive, negative, or neutral, but if you try it yourself, I think you'll find that most of the time it's fairly easy to classify words.
在确定一个词是积极、消极还是中性时具有少许主观性,但如果你自己试试,我想你也会发现,大多数时候,给词汇分类还是比较容易的。
应用推荐