04 Mar 2018 23:07:45 UTC
- Distribution: Treex-PML
- Module version: 2.24
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (0)
- Testers (2182 / 2 / 0)
- KwaliteeBus factor: 2
- 45.42% Coverage
- License: unknown
- Activity24 month
- Download (259.74KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionCHOROBA E. Choroba
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
ntredcommand-line client to communicate to the servers.
The backend accepts any document whose URL is of the form
Nis an integer. In first form can be used to retrieve/save back a document whose local name
/some/filefrom 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.