22 | | * Download [[htdocs:bigdata/ia161-hyper.zip|prepared scripts and data]]: |
23 | | {{{ |
24 | | wget https://nlp.fi.muni.cz/trac/research/chrome/site/bigdata/ia161-hyper.zip |
25 | | }}} |
26 | | * `pip install majka` |
27 | | * Unzip, `cd ia161-hyper` and run {{{./hyper.py}}} |
28 | | * The script reads file {{{vstup.txt}}} (each line is word|definition) and outputs hypernym for each word. |
| 22 | The task will proceed using Python notebook run in web browser in the [https://colab.research.google.com/ Google Colaboratory] environment |
| 23 | with the MU G-Suite disk access. |
| 24 | |
| 25 | In case of running the codes in a local environment, the requirements are |
| 26 | Python 3, and NLTK module. |
| 27 | |
| 28 | * Access the [https://colab.research.google.com/drive/1kQdFno7kDalQkGSFgSYXT6EDbNSgPruP Python notebook in the Google Colab environment] and make your own copy. Do not forget to save your work if you want to see your changes later, leaving the browser will throw away all changes! |
| 29 | |
| 30 | |
| 31 | * The script reads file {{{input.txt}}} (each line is word|definition) and outputs hypernym for each word. |