You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Adrien Grand (JIRA)" <ji...@apache.org> on 2013/05/07 01:06:16 UTC

[jira] [Updated] (LUCENE-3907) Improve the Edge/NGramTokenizer/Filters

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

Adrien Grand updated LUCENE-3907:
---------------------------------

    Attachment: LUCENE-3907.patch

Here is a patch that fixes EdgeNGramTokenizer and EdgeNGramTokenFilter so that they pass TestRandomChains.

It also deprecates Side.BACK so when committing, I propose to follow Steve's advice to rename them to LeadingNGramTokenizer and LeadingNGramTokenFilter in trunk.
                
> Improve the Edge/NGramTokenizer/Filters
> ---------------------------------------
>
>                 Key: LUCENE-3907
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3907
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Michael McCandless
>            Assignee: Uwe Schindler
>              Labels: gsoc2013
>             Fix For: 4.3
>
>         Attachments: LUCENE-3907.patch
>
>
> Our ngram tokenizers/filters could use some love.  EG, they output ngrams in multiple passes, instead of "stacked", which messes up offsets/positions and requires too much buffering (can hit OOME for long tokens).  They clip at 1024 chars (tokenizers) but don't (token filters).  The split up surrogate pairs incorrectly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org