Page MenuHomePhabricator

[Research spike, 4 hours] Research Chinese language analyzers
Closed, ResolvedPublic


Review Chinese Analyzers previously found and look for others. Then, we'll test the analyzers to see if they really are better.

Event Timeline

Below are my notes on analyzers for Chinese.

My plan is to compare STConvert to ZhConversion.php for conversion of Traditional to Simplified characters, and then compare SmartCN, IK, and MMSEG, against each other after Simplified conversion using STConvert (as-is or updated based on ZhConversion.php comparison). All are available with ES5 compatible plugin wrappers. More details in T158203.

Chinese (v5.1.2) (v6.0.0.a)
Elastic-supported SmartCN, Simplified Chinese only (~1 week) (5 years?)
IK, linked by Elasticsearch, updated to ES 5.1.2
supports customized dictionary (i.e., specific problems can probably be fixed)
Confirmed with Elasticsearch plugin developer (Medcl) that this is simplified only (~1 week) (2 months)
MMSEG, linked by Elasticsearch, updated to ES 5.1.2
Confirmed with Elasticsearch plugin developer (Medcl) that this is simplified only (2014)
“Efficient Chinese Search with Elasticsearch”
mentions that CJK (bigrams) isn’t terrible (should we look into it again?)
suggests converting Traditional to Simplified for searching.
mentions paoding (below) (7 years?) (3 years)
old, not maintained, but reputed to have very good dictionaries (mentioned in blog above)
simplified only (7 days)
convert traditional to simplified or vice versa
is an elasticsearch plugin, compatible with ES5
Data file (for comparison to ZhConversion.php): (12 years!)
"The complete training, testing, and gold-standard data sets, as well as the scoring script, are available"
Even though this is old, it seems like a good framework for evaluation. It also includes some scoring results (from 2005) as a baseline for performance (median looks to be 92%-95% recall and precisions)
ICU Anlaysis plugin, "including better analysis of Asian languages" (16 days ago)
MediaWiki traditional/simplified conversion module

Traditional /Simplified Converters (useful links)