用户工具

站点工具


zh:notes:install_parscit

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录 前一修订版
后一修订版
前一修订版
zh:notes:install_parscit [2019/08/02 13:32]
pzczxs [安装ParsCit]
zh:notes:install_parscit [2022/06/30 11:30] (当前版本)
pzczxs 讨论状态变化了
行 5: 行 5:
 CentOS 6.8 (64 bits) CentOS 6.8 (64 bits)
  
-===== Update ​Perl =====+===== Upgrade ​Perl =====
 <code bash> <code bash>
 > wget https://​www.cpan.org/​src/​5.0/​perl-5.30.0.tar.gz > wget https://​www.cpan.org/​src/​5.0/​perl-5.30.0.tar.gz
 > tar -zxvf perl-5.30.0.tar.gz > tar -zxvf perl-5.30.0.tar.gz
 +> rm -f perl-5.30.0.tar.gz
 > cd perl-5.30.0 > cd perl-5.30.0
 > ./Configure -des -Dprefix=/​usr/​local/​perl -Dusethreads -Uversiononly > ./Configure -des -Dprefix=/​usr/​local/​perl -Dusethreads -Uversiononly
行 25: 行 26:
 <code bash> <code bash>
 > yum install perl-CPAN > yum install perl-CPAN
-安装XML::Parser库下面这两个包+Prerequisites for installing library ​XML::Parser
 > yum install expat > yum install expat
 > yum install expat-devel > yum install expat-devel
行 60: 行 61:
 > install XML::​Writer::​String > install XML::​Writer::​String
 </​code>​ </​code>​
 +
 +===== Download ParsCit =====
 +<code bash>
 +> wget https://​github.com/​knmnyn/​ParsCit/​archive/​master.zip
 +> unzip master.zip
 +> rm -f master.zip
 +> mv master ParsCit
 +</​code>​
 +
 +===== Compile CRF++ =====
 +<code bash>
 +> cd ParsCit/​crfpp
 +> tar -xvzf crf++-0.51.tar.gz
 +> cd CRF++-0.51
 +> ./configure
 +> make
 +
 +# move executables to where ParsCit expects to find them
 +> cp crf_learn crf_test ..
 +> cd .libs
 +> cp -Rf * ../../.libs
 +> cd ../../.libs
 +> chmod u+x lt-crf_learn
 +> chmod u+x lt-crf_test
 +</​code>​
 +
 +===== Run ParsCit =====
 +<code bash>
 +> cd ParsCit/bin
 +> ./​citeExtract.pl -m extract_all ../​demodata/​sample2.txt sample2.txt.out
 +</​code>​
 +
 +~~DISCUSSION:​closed~~
zh/notes/install_parscit.1564723956.txt.gz · 最后更改: 2019/08/02 13:32 由 pzczxs