You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Alessandro Benedetti (JIRA)" <ji...@apache.org> on 2016/08/24 08:43:21 UTC

[jira] [Updated] (SOLR-9429) Spellcheck Token Filter

     [ https://issues.apache.org/jira/browse/SOLR-9429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alessandro Benedetti updated SOLR-9429:
---------------------------------------
    Description: 
This issue is about the design and implementation of a new token filter called : SpellcheckTokenFilter

This new token filter takes in input the token stream and return collated tokens, based on a Dictionary.
The aim of the token filter is to fix mispelled word and index the correct token.

e.g.
Given dictionary d1 :
gaming
gamer

Given text t1 for the field f1 :
gamign is a strong industry

The token filter will return in output :
gaming is a strong industry

A first possible design is to mimic the approach used in the spellchecker.
Building an FST for the dictionary, then building the levenstein FST for each token and doing the intersection .

Possible application could be for OCR generated text and other use cases when misspelled words are common and we want to clean them up at indexing time.
This can possibly be used in a complex analyser adding a stemmer afterward.

This is draft idea coming from a blog comment of Shyamsunder.
Feedback and additional ideas are welcome!

  was:
GIving in input a configured dictionary ( like the spellcheck component does)
It could be useful to have a token filter that is able to produce from an original misspelled token, the spell checked version.

Of course can be possible to keep the original as well.
And add a number of collateral features.

This is draft idea coming from a blog post of Shyamsunder.
Feedback and additional ideas are welcome!


> Spellcheck Token Filter
> -----------------------
>
>                 Key: SOLR-9429
>                 URL: https://issues.apache.org/jira/browse/SOLR-9429
>             Project: Solr
>          Issue Type: New Feature
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Schema and Analysis
>            Reporter: Alessandro Benedetti
>            Priority: Minor
>
> This issue is about the design and implementation of a new token filter called : SpellcheckTokenFilter
> This new token filter takes in input the token stream and return collated tokens, based on a Dictionary.
> The aim of the token filter is to fix mispelled word and index the correct token.
> e.g.
> Given dictionary d1 :
> gaming
> gamer
> Given text t1 for the field f1 :
> gamign is a strong industry
> The token filter will return in output :
> gaming is a strong industry
> A first possible design is to mimic the approach used in the spellchecker.
> Building an FST for the dictionary, then building the levenstein FST for each token and doing the intersection .
> Possible application could be for OCR generated text and other use cases when misspelled words are common and we want to clean them up at indexing time.
> This can possibly be used in a complex analyser adding a stemmer afterward.
> This is draft idea coming from a blog comment of Shyamsunder.
> Feedback and additional ideas are welcome!



--
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