[oXygen-user] Feature request: Improvement of Japanese search for WebHelp
Support Oxygen XML Editor (Sorin Ristache)
Wed Apr 15 07:14:32 CDT 2015
Thank you for telling us, we will try to integrate the Kuromoji
analyzer into the Apache Lucene system that indexes the WebHelp pages.
What would the custom Japanese user dictionary add to the build-time
- a list of domain-specific words that are relevant for the domain of
the current DITA map and that are missing in the generic dictionary that
comes with the Kuromoji analyzer,
- or some generic tweaks that would allow matching a client-side search
term with a partial match in the index built based on the WebHelp pages?
I thought Kuromoji was a morphological analyzer that builds the index so
that a client-side search term will be matched with an indexed term
picked up from a WebHelp page even though the indexed term is only a
partial match, which means the generic tweaks added by a custom user
dictionary would not be needed anymore. Could you give a short example
<oXygen/> XML Editor
On 4/15/2015 2:19 PM, T. Hatanaka wrote:
> That will be of great help!
> When you have a test or experimental build in the future, let me know and I'll be happy to test it, though I'm no expert.
> In the meantime, I took a look at the result of the following Lucene/Kuromoji code with Japanese inputs.
> UserDictionary userDic = new UserDictionary( new FileReader( new File( "userdic.txt" ) ) );
> Analyzer analyzer = new JapaneseAnalyzer( userDic, JapaneseTokenizer.Mode.SEARCH,
> JapaneseAnalyzer.getDefaultStopSet(), JapaneseAnalyzer.getDefaultStopTags() );
> These default parameters work fairly well even without UserDictionary().
> So, in your future design time, please also consider making the UserDictionary() file path configurable via a WebHelp transformation parameter.
> T. Hatanaka
> From: <> on behalf of Support Oxygen XML Editor (Sorin Ristache) <>
> Sent: Wednesday, April 15, 2015 00:17
> To: T. Hatanaka;
> Subject: Re: [oXygen-user] Feature request: Improvement of Japanese search for WebHelp
> On 4/12/2015 5:26 AM, T. Hatanaka wrote:
>> That being said, it would still benefit a lot to integrate sophisticated analyzers, even if it's only at build-time. Run-time ones are less required, I guess. When the Japanese people search Web, they, human beings, usually perform a kind of tokenization and normalization by themselves.
>> i.e. They do not usually enter "BROWNFOXJUMPS" in the search text box. In most cases we can expect them to type "BROWN FOX JUMP".
>> Actually "Please enter keywords separated by spaces" has been a common instruction found on the Japanese search UI. People have got used to it.
> Thank you for letting us know. In a future version we will integrate the
> Kuromoji analyzer in our Apache Lucene customization that runs on the
> generated WebHelp pages for building the WebHelp search index. This
> index will offer relevant search result in the WebHelp pages only for
> Japanese search terms entered in the browser that are properly separated
> with space characters.
>> Here's another piece of news:
>> I haven't tried it, but expect some difficulties. I heard it required a 17MB dictionary.
> tokenization of the search string entered by the user may take forever
> separated search terms entered by the user, as you suggested above.
>> T. Hatanaka
> Best regards,
> <oXygen/> XML Editor
> oXygen-user mailing list
> oXygen-user mailing list
More information about the oXygen-user