As part of an effort to centralize and consolidate similar logic, Section-Topics can provide the section alignment learning project with part of the input required to train the model that aligns section titles of Wikipedia articles.
Tasks
- integrate extraction logic from SEAL's sections.py into section topics' parse function
- remove sections.py
- let embeddings.py take as input relevant fields of section topic's main dataset
- let features.py (which uses blue links as input) take relevant inputs (blue links) from section topic's main dataset
- make the release CI job build a working package - try bumping sentence_transformers first, issues stem from conda/pip installing wrong direct dependencies, e.g., nltk and scipy. - done in T389323: seal_dag.py's encode_embeddings task fails.
Update
We have two callers of a wikitext parsing function, so the initial goal was to simplify that.
However, It looks like cons are more than pros:
- the only pro is to remove one Spark job - sections.py
- cons
- introduce a DAG dependency cycle that needs to be broken - SEAL would depend on section topics, which depends on section titles denylist, which depends on SEAL
- the cycle could be broken if section topics generated an intermediate dataset for SEAL, by waiting for Wikidata and wikitext only. This would introduce a new job
- section topics filters badly parsed pages upstream, so we'd need to adapt this behavior for SEAL
- SEAL processes less languages than section topics
Differences seem large enough to keep the implementation separate.