-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcorpora.pl
More file actions
executable file
·24 lines (21 loc) · 807 Bytes
/
corpora.pl
File metadata and controls
executable file
·24 lines (21 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/perl
sub getCorpusFile {
my ($corpus,$corpusdir) = @_;
# print "$corpus\n";
# print "$corpusdir\n";
my %corpusfiles = ('swbd' => 'swbd.t2c.gz',
'swbdext' => 'sw.backtrans_011410.t2c.gz',
'bnc' => 'bnc-charniak-parses.t2c.gz',
'arab' => 'arabic-collapsed.t2c.gz',
'wsj' => 'wsj_mrg.t2c.gz',
'brown' => 'brown.t2c.gz',
'chin' => 'chtb5.1.t2c',
'ice' => 'icegb.t2c.gz',
'negra' => 'negra.t2c.gz',
'tiger' => 'tiger.t2c.gz',
'wiki' => 'wikipedia.t2c.gz',
'ycoe' => 'ycoe.t2c.gz');
return $corpusdir.$corpusfiles{$corpus};
#return $corpdir.$corpfile;
}
1;