Alvis-NLPPlatform
view release on metacpan or search on metacpan
lib/Alvis/NLPPlatform.pm view on Meta::CPAN
#!/usr/bin/perl
package Alvis::NLPPlatform;
our $VERSION='0.6';
use strict;
use warnings;
use Alvis::NLPPlatform::XMLEntities;
use Alvis::NLPPlatform::Canonical;
use Alvis::NLPPlatform::Annotation;
use Alvis::NLPPlatform::UserNLPWrappers;
use Time::HiRes qw(gettimeofday tv_interval);
use IO::Socket;
use Sys::Hostname;
use XML::LibXML;
use IO::Socket;
use IO::Socket::INET;
use Fcntl qw(:DEFAULT :flock :seek);
use Alvis::Pipeline;
use File::Path qw(mkpath);
use File::Touch;
#use Data::Dumper;
my $cur_doc_nb;
my $done_parsing;
our $last_doc;
our @tab_end_sections_byaddr;
our @tab_end_sections_bytoken;
our %hash_tokens;
our %hash_words;
our %hash_words_punct;
#our %hash_words_punct2words;
our %hash_sentences;
our %hash_postags;
our %hash_named_entities;
our %hash_lemmas;
our $number_of_words;
our $number_of_sentences;
our $nb_relations;
our $dont_annotate;
our @word_start;
our @word_end;
our @en_start;
our @en_end;
our @en_type;
our @en_tokens_start;
our @en_tokens_end;
our %en_tokens_hash;
our $last_semantic_unit;
our $last_semantic_feature;
our %last_words;
our @found_terms;
our @found_terms_tidx;
our @found_terms_smidx;
our @found_terms_phr;
our @found_terms_words;
my $phrase_idx;
my $id;
# Timer
my $timer_mem;
# because those variables have to be viewed in the sigint handler !!!
my $nlp_host;
my $nlp_port;
my $connection_retry;
# ENVIRONMENT VARIABLES
my $NLPTOOLS;
my $ALVISTMP;
our $ALVISLOGFILE;
( run in 2.573 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )