Lingua::PT::Actants - compute verb actants for Portuguese
version 0.03
# using as a library use Lingua::PT::Actants; my $a = Lingua::PT::Actants->new( conll => $input ); my $actants = $a->actants; # a list cores per main verb found # example from the command line $ cat examples/input.txt 1 A _ DET DET _ 2 det _ _ 2 Maria _ PROPN PROPN _ 3 nsubj _ _ 3 tem _ VERB VERB _ 0 ROOT _ _ 4 razão _ NOUN NOUN _ 3 dobj _ _ 5 . _ PUNCT PUNCT _ 3 punct _ _ $ actants input.txt A Maria tem razão . # Actants syntagmas Verb: tem A1: A Maria A2: razão # Actants syntagma cores Verb: tem + Maria + razão # Actants cores ranks Verb: tem 0.533333 | Maria 0.466667 | razão 0.000000 | A 0.000000 | tem 0.000000 | .
This module implements an algorithm that computes a sorted rank of tokens where the score measures the propensity of the token being an actant for the verb to which is related.
Create a new object, pass as argument the input text in CONLL format.
Returns the original text.
Compute the core (a token) of the actants syntagmas as rank sorted by score.
Pretty print actants cores, mainly to be used by the command line interface.
Compute actants for a sentence, returns a list of actants found.
Pretty print actants syntagmas, mainly to be used by the command line interface.
This work is partially supported by the "Programa Operacional da Região Norte", NORTE2020, in the context of project NORTE-01-0145-FEDER-000037.
Nuno Carvalho <smash@cpan.org>
This software is copyright (c) 2016-2017 by Nuno Carvalho.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Lingua::PT::Actants, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lingua::PT::Actants
CPAN shell
perl -MCPAN -e shell install Lingua::PT::Actants
For more information on module installation, please visit the detailed CPAN module installation guide.