Skip to content
Snippets Groups Projects
Verified Commit 41038288 authored by STEVAN Antoine's avatar STEVAN Antoine :crab:
Browse files

reword the section to archive to the LMS

parent 308e7019
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,6 @@ From a programming point of view, the first objectives of this project are to le
- [_Q3.2._](#q32-toc)
- [_Q4. Compression with Huffman_](#q4-compression-with-huffman-toc)
- [_Upload your work_](#compress-the-files-and-upload-them-to-the-lms-toc)
- [_Fill the quizz on the LMS_](#fill-the-quizz-on-the-lms-toc)
![Languages](./assets/languages.jpg)
......@@ -156,20 +155,11 @@ Basically speaking, the maximum level of compression that can be obtained with t
$$\frac{7\times \textrm{number of characters in the initial text file}}{\textrm{number of characters in the compressed file}}$$
4. How to improve the level of compression ? The occurrence frequencies of each character only capture the redundancy of the characters, but not the one between consecutive characters... So, you can do the same exercice by analyzing the occurence frequencies of all 2-letter (or more) words. This should allow you to capture more redundancy of the text and then to improve the compression ratio.
## Compress the files and [upload them to the LMS](https://lms.isae.fr/mod/assign/view.php?id=107859) [[toc](#table-of-content)]
- [ ] `src/occurrence_frequencies.py`
- [ ] `src/enhanced_occurrence_frequencies.py`
- [ ] `src/text_length.py`
- [ ] `src/data_compression.py`
To compress several files into one archive, select all the files, then, right-click and choose compress in the menu. Choose the `.zip` extension for the new archive.
alternately, you can use one of the following commands from a shell:
## Compress the files and upload them to the LMS [[toc](#table-of-content)]
- open a terminal
- go into the folder containing your project
- use the `zip` command to compress your project
```shell
tar -czvf language_detection_LASTNAME_FIRSTNAME.zip src/occurrence_frequencies.py src/enhanced_occurrence_frequencies.py src/text_length.py src/data_compression.py
```
zip -r project.zip . -x "venv/**" ".git/**"
```
zip language_detection_LASTNAME_FIRSTNAME.zip src/occurrence_frequencies.py src/enhanced_occurrence_frequencies.py src/text_length.py src/data_compression.py
```
## Fill the [quizz on the LMS](https://lms.isae.fr/mod/quiz/view.php?id=107858) [[toc](#table-of-content)]
- upload the ZIP archive to the [LMS](https://lms.isae.fr/mod/assign/view.php?id=116608&action=editsubmission)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment