我正在使用 Lucene Java framework 编写一个搜索引擎.
我想要做的是创建 Ruby 源代码文件的索引。为此,我希望可以选择使用停用词过滤器,即我希望在索引文件时忽略 ruby 语言的停用词。
--> 有谁知道 Ruby 停用词的完整列表吗? (例如 def、end、模块……)
令人惊讶的是,Google 没有向我提供答案...因此,我们将不胜感激!
最佳答案
alias and BEGIN begin break case class def defined? do else elsif END end ensure false for if in module next nil not or redo rescue retry return self super then true undef unless until when while yield
来自Ruby QuickRef .
就其值(value)而言,这些通常被称为“保留字” - 我通过谷歌搜索找到了这个列表 Ruby reserved words .
关于ruby - Ruby 的停用词列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1920750/