script/TermTagger.pl untested

filter: Statementstmt 0.0% 0 / 20 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 32 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #!/usr/local/bin/perl
2  
3 #######################################################################
4 #
5 # Last Update: 16/09/2015 (mm/dd/yyyy date format)
6 #
7 # Copyright (C) 2002 Thierry Hamon
8 #
9 # Written by thierry.hamon@limsi.fr
10 #
11 # Author : Thierry Hamon
12 # Email : thierry.hamon@limsi.fr
13 # URL : https://perso.limsi.fr/hamon/
14 #
15 ########################################################################
16  
17 =head1 NAME
18  
19 TermTagger.pl -- A Perl script for tagging corpus with terms
20  
21 =head1 SYNOPSIS
22  
23 TermTagger.pl [options] corpus termlist selected_term_list lemmatised_corpus
24  
25 =head1 OPTIONS
26  
27 =over 4
28  
29 =item B<--help> brief help message
30  
31 =back
32  
33 =head1 DESCRIPTION
34  
35 This script tags a corpus with terms. Corpus (C<corpus>) is a file
36 with one sentence per line. Term list (C<termlist>) is a file
37 containing one term per line. For each term, additionnal information
38 (as canonical form) can be given after a column. Each line of the
39 output file (C<selected_term_list>) contains the sentence number, the
40 term, additional information, all separated by a tabulation character.
41  
42 =head1 SEE ALSO
43  
44 Alvis web site: http://www.alvis.info
45  
46 =head1 AUTHORS
47  
48 Thierry Hamon <thierry.hamon@limsi.fr>
49  
50 =head1 LICENSE
51  
52 Copyright (C) 2006 by Thierry Hamon
53  
54 This library is free software; you can redistribute it and/or modify
55 it under the same terms as Perl itself, either Perl version 5.8.6 or,
56 at your option, any later version of Perl 5 you may have available.
57  
58 =cut
59  
60 use strict;
61 use warnings;
62  
63 use Alvis::TermTagger;
64  
65 use Getopt::Long;
66 use Pod::Usage;
67  
68 # Process Option
69  
70 my $man = 0;
71 my $help = 0;
72  
73 GetOptions('help|?' => \$help) or pod2usage(2);
74 pod2usage(1) if $help;
75 # pod2usage(-exitstatus => 0, -verbose => 2) if $man;
76 # , man => \$man
77  
78 Alvis::TermTagger::termtagging($ARGV[0], $ARGV[1], $ARGV[2], $ARGV[3]);
79  
80  
81