parscit/lib/ParsCit/Tr2crfpp.pm in biblicit-2.2.0 vs parscit/lib/ParsCit/Tr2crfpp.pm in biblicit-2.2.1
- old
+ new
@@ -10,28 +10,23 @@
###
use utf8;
use strict 'vars';
-use FindBin;
use Encode ();
use ParsCit::Config;
-### USER customizable section
-my $tmp_dir = $ParsCit::Config::tmpDir;
-$tmp_dir = "$FindBin::Bin/../$tmp_dir";
+use File::Basename;
+my $dir = dirname(__FILE__);
+my $parscitHome = "$dir/../../";
-my $dict_file = $ParsCit::Config::dictFile;
-$dict_file = "$FindBin::Bin/../$dict_file";
-
-my $crf_test = $ENV{'CRFPP_HOME'} ? "$ENV{'CRFPP_HOME'}/bin/crf_test" : "$FindBin::Bin/../$ParsCit::Config::crf_test";
-
-my $model_file = $ParsCit::Config::modelFile;
-$model_file = "$FindBin::Bin/../$model_file";
-
-my $split_model_file = $ParsCit::Config::splitModelFile;
-$split_model_file = "$FindBin::Bin/../$split_model_file";
+### USER customizable section
+my $tmp_dir = "$parscitHome/$ParsCit::Config::tmpDir";
+my $dict_file = "$parscitHome/$ParsCit::Config::dictFile";
+my $crf_test = $ENV{'CRFPP_HOME'} ? "$ENV{'CRFPP_HOME'}/bin/crf_test" : "$parscitHome/$ParsCit::Config::crf_test";
+my $model_file = "$parscitHome/$ParsCit::Config::modelFile";
+my $split_model_file = "$parscitHome/$ParsCit::Config::splitModelFile";
### END user customizable section
###
# Huydhn: don't know its function
###