Treex::Core::Config - centralized info about Treex configuration
version 2.20210102
use Treex::Core::Config; print "TrEd in available in " . Treex::Core::Config->tred_dir() . "\n"; print "PML schema is available in " . Treex::Core::Config->pml_schema_dir() . "\n";
This module provides information about the current installed Treex framework, for instance paths to its components. By default the configuration is stored in $HOME/.treex/config.yaml. You can specify an alternative directory for config.yaml by setting the $TREEX_CONFIG environment variable. You can edit config.yaml, so it suits your needs.
$HOME/.treex/config.yaml
config.yaml
$TREEX_CONFIG
return list of directories where resources will be searched
return temporary directory, should be used instead of /tmp or similar
returns the Treex shared directory (formerly $TMT_SHARE)
$TMT_SHARE
returns base url from shared data are downloaded
return the directory in which the PML schemata for .treex files are located
the directory in which the tree editor TrEd is installed
the directory in which the TrEd extension for Treex files is stored
returns directory where configuration of Treex will reside (currently just path file)
returns default path for resources, it uses dist data for Treex-Core and if $TMT_ROOT variable set also $TMT_ROOT/share
Treex-Core
returns true iff the current Treex instance is running from the svn working copy (which means that it is the development version, not installed from CPAN)
true
returns the directory in which this module is located (and where the other Treex::Core modules are expected too)
Zdeněk Žabokrtský <zabokrtsky@ufal.mff.cuni.cz>
Tomáš Kraut <kraut@ufal.mff.cuni.cz>
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.
To install Treex::Core, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Treex::Core
CPAN shell
perl -MCPAN -e shell install Treex::Core
For more information on module installation, please visit the detailed CPAN module installation guide.