3 ms·
I ran across some code once for descrambling data that had been incorrectly processed like that, which I found common in legal documents. It's an interesting pr
by perl4ever 7y ago
I ran across some code once for descrambling data that had been incorrectly processed like that, which I found common in legal documents. It's an interesting problem, because strictly speaking, it's lossy, but you can use probabilities to figure out something plausible. You can decode/encode one thing as another, or you can decode/encode multiple times...
- OkGoDoIt 7y agoAny chance you have a link? I’ve had implement solutions to this myself and it’s very tedious. If someone has built a more complete solution I would love to just use that instead
- bulatb 7y agoThis HN thread has some links and discussion: https://news.ycombinator.com/item?id=16103356 https://news.ycombinator.com/item?id=16103356
- perl4ever 7y agoThat might be what I'm remembering; then again, I don't really do Python, so maybe it was something else. I doubt it was anything better than the link above, regardless.