Treex::Core::DocZone - document zone for the text attribute
version 0.08399
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, the attribute text has a getter text() and a setter set_text($text)
set_
text
text()
set_text($text)
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:
Treex::Core::DocZone
Zdeněk Žabokrtský <zabokrtsky@ufal.mff.cuni.cz>
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.
To install Treex::Core, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Treex::Core
CPAN shell
perl -MCPAN -e shell install Treex::Core
For more information on module installation, please visit the detailed CPAN module installation guide.