Changeset 1645


Ignore:
Timestamp:
2000-11-02T15:40:57+13:00 (23 years ago)
Author:
paynter
Message:

Output less verbose & more consistant with buildcol.pl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/classify/phind.pm

    r1643 r1645  
    311311    my $self = shift (@_);
    312312
    313     print STDERR "\n\n**** phind.pm get_classify_info ***\n";
    314 
    315313    my $verbosity = $self->{'verbosity'};
    316314    my $phindexdir = $self->{'phindexdir'};
    317315    my $language = "english";
    318316   
     317    if ($verbosity) {
     318    print STDERR "\n*** phind.pm generating indexes for ", $self->{'indexes'}, "\n";
     319    }
     320
    319321    # Construct phind indexes
    320322    my $mode = 1;
     
    328330
    329331    # Use the suffix program to generate the phindex/phrases file
     332    print "\nExtracting phrases from processed text (with suffix)\n" if $verbosity;
    330333    &execute("suffix $phindexdir $symbol_limit $mode", $verbosity);
    331334
     
    380383    # Tidy up stray files
    381384    if (!$untidy) {
    382     print "\nCleaning up\n" if $verbosity;
     385    print "\nCleaning up\n" if ($verbosity > 2);
    383386    &util::rm("$phindexdir/clauses", "$phindexdir/clauses.numbers",
    384387          "$phindexdir/clauses.vocab", "$phindexdir/clauses.stats",
     
    501504sub execute {
    502505    my ($command, $verbosity) = @_;
    503     print "Executing: $command\n" if $verbosity;
     506    print "Executing: $command\n"  if ($verbosity > 2);
    504507    my $status = system($command);
    505508    if ($status != 0) {
Note: See TracChangeset for help on using the changeset viewer.