NAME
Lingua::TreeTagger::Filter::Result::Hit - storing a matching sequence
VERSION
Version 0.01
SYNOPSIS
use Lingua::TreeTagger::Filter;
my $hit = Lingua::TreeTagger::Filter::Result::Hit->new(
begin_index => 1,
sequence_length => 1,
);
Description
This module is part of the Lingua::TreeTagger::Filter distribution. It defines a class to store a matching sequence. See also Lingua::TreeTagger::Filter, Lingua::TreeTagger::Filter::Result and Lingua::TreeTagger::Filter::Result::Hit
METHODS
new()
-
This constructor is normally called by the method apply_filter of the module Lingua::TreeTagger::Filter and not directly by the user The constructor has two required parameters.
begin_index
-
an Int corresponding to the index of the beginning from the matching sequence in the taggedtext sequence (an array, attribute 'sequence' from the taggedtext object)
sequence_length
-
an Int corresponding to the number of tokens composing the matching sequence
ACCESSORS
get_begin_index()
-
Read-only accessor for the 'begin_index' attribute
get_sequence_length()
-
Read-only accessor for the 'sequence_length' attribute
DIAGNOSTICS
DEPENDENCIES
This is part of the Lingua::TreeTagger::Filter distribution. It is not intended to be used as an independent module.
This module requires module Moose and was developed using version 1.09.Please report incompatibilities with earlier versions to the author.
BUGS AND LIMITATIONS
There are no known bugs in this module.
Please report problems to Benjamin Gay (Benjamin.Gay@unil.ch)
Patches are welcome.
AUTHOR
Benjamin Gay, <Benjamin.Gay at unil.ch>
LICENSE AND COPYRIGHT
Copyright 2011 Benjamin Gay.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.