Treex::Core::DocZone - document zone for the text attribute
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.');
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).
Treex::Core::DocZone instances have the following attributes:
The attributes can be accessed using semi-affordance accessors: getters have the same names as attributes, while setters start with 'set_'. For example by getter
text() and setter
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:
Zdeněk Žabokrtský <firstname.lastname@example.org>
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.