.

Harvest::Reaper::Summarise::RunProg - run a program to do a summary

DESCRIPTION

There are a large number of translation and summarisation programs already available. In addition, programs such as the old Harvest shipped with summarisers which will already summarise documents into SOIF.

This summariser provides a means by which to invoke these external programs, and to use their results as summaries, either directly (if they use SOIF), or by providing type information so another summariser can be run on them.

PARAMETERS

Call with ($prog,$type) where

$prog is the program to run
A number of substitions will be performed on this string:

%infile will be replaced with a filename containing the data to be translated

%outfile will be replaced with a filename to which the output data should be written.

$type is the type of the resulting data
This should either be the MIME type of the summariser to run on the output, or FullSOIF to indicate that the output is a complete SOIF object, or HarvestSOIF to indicate that the output is in the same format as that generated by the ``Classic'' Harvest summarisers.