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

Grant Ingersoll updated LUCENE-1133:
------------------------------------

    Attachment: LUCENE-1133.patch

Here's a completely back-compatible (if there is such a thing for something 
that hasn't been released) patch that allows for 3 different output options:

1. Tokens only (the current functionality)
2. Untokenized only
3. Both

In case 2, a Set of Wiki types is passed in, and any token that has that type 
will not be tokenized.  Case 3 is the combination of 1 and 2, with the 
untokenized token output first.

See the unit test for how it should work.

I will commit after the release, pending improvements, etc.

> WikipediaTokenizer needs a way of not tokenizing certain parts of the text
> --------------------------------------------------------------------------
>
>                 Key: LUCENE-1133
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1133
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: contrib/wikipedia
>    Affects Versions: 2.3
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>         Attachments: LUCENE-1133.patch
>
>
> It would be nice if the WikipediaTokenizer had a way of, via a flag, leaving 
> categories, links, etc. as single tokens (or at least some parts of them)
> Thus, if we came across [[Category:My Big Idea]] there would be a way of 
> outputting, as a single token "My Big Idea".  
> Optionally, it would be good to output both "My Big Idea" and the individual 
> tokens as well.
> I am not sure of how to do this in JFlex, so any insight would be appreciated.

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

Reply via email to