[ https://issues.apache.org/jira/browse/LUCENE-889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12499210 ]
Karl Wettin commented on LUCENE-889: ------------------------------------ Hoss Man [25/May/07 11:14 AM] > > In order to get the punctuation, one needs to use a plain StandardTokenizer. > > I believe that is Erik's point. StandardTokenizer is a public class that many > people use directly (specifically: every one who has ever posted a question > about changing the behavior of StandardAnalyzer and been given the stock > answer "write your own Analyzer that uses the same Tokenizer and > change/adds the list of TokenFilters. Aha. My JavaCC-skills aren't that great. I'll look in to it. I presume something like isTokenizingPuctuation() && token = <PUNCTUATION> | is possible. > 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]