General Information =================== This technical track is aimed at building basic skills for retrieving data from external WWW resources and processing it for future linguistic research. The idea is to automatically obtain a dataset that has a certain structure and appropriate content, perform morphological analysis using various natural language processing (NLP) libraries. :ref:`dataset-label`. Instructors: ------------ - `Klimova Margarita Andreevna `__ - linguistic track lecturer - `Lyashevskaya Olga Nikolaevna `__ - linguistic track lecturer - `Demidovskij Alexander Vladimirovich `__ - technical track lecturer - `Uraev Dmitry Yurievich `__ - technical track practice lecturer - `Kazyulina Marina Sergeevna `__ - technical track practice lecturer - `Kashchikhin Andrei Nikolaevich `__ - technical track expert - `Zharikov Egor Igorevich `__ - technical track assistant - `Novikova Irina Alekseevna `__ - technical track assistant - `Blyudova Vasilisa Mikhailovna `__ - technical track assistant - `Zaytseva Vita Vyacheslavovna `__ - technical track assistant Project Timeline ---------------- 1. **Scrapper**: 1. Short summary: Your code can automatically parse a media website you are going to choose, save texts and its metadata in a proper format. 2. Deadline: **April, 29**. 3. Format: each student works in their own PR. 4. Dataset volume: 5-7 articles. 5. Design document: :ref:`scrapper-label`. 2. **Pipeline**: 1. Short summary: Your code can automatically process raw texts from previous step, make point-of-speech tagging and basic morphological analysis. 2. Deadline: **May, 27**. 3. Format: each student works in their own PR. 4. Dataset volume: 5-7 articles. 5. Design document: :ref:`pipeline-label`. Lectures history ---------------- +------------+---------------------+--------------------------------------------+ | Date | Lecture topic | Important links | +============+=====================+============================================+ | 01.04.2024 | Lecture: | Lab no. 5 description | | | Introduction to | | | | technical track. | | +------------+---------------------+--------------------------------------------+ | 01.04.2024 | Seminar: Local | N/A | | | setup. Choose | | | | website. | | +------------+---------------------+--------------------------------------------+ | 08.04.2024 | Lecture: 3rd party | N/A | | | libraries. Browser | | | | headers. | | +------------+---------------------+--------------------------------------------+ | 08.04.2024 | Seminar: | `Листинг `__. | +------------+---------------------+--------------------------------------------+ | 15.04.2024 | Lecture: HTML | N/A | | | structure. ``bs4`` | | | | library. | | +------------+---------------------+--------------------------------------------+ | 15.04.2024 | Seminar: | `Листинг `__. | +------------+---------------------+--------------------------------------------+ | 22.04.2024 | Lecture: Filesystem | N/A | | | with ``pathlib``, | | | | dates. | | +------------+---------------------+--------------------------------------------+ | 22.04.2024 | Seminar: | `Листинг 1 `__. | | | | `Листинг 2 `__. | | | | `Листинг 3 `__. | +------------+---------------------+--------------------------------------------+ | 29.04.2024 | Introduction to lab | N/A | | | 6. CoNLLU format. | | +------------+---------------------+--------------------------------------------+ | 29.04.2024 | Lab 5 handover. | N/A | +------------+---------------------+--------------------------------------------+ | 13.05.2024 | Seminar: | `Листинг `__.| | | ``stanza``. | `Листинг `__. | +------------+---------------------+--------------------------------------------+ | 20.05.2024 | Seminar: | `Листинг `__. | +------------+---------------------+--------------------------------------------+ | 27.05.2024 | Lab 6 handover. | N/A | +------------+---------------------+--------------------------------------------+ | 03.06.2024 | Extra handover day | N/A | | | (with penalties) | | +------------+---------------------+--------------------------------------------+ You can find a more complete summary from lectures in :ref:`ctlr-lectures-label`. Technical solution ------------------ +-----------------------+---------------------------+--------------+---------+ | Module | Description | Component | Need to | | | | | get | +=======================+===========================+==============+=========+ | `pathlib | working with file paths | scrapper | 4 | | `__ | | | | +-----------------------+---------------------------+--------------+---------+ | `requests `__ | | | | +-----------------------+---------------------------+--------------+---------+ | `BeautifulSoup4 | finding information on | scrapper | 4 | | `__ | | | | +-----------------------+---------------------------+--------------+---------+ | `lxml `__ | | | | +-----------------------+---------------------------+--------------+---------+ | ``datetime`` | working with dates | scrapper | 6 | +-----------------------+---------------------------+--------------+---------+ | ``json`` | working with json text | scrapper, | 4 | | | format | pipeline | | +-----------------------+---------------------------+--------------+---------+ | `spacy_udpipe `__ | | | | +-----------------------+---------------------------+--------------+---------+ | `stanza `__ | | | | +-----------------------+---------------------------+--------------+---------+ | `networkx `__ | | | | +-----------------------+---------------------------+--------------+---------+ Software solution is built on top of three components: 1. `scrapper.py `__ - a module for finding articles from the given media, extracting text and dumping it to the file system. Students need to implement it. 2. `pipeline.py `__ - a module for processing text: point-of-speech tagging and basic morphological analysis. Students need to implement it. 3. `article.py `__ - a module for article abstraction to encapsulate low-level manipulations with the article. Handing over your work ---------------------- 1. Lab work is accepted for oral presentation. 2. A student has explained the work of the program and showed it in action. 3. A student has completed the mini-task from a mentor that requires some slight code modifications. 4. A student receives a mark: 1. That corresponds to the expected one, if all the steps above are completed and mentor is satisfied with the answer. 2. One point bigger than the expected one, if all the steps above are completed and mentor is very satisfied with the answer. 3. One point smaller than the expected one, if a lab is handed over one week later than the deadline and criteria from 4.1 are satisfied. 4. Two points smaller than the expected one, if a lab is handed over more than one week later than the deadline and criteria from 4.1 are satisfied. .. note:: A student might improve their mark for the lab, if they complete tasks of the next level after handing over the lab. **A lab work is accepted for oral presentation if all the criteria below are satisfied:** 1. There is a Pull Request (PR) with a correctly formatted name: ``Scrapper, - ``. 1. Example: ``Scrapper, Irina Novikova - 20FPL2``. 2. Has a filled file ``settings.json`` with an expected mark. Acceptable values: 4, 6, 8, 10. 3. Has green status. 4. Has a label ``done``, set by mentor. Resources --------- 1. `Academic performance `__ 2. `Media websites list `__ 3. `Python programming course from previous semester `__ 4. `Scrapping tutorials (Russian) `__ 5. `Scrapping tutorials (English) `__ 6. :ref:`starting-guide-en-label` 7. :ref:`ctlr-tests-label` 8. :ref:`run-in-terminal-label` 9. :ref:`ctlr-faq-label`