Sha256: 982161a7f5591d742135b30b035b9347c09c21b8985125c8fad9336d76fac66c

Contents?: true

Size: 1.25 KB

Versions: 6

Compression:

Stored size: 1.25 KB

Contents

package ParsHed::Config;

$algorithmName		= "ParsHed";
$algorithmVersion	= "110505";

## Tr2crfpp
## Paths relative to ParsCit root dir
$tmpDir			= "tmp";
$dictFile		= "resources/parsCitDict.txt";
$keywordFile	= "resources/parsHed/keywords";
$bigramFile		= "resources/parsHed/bigram";

$crf_test = $ENV{'CRFPP_HOME'} ? "$ENV{'CRFPP_HOME'}/bin/crf_test" : "crfpp/crf_test";

$modelFile		= "resources/parsHed/parsHed.model";
#$oldModelFile	= "resources/parsHed/archive/parsHed.090316.model";
$oldModelFile = "unsupported for space reasons";

# Flags for different types of CRF features for line-level training
$isFullFormToken	= 1;
$isFirstToken  		= 1;
$isLastToken  		= 1;
$isSecondToken  	= 1;
$isSecondLastToken	= 1;
$isBack1 			= 1;
$isForw1 			= 1;
$isKeyword  		= 1;
$isBigram 			= 0;

# List of tags trained in parsHed
# Those with value 0 do not have frequent keyword features
%hash = (	'abstract'    => 1,
	 		'address'     => 1 ,
	 		'affiliation' => 1,
	 		'author'      => 0, #
	 		'date'        => 0, #
	 		'degree'      => 1,
	 		'email'       => 0, #
	 		'intro'       => 1,
	 		'keyword'     => 1,
	 		'note'        => 1,
	 		'page'        => 1,
	 		'phone'       => 0, #
	 		'pubnum'      => 1,
	 		'title'       => 1,
	 		'web'         => 0	);
$tags = \%hash;

1;

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
biblicit-2.3.2 parscit/lib/ParsHed/Config.pm
biblicit-2.3.1 parscit/lib/ParsHed/Config.pm
biblicit-2.3.0 parscit/lib/ParsHed/Config.pm
biblicit-2.2.3 parscit/lib/ParsHed/Config.pm
biblicit-2.2.2 parscit/lib/ParsHed/Config.pm
biblicit-2.2.1 parscit/lib/ParsHed/Config.pm