Changes between Version 38 and Version 39 of private/NlpInPracticeCourse/Stylometry
- Timestamp:
- Oct 10, 2024, 1:01:31 PM (9 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
private/NlpInPracticeCourse/Stylometry
v38 v39 25 25 1. Lukin, E., Roberts, J.C., Berdik, D. et al. Adjectives and adverbs as stylometric analysis parameters. Int J Digit Humanities (2023). [[https://link.springer.com/article/10.1007/s42803-023-00065-y | link]] 26 26 27 == Practical Session == 27 == Practical Session (For working in Google Colab) == 28 29 The task will proceed using Python notebook run in a web browser in the [https://colab.research.google.com/ Google Colaboratory] environment with the MU G-Suite disk access. 30 31 In the case of running the codes in a local environment, the requirements are Python 3 and Jupyter Notebook. 32 33 === Stylometric Feature Extraction === 34 35 In this workshop, we will experiment with a feature extraction of style markers. 36 37 Access the [https://colab.research.google.com/drive/1Z27N9R836UgPY1AZSiK4wWve7jB6ow-O?usp=sharing Python notebook] in the Google Colab environment. Do not forget to save your work if you want to see your changes later; leaving the browser will throw away all changes! 38 39 1. Follow the instructions present in the notebook 40 2. Implement a feature extractor that improves the performance of existing system 41 3. Download and submit your `assignment.py` and upload it to the homework vault 42 43 == Practical Session (For working in terminal) == 28 44 29 45 {{{ … … 35 51 The goal will be to implement a small function to extract style markers from a text. 36 52 37 1. go to `asteria04.fi.muni.cz` server: 38 {{{ 39 ssh asteria04.fi.muni.cz 40 }}} 41 2. Download a [[htdocs:bigdata/stylometry-assignment.zip|ZIP with python packages of the assignment]] 53 1. Download a [[htdocs:bigdata/stylometry-assignment.zip|ZIP with python packages of the assignment]] 42 54 {{{ 43 55 wget https://nlp.fi.muni.cz/trac/research/chrome/site/bigdata/stylometry-assignment.zip 44 56 }}} 45 3. Unzip the downloaded file57 2. Unzip the downloaded file 46 58 {{{ 47 59 unzip stylometry-assignment.zip 48 60 }}} 49 4. Go to the unziped folder61 3. Go to the unziped folder 50 62 {{{ 51 63 cd sir-assignment 52 64 }}} 53 5. Test the prepared program that analyses data from on-line dating services to distinguish gender (masculine/feminine) by text style features65 4. Test the prepared program that analyses data from on-line dating services to distinguish gender (masculine/feminine) by text style features 54 66 {{{ 55 67 ./run.sh