Alt-CWB-ambs
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
unless ($MajorVersion > $rMajor
|| ($MajorVersion == $rMajor &&
($MinorVersion > $rMinor || $MinorVersion == $rMinor && $BetaVersion >= $rBeta))) {
print STDERR "Error: need CWB version ",
version_string($rMajor, $rMinor, $rBeta), " or newer, but only $version is installed.\n";
exit 1;
}
## obtain relevant configuration options from cwb-config
our $prefix = `'$config_util' --prefix`;
our $bindir = `'$config_util' --bindir`;
our $default_registry = `'$config_util' --default-registry`;
chomp($prefix, $bindir, $default_registry);
print "IMS Open Corpus Workbench v$version found in $prefix tree.\n";
die "Error: can't handle directory paths with apostrophe yet. Please install the CWB in a different directory.\n"
if "$prefix$bindir$default_registry" =~ /'/;
## write configuration information to CWB::Config module
my $config_file = "lib/CWB/Config.pm";
my $fh = new FileHandle "> $config_file"
or die "Can't create file '$config_file': $!";
print $fh <<"STOP" or die "Error writing file '$config_file': $!";
package CWB::Config;
our \$Prefix = '$prefix';
our \$BinDir = '$bindir';
our \$Registry = '$default_registry';
1;
STOP
$fh->close
or die "Error writing '$config_file': $!";
print "Configuraion saved to file $config_file\n";
## now we can let MakeMaker generate the makefile
WriteMakefile(
data/vrt/VeryShortStories.vrt view on Meta::CPAN
followed VBN follow
by IN by
the DT the
Government NN government
's POS 's
official JJ official
explanation NN explanation
, , ,
which WDT which
was VBD be
binding VBG bind
on IN on
him PP him
and CC and
all DT all
other JJ other
journalists NNS journalist
in IN in
the DT the
United NP United
Continents NNS continent
( run in 0.569 second using v1.01-cache-2.11-cpan-2398b32b56e )