Treex-Core
view release on metacpan or search on metacpan
lib/Treex/Core/Resource.pm view on Meta::CPAN
Treex::Core::Resource - Access to shared resources
=head1 VERSION
version 2.20210102
=head1 SYNOPSIS
use Treex::Core::Resource qw(require_file_from_share);
my $path = require_file_from_share('relative/path/to/file/within/Treex/Share');
open my $MODEL, '<', $path or log_fatal($!);
# or
my $path = require_file_from_share('./relative/path/from/the/current/directory');
my $path = require_file_from_share('/absolute/path');
=head1 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 (L<http://ufallab.ms.mff.cuni.cz/>).
If the path starts with "." or "/" it is searched in the local file system (and not in Treex Share).
=head1 SUBROUTINES
=over
( run in 0.350 second using v1.01-cache-2.11-cpan-beeb90c9504 )