| 1 | package Treex::Block::Read::Treex; | ||||||||||
| 2 | { | ||||||||||
| 3 | 10 | $Treex::Block::Read::Treex::VERSION = '0.08633_1'; | |||||||||
| 4 | } | ||||||||||
| 5 | 10 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 10 | ▶ | use Treex::Core::Common; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 10 | extends 'Treex::Block::Read::BaseReader'; | |||||||||
| 8 | |||||||||||
| 9 | sub next_document { | ||||||||||
| 10 | 25 | ▶ | my ($self) = @_; | ||||||||
|
Subroutine
next_document: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 11 | 25 | ▶ | my $filename = $self->next_filename() or return; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 12 | 14 | return $self->new_document($filename); | |||||||||
| 13 | } | ||||||||||
| 14 | |||||||||||
| 15 | 10 | 1; | |||||||||
| 16 | |||||||||||
| 17 | __END__ | ||||||||||
| 18 | |||||||||||
| 19 | =head1 NAME | ||||||||||
| 20 | |||||||||||
| 21 | Treex::Block::Read::Treex | ||||||||||
| 22 | |||||||||||
| 23 | =head1 VERSION | ||||||||||
| 24 | |||||||||||
| 25 | version 0.08633_1 | ||||||||||
| 26 | |||||||||||
| 27 | =head1 DESCRIPTION | ||||||||||
| 28 | |||||||||||
| 29 | Document reader for the Treex file format (C<*.treex>), | ||||||||||
| 30 | which is actually a PML instance which is an XML-based format. | ||||||||||
| 31 | |||||||||||
| 32 | |||||||||||
| 33 | =head1 ATTRIBUTES | ||||||||||
| 34 | |||||||||||
| 35 | =over | ||||||||||
| 36 | |||||||||||
| 37 | =item from | ||||||||||
| 38 | |||||||||||
| 39 | space or comma separated list of filenames | ||||||||||
| 40 | |||||||||||
| 41 | =back | ||||||||||
| 42 | |||||||||||
| 43 | =head1 METHODS | ||||||||||
| 44 | |||||||||||
| 45 | =over | ||||||||||
| 46 | |||||||||||
| 47 | =item next_document | ||||||||||
| 48 | |||||||||||
| 49 | Loads a document. | ||||||||||
| 50 | |||||||||||
| 51 | =back | ||||||||||
| 52 | |||||||||||
| 53 | =head1 AUTHOR | ||||||||||
| 54 | |||||||||||
| 55 | Martin Popel | ||||||||||
| 56 | |||||||||||
| 57 | =head1 COPYRIGHT AND LICENSE | ||||||||||
| 58 | |||||||||||
| 59 | Copyright © 2011 by Institute of Formal and Applied Linguistics, Charles University in Prague | ||||||||||
| 60 | |||||||||||
| 61 | This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. | ||||||||||