The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Treex::Core::DocZone - document zone for the text attribute

VERSION

version 0.08330_1

SYNOPSIS

 use Treex::Core;
 my $doc = Treex::Core->new;
 my $zone = $doc->create_zone('en','reference');
 $zone->set_text('Piece of text. Translated by a human.');

DESCRIPTION

Document zones allow Treex documents to contain more texts, typically parallel texts (translations), or corresponding texts from different sources (text to be translated, reference translation, test translation).

ATTRIBUTES

Treex::Core::DocZone instances have the following attributes:

language
selector
my $text = $zone->text;

The attributes can be accessed using semi-affordance accessors: getters have the same names as attributes, while setters start with 'set_'. For example, the attribute text has a getter text() and a setter set_text($text)

METHODS

Construction

Treex::Core::DocZone instances should not be created by a constructor, but should be created exclusively from the embedding document by one of the document's methods:

create_zone
get_or_create_zone

AUTHOR

Zdeněk Žabokrtský <zabokrtsky@ufal.mff.cuni.cz>

COPYRIGHT AND LICENSE

Copyright © 2011 by Institute of Formal and Applied Linguistics, Charles University in Prague

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.