Whole file
chakki-works/sumeval
The author described this change as “fix stemming import #4”. It counts as a record because the check below fails on the code as it stood at d37e4bdc6 and passes on aaed52863, with nothing else changed between the two runs.
Projectchakki-works/sumeval
Fix saved2018-01-20
Sharing licenceApache-2.0 · LICENSE
Change size+2 −2
What the code was meant to do, written into the code itself as a save note
fix stemming import #4
The change
| 76 | 76 | with p.open(encoding="utf-8") as f: | |
| 77 | 77 | lines = f.readlines() | |
| 78 | 78 | lines = [ln.strip() for ln in lines] | |
| 79 | - | lines = [ln for ln in lines if ln] | |
| 80 | - | self._stemming = dict(lines) | |
| 79 | + | pairs = [ln.split(" ", 1) for ln in lines if ln] | |
| 80 | + | self._stemming = dict(pairs) | |
| 81 | 81 | ||
| 82 | 82 | ||
| 83 | 83 | class BasicElement(): |
The check that tells the two apart
fail→pass·tests/test_lang_en.py::TestLangEN::test_stemming
Check file tests/test_lang_en.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.
Origin and history
The code before itd37e4bdc68702856483ac5f0f96407117ba64742
Broken version dated2018-01-20
Modulesumeval.metrics.lang.base_lang
Units changedBaseLang
Fingerprintfaff935d5fb9c2e7
Checked2026-08-18 by goldset/0.1
Every field above is generated by our program. None of it is written by hand.