You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2015/12/21 19:09:46 UTC
[jira] [Commented] (LUCENE-6939) BlendedInfixSuggester to support
exponential reciprocal BlenderType
[ https://issues.apache.org/jira/browse/LUCENE-6939?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15066820#comment-15066820 ]
Michael McCandless commented on LUCENE-6939:
--------------------------------------------
Thanks [~arcadius], the patch looks good, except this is an experimental API so we don't need back-compat here (don't need to add {{LINEAR}} and {{RECIPROCAL}}. Also, instead of adding a new constructor, can you just add the new parameter to the existing "expert" constructor?
> BlendedInfixSuggester to support exponential reciprocal BlenderType
> -------------------------------------------------------------------
>
> Key: LUCENE-6939
> URL: https://issues.apache.org/jira/browse/LUCENE-6939
> Project: Lucene - Core
> Issue Type: Improvement
> Components: modules/spellchecker
> Affects Versions: 5.4
> Reporter: Arcadius Ahouansou
> Priority: Minor
> Labels: suggester
> Attachments: LUCENE_6939.patch
>
>
> The orignal BlendedInfixSuggester introduced in LUCENE-5354 has support for:
> - {{BlenderType.POSITION_LINEAR}} and
> - {{BlenderType.POSITION_RECIPROCAL}} .
> These are used to score documents based on the position of the matched token i.e the closer is the matched term to the beginning, the higher score you get.
> In some use cases, we need a more aggressive scoring based on the position.
> That's where the exponential reciprocal comes into play
> i.e
> {{coef = 1/Math.pow(position+1, exponent)}}
> where the {{exponent}} is a configurable variable.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org