Lingua::Verbnet::Ambiguity -- query ambiguity stats as collected by Lingua::Verbnet
use Lingua::Verbnet; my @verbnet_xml_files = ... ; my $verbnet = Lingua::Verbnet->new(@verbnet_xml_files); $verbnet->ambiguity->score('cut'); # get the ambiguity score of the verb 'cut' my %stats = $verbnet->ambiguity->hash; # get the full ambiguity scores hash (verb => score)
An object to query ambiguity stats as collected by Lingua::Verbnet.
Accessed through Lingua::Verbnet.
Given a verb which is a member of a given vnclass, return its ambiguity score as determined by the number of frames within the vnclass.
If a verb is not listed in the verbnet database that had been fed to Lingua::Verbnet, then 0 is returned.
Return the object contents in a hash format, in the form of ( verb1 => score1, verb2 => score2, ... )
Vassilii Khachaturov <email@example.com>