Python package for WikiMedia dump processing (Wiktionary, Wikipedia etc). Wikitext parsing, template expansion, Lua module execution. For data extraction, bulk syntax checking, error detection, and offline formatting.
95
stars
23
forks
source link
Remove unused Chinese Wiktionary analyze template code #308
Closed
xxyzz closed 2 months ago
Currently only en edition code use
Wtp.analyze_templates()
, other editions don't use this feature to avoid unexpected node structure.In most cases overwrite the section title templates that need pre-expand is good enough.
Even if some editions do need to find pre-expand templates, the code better be written in wiktextract package's extractor code.