nehalh / raisin Goto Github PK
View Code? Open in Web Editor NEWCommand line application for file compression using Layered Huffman encoding.
Command line application for file compression using Layered Huffman encoding.
Cannot decode RIGHT SINGLE QUOTATION MARK, displays '\xe2\x80\x99s' instead.
This is a logic error.
What happens is, the program reads from the file and encodes perfectly. But while decoding, it simply is unable to decode the 'single quotation' symbol (and also escape characters like \n).
I assume the issue probably lies in the functions participating in decoding (unpack(), read_from_raisin_file(), write_to_file() )
I have fixed this temporarily by doing the following in the level_1
module:
Manually replaced right and left apostrophes with placeholders,
accommodated for escape sequences using .decode('unicode_escape')
replaced placeholders with actual characters.
NOTE: This is just a temporary fix. I believe there is a better solution for this logic error.
The size of the frequency dictionary varies depending on the scope. If the size is measured outside the for loop, the size increases by a few kilobytes.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.