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, ... )
Lingua::Verbnet
Vassilii Khachaturov <vassilii@tarunz.org>
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
To install Lingua::Verbnet, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lingua::Verbnet
CPAN shell
perl -MCPAN -e shell install Lingua::Verbnet
For more information on module installation, please visit the detailed CPAN module installation guide.