Tomáš Kraut > Treex-Core-0.08157 > Treex::Core::Resource

Download:
Treex-Core-0.08157.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.08157   Source   Latest Release: Treex-Core-0.08664

NAME ^

Treex::Core::Resource - Access to shared resources

VERSION ^

version 0.08157

SYNOPSIS ^

use Treex::Core::Resource qw(require_file_from_share); my $path = require_file_from_share('relative/path/to/file'); open my $MODEL, '<', $path or log_fatal($!);

DESCRIPTION ^

This module provides access to shared resources (e.g. models). First it tries to locate it on local computer. If not found, download from server (http://ufallab.ms.mff.cuni.cz/)

SUBROUTINES ^

require_file_from_share($rel_path_to_file, $who_wants_it, $make_executable)

Try to locate file in local resource paths, if not found, try to download it and stores it to first writable path. Obtains paths from Treex::Core::Config-resource_path()|Treex::Core::Config/resource_path> Returns path to file.

AUTHOR ^

Zdeněk Žabokrtský <zabokrtsky@ufal.mff.cuni.cz>

Tomáš Kraut <kraut@ufal.mff.cuni.cz>

COPYRIGHT AND LICENSE ^

Copyright © 2011 by Institute of Formal and Applied Linguistics, Charles University in Prague

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: