Sanity checks: Difference between revisions

From Icelandic Parsed Historical Corpus (IcePaHC)
Jump to navigation Jump to search
New page: To run the '''sanity checks''' on a file: * '''cd''' into "treebanking/parsing" * run the command: <pre> ./sanity.sh filename </pre> * IMPORTANT: filename is WITHOUT THE PSD EXTENSION her...
 
Einarfs (talk | contribs)
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
To run the '''sanity checks''' on a file:
To run the '''sanity checks''' on a file:


* '''cd''' into "treebanking/parsing"
* '''cd''' into "icecorpus/parsing"
* run the command:
* run the command:
<pre>
<pre>
Line 8: Line 8:
* IMPORTANT: filename is WITHOUT THE PSD EXTENSION here
* IMPORTANT: filename is WITHOUT THE PSD EXTENSION here
* Open '''filename.sanity.psd''' in same directory and search for '''ZZZ''', and for each result: fix the parse
* Open '''filename.sanity.psd''' in same directory and search for '''ZZZ''', and for each result: fix the parse
'''For Brynhildur and Hulda''':
* '''cd''' into "Dropbox/corpus"
* run the command:
<pre>
./lemma.sh filename
</pre>
* If '''bash: ./lemma.sh: Permission denied''', then right-click lemma.sh, select Properties/Permissions and tick the box '''Allow executing file as program'''
* IMPORTANT: filename is WITHOUT THE PSD EXTENSION here
* Open '''filename.sanity.psd''' in same directory and search for '''ZZZ''', and for each result: fix the parse
To open CorpusDraw and find '''only''' sentences with ZZZ:
Make the query zzz.q (it already exists in Dropbox/corpus):
<pre>
node: $ROOT
query: (*ZZZ* exists)
</pre>
Now open terminal window and write:
<pre>
CD zzz.q filename.sanity.psd
</pre>
Start fixing the parse.

Latest revision as of 16:19, 10 June 2010

To run the sanity checks on a file:

  • cd into "icecorpus/parsing"
  • run the command:
./sanity.sh filename
  • IMPORTANT: filename is WITHOUT THE PSD EXTENSION here
  • Open filename.sanity.psd in same directory and search for ZZZ, and for each result: fix the parse

For Brynhildur and Hulda:

  • cd into "Dropbox/corpus"
  • run the command:
./lemma.sh filename
  • If bash: ./lemma.sh: Permission denied, then right-click lemma.sh, select Properties/Permissions and tick the box Allow executing file as program
  • IMPORTANT: filename is WITHOUT THE PSD EXTENSION here
  • Open filename.sanity.psd in same directory and search for ZZZ, and for each result: fix the parse

To open CorpusDraw and find only sentences with ZZZ:

Make the query zzz.q (it already exists in Dropbox/corpus):

node: $ROOT
query: (*ZZZ* exists)

Now open terminal window and write:

CD zzz.q filename.sanity.psd

Start fixing the parse.