NAME

Treex::PML::Backend::NTRED - Treex::PML I/O backend for exchanging data with remote ntred servers.

SYNOPSIS

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();

DESCRIPTION

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

ntred:///some/file

or

ntred:///some/file@N

where 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.

SEE ALSO

TrEd toolkit (http://ufal.mff.cuni.cz/tred)

REFERENCE

$Treex::PML::Backend::NTRED::ntred

This variable may be used to set-up the path to 'ntred' client program.

COPYRIGHT AND LICENSE

Copyright (C) 2006-2010 by Petr Pajas, 2010-2024 Jan Stepanek

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.