NAME
FrameNet::WordNet::Detour::Data - A class representing the results of the Detour.
SYNOPSIS
use FrameNet::WordNet::Detour;
my $wn = WordNet::QueryData->new($WNSEARCHDIR);
my $sim = WordNet::Similarity::path->new ($wn);
my $detour = FrameNet::WordNet::Detour->new($wn,$sim);
my $result = $detour->query($synset);
$result->isOK; # Returns whether there were problems in the run
$result->getMessage; # Returns 'Ok' or an error message
# All frames are returned as lists of
# L<FrameNet::WordNet::Detour::Frame> objects
$result->get_best_frames; # Returns the frames
# with the highest weight
$result->get_best_frames(3); # Returns the frames
# with the three highest weights
$result->get_all_frames; # Returns all resulting frames
$result->get_best_framenames; # Returns the names
# of the highest weighted frames
$result->get_best_framenames(3); # Returns the names of the frames
# with the three highest weights
$result->get_all_framenames; # Returns the names of all frames.
BUGS
Please report bugs to mailto:reiter@cpan.org.
COPYRIGHT
Copyright 2005 Aljoscha Burchardt and Nils Reiter. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.