As I was reviewing the Japanese data, I realized that it makes sense to go ahead and unpack the CJK analyzer as a back up in general if Kuromoji is not installed, and specifically in our case if Kuromoji doesn't pan out. It is also a backup for Korean if Nori is not installed and could be used for Chinese as well (though it is not surrently configured as a fallback for Chinese).
Description
Description
Details
Details
Related Changes in Gerrit:
| Subject | Author | Repo | Branch | Lines +/- | |
|---|---|---|---|---|---|
| Unpack CJK Analyzer | Tjones | mediawiki/extensions/CirrusSearch | master | +1 K -18 |
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Resolved | TJones | T318269 Test and analyze Kuromoji & Sudachi Japanese language analyzers | |||
| Resolved | TJones | T326822 Unpack CJK Analyzer | |||
| Resolved | TJones | T327720 Reindex Japanese-language wikis to use unpacked CJK analyzer |
Event Timeline
Comment Actions
Change 879083 had a related patch set uploaded (by Tjones; author: Tjones):
[mediawiki/extensions/CirrusSearch@master] Unpack CJK Analyzer
Comment Actions
Full write up on Mediawiki.
Unpacked cjk analyzer:
- Replaced custom stopword list (all English words) with _english_ stopword list, which is almost the same
- Refactor to allow "text" field to use the standard tokenizer and "plain" to (continue to) use ICU tokenization
- Added char_filter to map (han)dakuten to combining forms to keep icu_normalizer from (incorrectly) adding spaces when normalizing them
There's a much bigger impact on the Wiktionary sample than the Wikipedia sample. Most impact is on Latin text, and next biggest impact is on other non-CJK scripts—hence the bigger impact on Wiktionary.
Comment Actions
Change 879083 merged by jenkins-bot:
[mediawiki/extensions/CirrusSearch@master] Unpack CJK Analyzer