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

NAME

Lingua::Align::Corpus::Treebank - Factory class for reading treebanks

SYNOPSIS

    my $treebank = new Lingua::Align::Corpus::Treebank(-file => $corpusfile,
                                                       -type => 'TigerXML');

  my %tree=();
  while ($treebank->next_sentence(\%tree)){
    print $treebank->print_sentence(\%tree);
    print "\n";
  }

DESCRIPTION

Factory class of modules for reading treebanks in different formats. The default format is the Penn Treebank format. Other supported formats are the format produced by the Berkeley parser, the Stanford parser (including typed dependencies), TigerXML and Alpino XML.

EXPORT

SEE ALSO

Lingua::Align::Corpus Lingua::Align::Corpus::Treebank::Penn Lingua::Align::Corpus::Treebank::Berkeley Lingua::Align::Corpus::Treebank::Stanford Lingua::Align::Corpus::Treebank::TigerXML Lingua::Align::Corpus::Treebank::AlpinoXML

AUTHOR

Joerg Tiedemann

COPYRIGHT AND LICENSE

Copyright (C) 2009 by Joerg Tiedemann

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.