NAME
Lingua::FreeLing3::Sentence - Interface to FreeLing3 Sentence object
SYNOPSIS
use Lingua::FreeLing3::Sentence;
my $words = $sentence->words;
my $sentence = $sentence->to_text;
DESCRIPTION
This module is a wrapper to the FreeLing3 Sentence object (a list of words, that someone has validated as a complete sentence.
CONSTRUCTOR
new
-
The constructor returns a new Sentence object. As no setters are available (for now), it is not really relevant. Tests are being done to understand how to set/add words in the sentence.
ACESSORS
Current sentence acessors are:
words
-
Returns a list of Lingua::FreeLing3::Word.
to_text
-
Returns a string with words separated by a blank space.
dep_tree
-
Returns the current dependency tree, if there is any.
parse_tree
-
Returns the current parse tree, if there is any.
is_dep_parsed
-
Checks if the sentence has been parsed by a dependency parser.
is_parsed
-
Checks if the sentence has been parsed by a dependency parser.
SEE ALSO
Lingua::FreeLing3(3) for the documentation table of contents. The freeling library for extra information, or perl(1) itself.
AUTHOR
Alberto Manuel Brandão Simões, <ambs@cpan.org>
Jorge Cunha Mendes <jorgecunhamendes@gmail.com>
COPYRIGHT AND LICENSE
Copyright (C) 2011-2012 by Projecto Natura