【问题标题】:Morphology interefering with Wordforms in Sphinx形态干扰 Sphinx 中的 Wordforms
【发布时间】:2016-03-21 17:16:27
【问题描述】:

在 'Children' 上使用 stem_en = 'Childrens',反之亦然,没有任何词形。

如果我以 wordforms 将 Children 映射到 Term2,则只有 Children 映射到 Term2,而不是 Childrens。假设我已经告诉 Sphinx 通过将 Child 添加到 wordform 来从形态中删除它。

有没有办法告诉 Sphinx 我希望使用 Children/Childrens stem_all 并且我想将 Children 映射到非形态相关的单词(Term2)?

【问题讨论】:

    标签: sphinx stemming


    【解决方案1】:

    你需要使用~操作

    http://sphinxsearch.com/docs/current.html#conf-wordforms

    从 2.1.1-beta 版开始,... 最后,如果一行以波浪号 ("~") 开头,则词形将应用在形态之后,而不是之前。

    因此,wordforms 不会实现词干异常,而是在词干版本上工作。

    【讨论】:

      猜你喜欢
      • 2015-02-25
      • 1970-01-01
      • 2018-02-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-07-17
      • 2018-01-04
      • 1970-01-01
      相关资源
      最近更新 更多