Changes between Version 12 and Version 13 of private/NlpInPracticeCourse/RelationExtraction
- Timestamp:
- Dec 9, 2020, 3:21:31 PM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
private/NlpInPracticeCourse/RelationExtraction
v12 v13 21 21 22 22 * Download [[htdocs:bigdata/ia161-hyper.zip|prepared scripts and data]] 23 * `pip install majka` 23 24 * Unzip, `cd ia161-hyper` and run {{{./hyper.py}}} 24 * If you have trouble with encoding, use {{{PYTHONIOENCODING=UTF-8 ./hyper.py}}}25 25 * The script reads file {{{vstup.txt}}} (each line is word|definition) and outputs hypernym for each word. 26 26 * Default approach is naive: ''first noun in definition is hypernym'' 27 * majka gives ''noun (k1)'' to some ''adjectives (k2)'', deal with this to improve results27 * majka gives ''noun'' to some ''adjectives'', deal with this to improve results 28 28 * Update the {{{find_hyper()}}} function in `hyper.py` to provide better results. 29 29 * Upload updated script plus the output.