-
-
04 Mar 2018 23:07:45 UTC
- Distribution: Treex-PML
- Module version: 2.24
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (0)
- Testers (2182 / 2 / 0)
- Kwalitee
Bus factor: 2- 45.42% Coverage
- License: unknown
- Activity
24 month- Tools
- Download (259.74KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- File::ShareDir
- File::Which
- IO::Zlib
- LWP::UserAgent
- Test::More
- UNIVERSAL::DOES
- URI
- XML::CompactTree
- XML::LibXML
- XML::SAX
- XML::Writer
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
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
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.
Module Install Instructions
To install Treex::PML, copy and paste the appropriate command in to your terminal.
cpanm Treex::PML
perl -MCPAN -e shell install Treex::PML
For more information on module installation, please visit the detailed CPAN module installation guide.