1.系统环境

32位 Ubuntu

  • 源代码中已经包含在32位下编译生成的.o文件,配置好依赖库(步骤2)后,参考步骤3则可重新link.

    link无误即可运行程序。

2.依赖库

 2.1 boost_1_44_0

  2.1.1 ubuntu 64位
    boost_1_44_0安装说明

 

   2.1.2 ubuntu 32位

  • 源码中已经包含boost_1_44_0在32位下编译后的文件,将(boost_1_44_0.tar)解压缩之后的文件放置在 /usr/local下即可。 
  • 编译Boost.Regex: 

    如果在{$BOOST_PATH}/libs/regex/build/目录中不存在名为gcc的文件夹,则执行下面操作:

      在{$BOOST_PATH}/libs/regex/build/执行如下命令,生成动态链接库      

make -f gcc-shared.mak
make -f gcc.mak
sudo ln -s libboost_regex-gcc-1_42.so /usr/local/lib
sudo ln -s libboost_regex-gcc-1_42.so /usr/lib

    若存在gcc文件夹,且文件夹中只有*.o文件,而没有*.so文件。则执行下面操作

      在{$BOOST_PATH}/libs/regex/build/gcc 执行如下命令,生成动态链接库

g++ *.o -fPIC -shared -o libboost_regex-gcc-1_42.so
sudo ln -s libboost_regex-gcc-1_42.so /usr/local/lib
sudo ln -s libboost_regex-gcc-1_42.so /usr/lib

配置libboost_regex-gcc-1_42.so的路径,执行如下命令

  cd ~
gedit .bashrc
//在.bashrc文件中添加下面两行
export BOOST_PATH="/usr/local/boost_1_44_0"
export LD_LIBRARY_PATH=$BOOST_PATH/libs/regex/build/gcc
//保存退出
source .bashrc

2.2安装mysql

安装mysql,包括mysql-server,mysql-client,libmysqlclient-dev:

sudo apt-get install mysql-server
sudo apt-get install mysql-client
sudo apt-get install libmysqlclient-dev

程序中所用的数据库名为wikipedia,用户名为'root'@'localhost',密码为‘root’。如果用户名root的密码不为root时,注意修改密码。

创建数据库wikipedia:

> create database wikipedia;
> use wikipedia;

恢复数据:将wikipedia_mysql_backup(里面包含create table语句和insert语句)恢复到wikipedia数据库中:

> source wikipedia_mysql_backup;

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAR4AAAFACAIAAADlL4QGAAAgAEl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p-service

修改ltp-service/__ltpService/LTPOption.h文件,对该文件进行如下修改:

//#define LINUX_OS  ->  #define LINUX_OS
#define WIN_OS -> //#define WIN_OS

在ltp_service文件内,依次执行如下3个命令:

./configure;
make;
sudo make install

make 需要g++支持,如果没有安装g++(用指令g++ -v 查看是否安装),则通过sudo apt-get install g++安装.

程序运行所需的主要的libutil libxml4nlp libservice在 /usr/local/lib中。

3. make源文件3.1 将 {程序路径}\ontoEnrich\system\makefile,用如下的makefile覆盖:

#如果提示文件找不到,添加需要的 INCLUDE,LINK 路径
#修改时,请对比原makefile文件,并不要修改原文件(将原makefile文件备份)
INCLUDE = ./ -I ../segment -I ../conceptRecognise -I ../utility \
-I ../regexMatch -I ../include -I ../suffixTree -I ../wikiProject \
-I ../relationExtractor -I ../simWord -I ../clustering -I ../pattern \
-I /usr/local/include -I /usr/local/boost_1_44_0
VPATH =:../segment:../conceptRecognise:../utility:../suffixTree \
:../regexMatch:../wikiProject:../utility:../relationExtractor \
:../simWord:../clustering:../pattern BOOSTLIBS = -L /usr/local/boost_1_44_0/libs/regex/build/gcc -lboost_regex-gcc-1_42 object1=text.o corpus.o simpleConceptExtractor.o
object2=getRulePattern.o regexMatch.o
object3=wikiCategory.o zh2sim.o connectMysql.o regexMatch.o
object4=CWikiNetworkTrainer.o fire.o CWikiNetwork.o StrFun.o
object5=suffixTree.o charConverter.o
object6=relationPopulation.o mark.o kmeans.o patternUtility.o pattern.o synForest.o
object7=clustering.o wordVector.o distance.o tree.o
object8=getPattern.o editDistanceCal.o patternGenerator.o
object=$(object1) $(object2) $(object3) $(object4) $(object5) $(object6) $(object7) $(object8) \
wikiInfoExtractor.o wikiInfoExtractor.o compoundConceptExtractor.o \
addElement.o ontoLearner.o ontologyEnrichment.o sentParser.o
ontologyEnrichment:$(object)
g++ -o ontologyEnrichment -g $^ -I$(INCLUDE) -lmysqlclient ${BOOSTLIBS} \
-L ../segment -lsegment -L /usr/local/lib -lutil -lxml4nlp -lservice
myUtility.o:myUtility.cpp
g++ -g -c $^ -I$(INCLUDE) -L ../segment -lsegment #simpleConceptLearner.o:$(object1)
# g++ -g -o simpleConceptLearner.o $^ -L../segment -lsegment
simpleConceptExtractor.o:simpleConceptExtractor.cpp
g++ -c -g $^ -I$(INCLUDE)
text.o:text.cpp
g++ -c -g $^ -I$(INCLUDE) -L ../segment -lsegment
corpus.o:corpus.cpp
g++ -c -g $^ -I$(INCLUDE) -L ../segment -lsegment # getRuleFile.o:$(object2)
# g++ -g -o getRuleFile.o $^ -I$(INCLUDE) -L../ -lsegment -lboost_regex-gcc-1_42
getRulePattern.o:getRulePattern.cpp
g++ -g -c $^ -I$(INCLUDE)
regexMatch.o:regexMatch.cpp
g++ -c -g $^ -I$(INCLUDE) ${BOOSTLIBS} wikiInfoExtractor.o:wikiInfoExtractor.cpp
g++ -g -c $^ -I$(INCLUDE) ${BOOSTLIBS} -L ../segment -lsegment compoundConceptExtractor.o:compoundConceptExtractor.cpp
g++ -g -c $^ -I$(INCLUDE) -L ../segment -lsegment # cateRel.o:$(object3)
# g++ -g -o cateRel.o $^ -I$(INCLUDE) -lboost_regex-gcc-1_42 -lmysqlclient -L ../segment -lsegment
wikiCategory.o:wikiCategory.cpp
g++ -c -g $^ -I$(INCLUDE) ${BOOSTLIBS} -L ../segment -lsegment
zh2sim.o:zh2sim.cpp
g++ -g -c $^ -I$(INCLUDE)
connectMysql.o:connectMysql.cpp
g++ -g -c $^ -I$(INCLUDE) -lmysqlclient addElement.o:addElement.cpp
g++ -g -c $^ -I$(INCLUDE) -lmysqlclient
ontoLearner.o:ontoLearner.cpp
g++ -g -c $^
ontologyEnrichment.o:ontologyEnrichment.cpp
g++ -g -c $^ CWikiNetworkTrainer.o: CWikiNetworkTrainer.cpp
g++ -g CWikiNetworkTrainer.cpp -c -o CWikiNetworkTrainer.o -I$(INCLUDE)
fire.o :fire.cpp
g++ -g $^ -c -o fire.o -I$(INCLUDE)
CWikiNetwork.o : CWikiNetwork.cpp
g++ -g CWikiNetwork.cpp -c -o CWikiNetwork.o -I$(INCLUDE)
StrFun.o: StrFun.cpp
g++ -g StrFun.cpp -c -I$(INCLUDE) suffixTree.o:suffixTree.cpp
g++ -c -g $^ -I$(INCLUDE) -L ../segment -lsegment
charConverter.o:charConverter.cpp
g++ -c -g $^ relationPopulation.o:relationPopulation.cpp
g++ -c $^ -I$(INCLUDE)
mark.o:mark.cpp
g++ -c $^ -I$(INCLUDE)
kmeans.o:kmeans.cpp
g++ -c $^ -I$(INCLUDE)
patternUtility.o:patternUtility.cpp
g++ -c $^ -I$(INCLUDE)
pattern.o:pattern.cpp
g++ -c $^ -I$(INCLUDE)
synForest.o:synForest.cpp
g++ -g -c $^ -I$(INCLUDE) -L ../segment -lsegment clustering.o:clustering.cpp
g++ -c -g $^ -I$(INCLUDE)
wordVector.o:wordVector.cpp
g++ -c -g $^ -I$(INCLUDE)
distance.o:distance.cpp
g++ -c -g $^
tree.o:tree.cpp
g++ -c -g $^ getPattern.o:getPattern.cpp
g++ -g -c $^ -I$(INCLUDE) ${BOOSTLIBS}
patternGenerator.o:patternGenerator.cpp
g++ -g -c $^ -I$(INCLUDE) ${BOOSTLIBS}
editDistanceCal.o:editDistanceCal.cpp
g++ -g -c $^ -I$(INCLUDE) sentParser.o:sentParser.cpp
g++ -g -c $^ -I$(INCLUDE) -L /usr/local/lib -lutil -lxml4nlp -lservice clean:
rm $(object) ontologyEnrichment

3.2

cd {程序路径}/ontoEnrich/system;
make

如果提示 "xx"是最新的,请查阅相关资料自行处理。

3.3 运行程序:

cd {程序路径}/ontoEnrich/system;
./ontologyEnrichment

4.程序代码说明

主程序:ontoEnrich/system/ontologyEnrichment.cpp

[概念学习]  1.简单概念学习程序:simpleConceptLearner():ontoEnrich/conceptRecognise/simpleConceptExtractor.cpp

  2.符合概念学习程序:compoundConceptLearner():ontoEnrich/conceptRecognise/compoundConceptExtractor.cpp

[ 关系学习]

  1、使用维基百科信息盒进行关系学习:infoboxExtractor():ontoEnrich/wikiProject/wikiInfoExtractor.cpp
       2、使用维基百科分类名进行关系学习:categoryExtractor():ontoEnrich/wikiProject/wikiCategory.cpp
       3、使用维基百科链接进行关系学习:linkExtractor():ontoEnrich/wikiProject/fire.cpp
       4、使用广义后缀树识别概念分类关系:suffixTreeLearner()
       5、使用层次聚类学习概念间分类关系:hierClusteringLearner()
       6、模板匹配法学习特定概念间关系(方法一):patternRelationExtractor()
       7、模板匹配法学习特定概念间关系(方法二):patternLearner()

(32位)本体学习程序(ontoEnrich)系统配置说明文档的更多相关文章

  1. (64位)本体学习程序(ontoEnrich)系统配置说明文档

    1系统环境 64位 Ubuntu 2 第三方依赖库配置 boost_1_44_0 #解压boost_1_44_0.tar.gz 到 /usr/local.如果出现权限问题,请用sudo执行该命令 ta ...

  2. hadoop2.6.0汇总:新增功能最新编译 32位、64位安装、源码包、API下载及部署文档

    相关内容: hadoop2.5.2汇总:新增功能最新编译 32位.64位安装.源码包.API.eclipse插件下载Hadoop2.5 Eclipse插件制作.连接集群视频.及hadoop-eclip ...

  3. System.Data.SQLite兼容32位和64位问题

    SQLite版本分的很详细,本机是64位在32位会出现问题,经过搜索找到解决方案. 这是我以前写的32位在我现在的机子上的运行报错. 类似这样的. 将当前说明文档的目录下的x64.x86目录和Syst ...

  4. ubuntu 12.04 LTS 64位兼容运行32位程序

    安装完Goagent,运行的时候出现了问题,在网络上翻看一些关于ubuntu的文档时,突然记起自己安装的是64位版,而goagent应该是32位的,于是通过sudo apt-get install i ...

  5. 无光驱在32位windows系统下安装64位windows系统

    位的系统. 大家都知道,32位的操作系统最多只能支持3.2G的内存,现在内存白菜价,很多人都在原有基础上购入新内存,这样最少也有4G了,为了让内存不浪费,我 们只有升级到64位操作系统.但是很多朋友又 ...

  6. ubuntu 到底是选择32位还是64位?

     ubuntu 到底是选择32位还是64位? 2011-06-03 15:16:31 标签:ubuntu linux 休闲 cpu 职场 原文出处:官方wiki原文作者:授权许可: 创作共用协议Att ...

  7. win7(64)位下WinDbg64调试VMware10下的win7(32位)

    win7(64)位下WinDbg64调试VMware10下的win7(32位) 一 Windbg32位还是64位的选择 参考文档<Windbg 32位版本和64位版本的选择> http:/ ...

  8. 最新32位和64位xp,win7,win8,win10系统大全(电脑装机版)

    一.系统主要特点 1.安装维护方便快速 - 全自动无人值守安装,采用万能GHOST技术,安装系统过程只需3-5分钟,适 合新旧各种机型. - 集成常见硬件驱动,智能识别+预解压技术,绝大多数硬件可以快 ...

  9. oralce 10g(10.2.0.1) 冷备份从64位恢复到32位

    环境描述:windows 2003 企业版 64位 oracle版本:oracle 10g 10.2.0.1 64位 冷备恢复到 windows XP oracle 10g 10.2.0.1 32位( ...

随机推荐

  1. POJ 2392 Space Elevator 贪心+dp

    题目链接: http://poj.org/problem?id=2392 题意: 给你k类方块,每类方块ci个,每类方块的高度为hi,现在要报所有的方块叠在一起,每类方块的任何一个部分都不能出现在ai ...

  2. Qt程序打包,自动拷贝依赖文件

    版权声明:若无来源注明,Techie亮博客文章均为原创. 转载请以链接形式标明本文标题和地址: 本文标题:Qt程序打包,自动拷贝依赖文件     本文地址:http://techieliang.com ...

  3. Cmder命令行工具在Windows系统中的配置

    一.Cmder简介 Cmder:一款用于Windows系统中,可增强传统cmd命令行工具的控制台模拟器(类似于Linux系统中的终端控制窗口) 特点: 无需安装,解压即用 可使用较多Linux命令,如 ...

  4. HttpClient出现大量time_wait问题

    在高并发短连接的TCP服务器上,当服务器处理完请求后立刻主动正常关闭连接.这个场景下会出现大量socket处于TIME_WAIT状态.如果客户端的并发量持续很高,此时部分客户端就会显示连接不上.我来解 ...

  5. Android内存泄漏第一课【转】--------(使用单例模式造成的内存泄漏)

    使用单例模式造成的内存泄漏 Android的单例模式在我们项目开发中经常会用到,不过使用的不恰当的话也会造成内存泄漏.因为单例的静态特性使得单例的生命周期和应用的生命周期一样长, 这就说明了如果一个对 ...

  6. ios 中不new Date 的格式 不支持年月日 以‘-’ 分割的格式

    new Date("2018-1-5") 在 ios 中显示 invalid date - 换做 / 则可以顺利显示 new Date("2018/1/5")

  7. ZOJ3084_S-Nim

    题目的意思是这样的,给定你若干堆石子,每次你可以从任一堆取出某些固定数量的石子,每次取完后必须保证没堆石子的数量不为0,谁无法操作了就算fail. 刚刚开始看题目的时候有点也没有思路,甚至连Sg函数也 ...

  8. 循环 与 next()

  9. java实现PV操作

    package com.jayfulmath.designpattern.command; import java.util.concurrent.Semaphore; /* P(S): ①将信号量S ...

  10. 多realm以及jdbcRealm配置

    多realm配置 public class MyRealm1 implements Realm { public String getName() { return "myrealm1&qu ...