lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl Wettin (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-889) Standard tokenizer with punctuation output
Date Fri, 25 May 2007 15:31:16 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12499117
] 

Karl Wettin commented on LUCENE-889:
------------------------------------

Erik Hatcher [25/May/07 06:57 AM]
> This patch concerns me. This changes default behavior
> in a very basic and commonly used piece of Lucene. At 
> the very least this should be made entirely optional and
> off by default.
>
> Thoughts? 

It is off by default. The punctuation comes out from the tokenizer, but the StandardAnalyzer
uses a StandardFilter, and the StandardFilter will filter out the punctuation tokens. In order
to get the punctuation, one needs to use a plain StandardTokenizer.

> Standard tokenizer with punctuation output
> ------------------------------------------
>
>                 Key: LUCENE-889
>                 URL: https://issues.apache.org/jira/browse/LUCENE-889
>             Project: Lucene - Java
>          Issue Type: Improvement
>    Affects Versions: 2.1
>            Reporter: Karl Wettin
>            Priority: Trivial
>         Attachments: standard.patch, test.patch
>
>
> This patch adds punctuation (comma, period, question mark and exclamation point)  tokens
as output from the StandardTokenizer, and filters them out in the StandardFilter.
> (I needed them for text classification reasons.)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


Mime
View raw message