[oXygen-user] Feature request: Improvement of Japanese search for WebHelp
Wed Apr 15 10:13:49 CDT 2015
> What would the custom Japanese user dictionary add to the build-time
> indexing process:
> - a list of domain-specific words
It will be the most important.
> - or some generic tweaks that would allow matching a client-side search
> the generic tweaks added by a custom user
> dictionary would not be needed anymore. Could you give a short example
Suppose there is a Japanese sentence whose structure resembles "OVERPAYPALEBAYBERRY."
Kuromoji or any analyzer may segment it as "over,paypal,ebay,berry", "overpay,pale,bayberry", "over,pay,pal,e,bay,berry" or so, depending on its built-in dictionary and method. There is no single authoritative answer.
With one of such imperfect indexes, the user may search for 'over', 'overpay', 'paypal', 'pale', 'ale', 'ebay', 'bay', 'bayberry', 'verpaypalebaybe' or even 'e'... (The last two may look ridiculous, but such array of characters can be a self-contained atomic well-known word in the Japanese language.)
Kuromoji is clever enough to return multiple terms such as "(paypal|pay,pal),(ebay|e,bay)", but that would never be perfect. Hence the user dictionary can play a critical role to let the analyzer know the novel word "verpaypalebaybe" or boost the priority of "ale".
From: <> on behalf of Support Oxygen XML Editor (Sorin Ristache) <>
Sent: Wednesday, April 15, 2015 21:14
To: T. Hatanaka;
Subject: Re: [oXygen-user] Feature request: Improvement of Japanese search for WebHelp
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
oXygen-user mailing list
More information about the oXygen-user