Sha256: 97ecf63dcec87e5a27b85a0a41785a55fda35e95851982ef4b7dc505e5c7f6c8

Contents?: true

Size: 651 Bytes

Versions: 14

Compression:

Stored size: 651 Bytes

Contents

#!/usr/bin/perl -CSD
#
# Simple command script for executing ParsCit in an
# offline mode (direct API call instead of going through
# the web service).
#
# Isaac Councill, 08/23/07
#
use strict;
use FindBin;
use lib "$FindBin::Bin/../lib";
use ParsCit::Controller;

my $textFile = $ARGV[0];
my $outFile = $ARGV[1];

if (!defined $textFile) {
    print "Usage: $0 textfile [outfile]\n";
    exit;
}

my $rXML =
    ParsCit::Controller::extractCitationsAlreadySegmented($textFile);

if (defined $outFile) {
    open (OUT, ">$outFile") or die "Could not open $outFile for writing: $!";
    print OUT $$rXML;
    close OUT;
} else {
    print "$$rXML";
}

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
biblicit-2.3.2 parscit/bin/archtest.pl
biblicit-2.3.1 parscit/bin/archtest.pl
biblicit-2.3.0 parscit/bin/archtest.pl
biblicit-2.2.3 parscit/bin/archtest.pl
biblicit-2.2.2 parscit/bin/archtest.pl
biblicit-2.2.1 parscit/bin/archtest.pl
biblicit-2.2.0 parscit/bin/archtest.pl
biblicit-2.1.0 parscit/bin/archtest.pl
biblicit-2.0.8 parscit/bin/archtest.pl
biblicit-2.0.7 parscit/bin/archtest.pl
biblicit-2.0.6 parscit/bin/archtest.pl
biblicit-2.0.5 parscit/bin/archtest.pl
biblicit-2.0.4 parscit/bin/archtest.pl
biblicit-2.0.3 parscit/bin/archtest.pl