Lingua::PT::Actants - compute verb actants for Portuguese
version 0.02
# using as a library use Lingua::PT::Actants; my $a = Lingua::PT::Actants->new( conll => $input ); my @cores = $a->acts_cores; my @actants = $a->actatans; # 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 _ _ $ cat examples/input.txt | actants Sentence: A Maria tem razão . # Actants syntagma cores Verb: tem 0.526990 | Maria 0.461116 | razão 0.008234 | . 0.003660 | A # Actants syntagmas Verb: tem A1: A Maria A2: razão
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.
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.
Nuno Carvalho <smash@cpan.org>
This software is copyright (c) 2016 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.