Treex::PML::Backend::NTRED - Treex::PML I/O backend for exchanging data with remote ntred servers.
use Treex::PML; Treex::PML::AddBackends(qw(NTRED))
my $document = Treex::PML::Factory->createDocumentFromFile('ntred:///some/file'); ... $document->save();
my $doc_frag = Treex::PML::Factory->createDocumentFromFile('ntred:///some/file@10'); ... $doc_frag->save();
This module implements a Treex::PML input/output backend which exchanges data with remote ntred servers.
It uses the external
ntred command-line client to communicate to the servers.
The backend accepts any document whose URL is of the form
N is an integer. In first form can be used to retrieve/save back a document whose local name
/some/file from the in memory of an ntred server. The later form can be used to retrieve a partial document containing only the Nth tree (the index is 0-based) of the specified document. When this partial document is saved back, the Nth tree in the in-memory representation of the document on the server is updated, leaving other trees intact.
TrEd toolkit (http://ufal.mff.cuni.cz/tred)
This variable may be used to set-up the path to 'ntred' client program.
Copyright (C) 2006-2010 by Petr Pajas
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.2 or, at your option, any later version of Perl 5 you may have available.