Changeset 2079


Ignore:
Timestamp:
2001-02-27T16:22:13+13:00 (23 years ago)
Author:
paynter
Message:

Added a new binary field to the savephrases output that indicates whether
the phrase occured in the thesaurus.

File:
1 edited

Legend:

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

    r2064 r2079  
    13511351    # 2.
    13521352    # Translate phrases.3 to MGPP input files
    1353     my ($key, $text, $word);
     1353    my ($key, $text, $word, $isThesaurus);
    13541354    my @fields;
    13551355    my $linenumber = 0;
     
    13931393    # output the phrases to a text file
    13941394    if ($savephrases) {
    1395         print SAVE $fields[0], "\t", $fields[2], "\t", "$text\n";
     1395        if ((scalar @fields) == 7) {
     1396        $isThesaurus = 1;
     1397        } else {
     1398        $isThesaurus = 0;
     1399        }
     1400        print SAVE $fields[0], "\t", $fields[2], "\t$isThesaurus\t$text\n";
    13961401    }
    13971402    }
Note: See TracChangeset for help on using the changeset viewer.