biblicit 2.0.5 → 2.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/lib/biblicit/version.rb +1 -1
- data/parscit/INSTALL +29 -7
- data/parscit/bin/parsHed/redo.parsHed.pl +3 -2
- data/parscit/bin/redo.parsCit.pl +3 -2
- data/parscit/bin/sectLabel/genericSect/crossValidation.rb +1 -1
- data/parscit/bin/sectLabel/genericSectExtract.rb +1 -1
- data/parscit/bin/sectLabel/redo.sectLabel.pl +3 -2
- data/parscit/doc/index.html +692 -0
- data/parscit/lib/ParsCit/Config.pm +1 -1
- data/parscit/lib/ParsCit/Tr2crfpp.pm +1 -1
- data/parscit/lib/ParsHed/Config.pm +1 -1
- data/parscit/lib/ParsHed/Tr2crfpp.pm +1 -1
- data/parscit/lib/ParsHed/Tr2crfpp_token.pm +1 -1
- data/parscit/lib/SectLabel/AAMatching.pm +1949 -0
- data/parscit/lib/SectLabel/Config.pm +1 -1
- data/parscit/lib/SectLabel/Tr2crfpp.pm +2 -2
- metadata +5 -8
@@ -11,7 +11,7 @@ $tmpDir = "tmp";
|
|
11
11
|
$dictFile = "resources/parsCitDict.txt";
|
12
12
|
$funcFile = "resources/sectLabel/funcWord";
|
13
13
|
|
14
|
-
$crf_test = "$ENV{'CRFPP_HOME'}/bin/crf_test";
|
14
|
+
$crf_test = $ENV{'CRFPP_HOME'} ? "$ENV{'CRFPP_HOME'}/bin/crf_test" : "crfpp/crf_test";
|
15
15
|
|
16
16
|
$modelFile = "resources/sectLabel/sectLabel.model";
|
17
17
|
#$modelXmlFile = "resources/sectLabel/sectLabel.modelXml.v2";
|
@@ -20,7 +20,7 @@ use Encode ();
|
|
20
20
|
use SectLabel::Config;
|
21
21
|
|
22
22
|
### USER customizable section
|
23
|
-
my $crf_test = $SectLabel::Config::crf_test;
|
23
|
+
my $crf_test = $ENV{'CRFPP_HOME'} ? "$ENV{'CRFPP_HOME'}/bin/crf_test" : "$FindBin::Bin/../$SectLabel::Config::crf_test";
|
24
24
|
### END user customizable section
|
25
25
|
|
26
26
|
my %dict = ();
|
@@ -1224,7 +1224,7 @@ sub LoadListHash
|
|
1224
1224
|
sub Untaint
|
1225
1225
|
{
|
1226
1226
|
my ($s) = @_;
|
1227
|
-
if ($s =~ /^([\w \-\@\(\)
|
1227
|
+
if ($s =~ /^([\w \-\@\(\),\.\/<>\+]+)$/)
|
1228
1228
|
{
|
1229
1229
|
$s = $1; # $data now untainted
|
1230
1230
|
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: biblicit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-03-
|
12
|
+
date: 2013-03-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -407,6 +407,7 @@ files:
|
|
407
407
|
- parscit/bin/sectLabel/single2multi.pl
|
408
408
|
- parscit/bin/sectLabel/tr2crfpp.pl
|
409
409
|
- parscit/bin/tr2crfpp.pl
|
410
|
+
- parscit/doc/index.html
|
410
411
|
- parscit/lib/CSXUtil/SafeText.pm
|
411
412
|
- parscit/lib/ParsCit/.PostProcess.pm.swp
|
412
413
|
- parscit/lib/ParsCit/Citation.pm
|
@@ -421,6 +422,7 @@ files:
|
|
421
422
|
- parscit/lib/ParsHed/PostProcess.pm
|
422
423
|
- parscit/lib/ParsHed/Tr2crfpp.pm
|
423
424
|
- parscit/lib/ParsHed/Tr2crfpp_token.pm
|
425
|
+
- parscit/lib/SectLabel/AAMatching.pm
|
424
426
|
- parscit/lib/SectLabel/Config.pm
|
425
427
|
- parscit/lib/SectLabel/Controller.pm
|
426
428
|
- parscit/lib/SectLabel/PostProcess.pm
|
@@ -452,18 +454,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
452
454
|
- - ! '>='
|
453
455
|
- !ruby/object:Gem::Version
|
454
456
|
version: '0'
|
455
|
-
segments:
|
456
|
-
- 0
|
457
|
-
hash: -1430171946966686142
|
458
457
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
459
458
|
none: false
|
460
459
|
requirements:
|
461
460
|
- - ! '>='
|
462
461
|
- !ruby/object:Gem::Version
|
463
462
|
version: '0'
|
464
|
-
segments:
|
465
|
-
- 0
|
466
|
-
hash: -1430171946966686142
|
467
463
|
requirements:
|
468
464
|
- For PDFs, Poppler or XPDF (try "which pdftotext")
|
469
465
|
- For Postscript files, Ghostscript (try "which ps2ascii")
|
@@ -487,3 +483,4 @@ test_files:
|
|
487
483
|
- spec/fixtures/txt/sample1.txt
|
488
484
|
- spec/fixtures/txt/sample2.txt
|
489
485
|
- spec/spec_helper.rb
|
486
|
+
has_rdoc:
|