Lingua::PT::Actants - compute verb actants for Portuguese
version 0.05
# 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-1.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 examples/input-1.txt A Maria tem razão . # Actants syntagma cores Verb: tem = Maria = razão # Actants syntagmas Verb: tem = A Maria = razão
This module implements an algorithm that computes the actants, and corresponding syntagmas, for a sentence.
For a complete example visit this page.
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.
Given the actants cores compute the full syntagma (phrase) for each core.
Compute actants for a sentence, returns a list of actants found.
Pretty print actants cores, mainly to be used by the command line interface.
Pretty print actants syntagmas, mainly to be used by the command line interface.
This work is a result of the project “SmartEGOV: Harnessing EGOV for Smart Governance (Foundations, methods, Tools) / NORTE-01-0145-FEDER-000037”, supported by Norte Portugal Regional Operational Programme (NORTE 2020), under the PORTUGAL 2020 Partnership Agreement, through the European Regional Development Fund (EFDR).
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.