Changes between Version 19 and Version 20 of private/NlpInPracticeCourse/AnaphoraResolution
- Timestamp:
- Dec 1, 2021, 12:32:18 PM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
private/NlpInPracticeCourse/AnaphoraResolution
v19 v20 30 30 31 31 The task: 32 1. download script with data is available[[attachment:hobbs.zip|here]]33 1. NLT k package is required for hobbs.py. Paste 'pip3 install nltk --user' to terminal to install NLTK package.34 1. understand Hobbs' definition of anaphora resolution and replace 'XXX' function call with correct one32 1. download the script with data from [[attachment:hobbs.zip|here]] 33 1. NLTK package is required for `hobbs.py`. When running at your computer, paste {{{pip3 install nltk --user}}} to terminal to install NLTK package. Faculty machines should have nltk already installed. 34 1. understand Hobbs' definition of anaphora resolution and replace 'XXX' function call with the correct one 35 35 1. find 20 nontrivial sentences wit anaphora: 10 that Hobbs algorithm can recognize and 10 sentences it dos not. You 36 36 can use [http://nlp.stanford.edu:8080/parser/index.jsp the Stanford parser] 37 37 to test new sentences - copy the tree to one line and remove the ROOT tag. 38 1. submit hobbs.py script with 10 examples that are correctly recognized with hobbs.py and 10 examples that are not correctly recognized by hobbs.py in the homework vault. For each unrecognized example write an explanation into one separate file unrecognized_notes.txt (first column: example id, second column: explanation).38 1. submit your `hobbs.py` script with 10 examples that are correctly recognized with `hobbs.py` and 10 examples that are not correctly recognized by `hobbs.py` in the homework vault. For each unrecognized example write an explanation into one separate file `unrecognized_notes.txt` (first column: ''example id'', second column: ''explanation''). 39 39 40 40 Commands: 41 1. execute Hobbs script: python ./hobbs.py demosents.txt He 41 1. execute Hobbs script: 42 {{{ 43 python3 ./hobbs.py demosents.txt He 44 }}}