root/other-projects/is-sheet-music-encore/trunk/COMPX520-RUN-META.sh @ 33044

Revision 33044, 360 bytes (checked in by cpb16, 4 months ago)

Streamlined numpages checking and random selection. Corrected COMPX-RUN-X.sh to download all files (naming error). NEXT: Clean up corpus generation and move on to the next phase

  • Property svn:executable set to *
Line 
1#!/bin/bash
2
3if [ $# != 1 ] ; then
4  echo "Usage: ./COMPX520-RUN-META.sh doc_id" 1>&2
5  exit 1
6fi
7
8doc_id=$1
9doc_id_file=`echo $doc_id | sed 's/:/+/' | sed 's/\//=/g'`
10
11output_file="java-gen-corpus/download-meta/$doc_id_file-META.txt"
12echo "Retrieving doc-id-page: $doc_id -> $output_file"
13echo ""
14
15./dapiclient2-extended-META.pl "$doc_id" > "$output_file"
16
17
Note: See TracBrowser for help on using the browser.