Sha256: ea292d6db0e15bf88361102f022eae4cbbcec4c0d0bc2190866f56b04e89edbd

Contents?: true

Size: 1.23 KB

Versions: 3

Compression:

Stored size: 1.23 KB

Contents

package ParsHed::Config;

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

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

$crf_test   = "$ENV{'CRFPP_HOME'}/bin/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

3 entries across 3 versions & 1 rubygems

Version Path
biblicit-2.0.5 parscit/lib/ParsHed/Config.pm
biblicit-2.0.4 parscit/lib/ParsHed/Config.pm
biblicit-2.0.3 parscit/lib/ParsHed/Config.pm