NAME
Lingua::FreeLing2::Sentence - Interface to FreeLing2 Sentence object
SYNOPSIS
use Lingua::FreeLing2::Sentence;
my $words = $sentence->words;
my $sentence = $sentence->to_text;
DESCRIPTION
This module is a wrapper to the FreeLing2 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 reference to a list of Lingua::FreeLing2::Word.
is_parsed
-
Returns a boolean value stating if the sentence has been parsed or not.
to_text
-
Returns a string with words separated by a blank space.
SEE ALSO
Lingua::FreeLing2(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 by Projecto Natura