我尝试使用此this gem,但即使它在安装后显示为gem list
,irb中的require 'stopwords-filter'
也会导致LoadError: cannot load such file -- stopwords-filter
}。
为了确保我实际上能够安装和使用宝石,我还尝试安装this gem,我可以require
就好了。一切正常。
我对stopwords-filter
缺少什么?
谢谢!
答案 0 :(得分:1)
即使gem名为stopwords-filter
,require
语句也只是stopwords
:
require 'stopwords'