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. Dataset requirements.

Instructors:

Project Timeline

  1. Scraper:

    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: May, 2.

    3. Format: each student works in their own PR.

    4. Dataset volume: 5-7 articles.

    5. Design document: Laboratory work №5. Retrieve raw data from World Wide Web.

  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, 23.

    3. Format: each student works in their own PR.

    4. Dataset volume: 5-7 articles.

    5. Design document: Laboratory work №6. Process raw data.

Lectures history

Date

Lecture topic

Important links

04.04.2024

Lecture: Introduction to technical track.

Lab no. 5 description

04.04.2024

Seminar: Local setup. Choose website.

N/A

11.04.2024

Lecture: 3rd party libraries. Browser headers.

N/A

11.04.2024

Seminar: requests: install, API.

Листинг.

18.04.2024

Lecture: HTML structure. bs4 library.

N/A

18.04.2024

Seminar: bs4: install, API.

Листинг.

25.04.2024

Lecture: Filesystem with pathlib. Dates.

N/A

25.04.2024

Seminar: filesystem with pathlib, dates.

Листинг. Листинг. Листинг.

02.05.2024

Offline Lab 5 handover.

N/A

You can find a more complete summary from lectures in Short summary of lectures.

Technical solution

Software solution is built on top of three components:

  1. scraper.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: Scraper, <NAME> <SURNAME> - <UNIVERSITY GROUP NAME>.

    1. Example: Scraper, 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. Scraping tutorials (Russian)

  5. Scraping tutorials (English)

  6. Starting guide

  7. Working with tests: locally and in CI

  8. Run Python Programs in Terminal

  9. Frequently asked questions