Changes between Version 12 and Version 13 of private/NlpInPracticeCourse/RelationExtraction


Ignore:
Timestamp:
Dec 9, 2020, 3:21:31 PM (3 years ago)
Author:
xrambous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • private/NlpInPracticeCourse/RelationExtraction

    v12 v13  
    2121
    2222 * Download [[htdocs:bigdata/ia161-hyper.zip|prepared scripts and data]]
     23 * `pip install majka`
    2324 * Unzip, `cd ia161-hyper` and run {{{./hyper.py}}}
    24  * If you have trouble with encoding, use {{{PYTHONIOENCODING=UTF-8 ./hyper.py}}}
    2525 * The script reads file {{{vstup.txt}}} (each line is word|definition) and outputs hypernym for each word.
    2626 * Default approach is naive: ''first noun in definition is hypernym''
    27  * majka gives ''noun (k1)'' to some ''adjectives (k2)'', deal with this to improve results
     27 * majka gives ''noun'' to some ''adjectives'', deal with this to improve results
    2828 * Update the {{{find_hyper()}}} function in `hyper.py` to provide better results.
    2929 * Upload updated script plus the output.