Changeset 1871


Ignore:
Timestamp:
2001-01-30T10:18:33+13:00 (23 years ago)
Author:
paynter
Message:

Use two-letter codes for language names, updated docs.

File:
1 edited

Legend:

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

    r1840 r1871  
    3232#   button=Name           The label for the classifiers button in the
    3333#                         navigation bar (defaults to "Phrase").
    34  title=Title           The metadata field used to describe each document
     34-title Title           The metadata field used to describe each document
    3535#                         (defaults to "Title").
    36  text=fields           The text used to build the phrase hierarchy
     36-text fields           The text used to build the phrase hierarchy
    3737#                         (defaults to "section:Title,section:text").
    38  phinddir=directory    Location of phind index files
    39  verbosity=num         Control amount of output
    40  untidy=true           Do not clean up intermediate files
    41  suffixmode=num        Mode of suffix program (0 = all phrases, 1 = stopword)
    42  suffixsize=num        Number of symbols available to suffix program
    43  savephrases=filename  If set, phrase infomation will be stored in filename
     38-phinddir directory    Location of phind index files
     39-verbosity num         Control amount of output
     40-untidy                Do not clean up intermediate files
     41-suffixmode num        Mode of suffix program (0 = all phrases, 1 = stopword)
     42-suffixsize num        Number of symbols available to suffix program
     43-savephrases filename  If set, phrase infomation will be stored in filename
    4444#                         as text. (By defualt, it is not set.)
    45  thesaurus=name        Name of a thesaurus stred in phind format in etc dir.
     45-thesaurus name        Name of a thesaurus stred in phind format in etc dir.
    4646
    4747# How a classifier works. 
     
    171171             q^title/.*/Title^, \$self->{'titlefield'},
    172172             q^button/.*/Phrase^, \$self->{'buttonname'},
    173              q^language/.*/english^, \$language,
     173             q^language/.*/en^, \$language,
    174174             q^builddir/.*/^, \$builddir,
    175175             q^savephrases/\d/0^, \$self->{'savephrases'},
     
    189189
    190190    # limit languages
    191     $language =~ s/,/\|/g;
    192191    $self->{'language_exp'} = $language;
    193192   
     
    250249    my $title = $doc_obj->get_metadata_element ($top_section, $titlefield);
    251250    print "process: $title\n" if ($verbosity > 2);
    252 
    253251
    254252    # only consider english-language files
     
    538536    my $status = system($command);
    539537    if ($status != 0) {
    540     print STDERR "phindgen.pl - Error executing $command: $!\n";
     538    print STDERR "phind - Error executing $command: $!\n";
    541539    exit($status);
    542540    }
Note: See TracChangeset for help on using the changeset viewer.