17 | | 1. login to alba |
18 | | 1. inspect command-line tools that are part of manatee (rpm -ql manatee) |
19 | | 1. inspect index files of BNC using less, od, lsclex, dumpdrev, dumpdtext |
20 | | 1. inspect the Python API of Manatee using the provided overview |
| 17 | Compare search through (A) plain text using grep, (B) an indexed corpus using Manatee, (C) a corpus indexed in an arbitrary SQL database |
| 18 | Use vertical text for BNC available at aurora:/corpora/vert/bnc/bnc.vert.xz. |
| 19 | |
| 20 | Search for the phrase "test case", display context of 10 words before and after each occurrence of the search phrase. |
| 21 | |
| 22 | (A) plain |
| 23 | |
| 24 | Hint: use grep -C to display context |
| 25 | |
| 26 | (B) |
| 27 | |
| 28 | Corpus is already indexed on Manatee, try: |
| 29 | |
| 30 | time corpquery bnc '[word="test"] [word="case"]' |
| 31 | |
| 32 | (C) |
| 33 | |
| 34 | Use your favourite SQL database, on aurora you can use sqlite3. |
| 35 | Hint how to import vertical text: |
| 36 | |
| 37 | https://stackoverflow.com/questions/26065872/how-to-import-a-tsv-file-with-sqlite3 |
| 38 | |
| 39 | For (A), (B) and (C), submit the commands you used and how long the search took to evaluate. |