在debian下安装bamboo的问题(关于pg_bamboo.sql)

65 views
Skip to first unread message

dbears

unread,
Mar 30, 2009, 12:35:18 AM3/30/09
to NlpBamboo
非常感谢各位老师的耐心回答,不过我又有问题了,实在不好意思,初学bamboo
今天我按照安装提示安装到训练的时候:我训练了seg提示我Done!XXXs

我认为我已经训练结束,但是此时我运行 chinese_parser.sql
提示我can not load bamboo!
我看了一下以前的帖子,好像也有类似,不过回答说是没有训练好

而且我看了下网上关于PostgreSQL的集成安装:
http://blog.chinaunix.net/u/29309/showart_1773730.html

但是我到了集成的时候 ,没有发现 pg_bamboo.sql,也无从执行,不知道在debian安装集成PostgreSQL的时候到底需要如何做
能?能否给个很清楚明确的步骤呢?

jianingy

unread,
Mar 31, 2009, 2:31:01 AM3/31/09
to NlpBamboo
那个pg_bamboo改了个名字,现在改叫pg_tokenize了。这个改动并没有特殊说明,实在不好意思。

dbears

unread,
Mar 31, 2009, 6:23:01 AM3/31/09
to NlpBamboo
我继续更改运行了 postgres# \i /usr/share/postgresql/8.3/contrib/
pg_tokenize.sql ,同样提醒我错误 “can not init tokenize”
同样这次我是做了训练的但是还是出现了错误

/opt/bamboo/bin/auto_build -t seg
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
/opt/bamboo/bin/auto_build: line 31: 26071 已放弃 crf_learn
-p ${thread_num} -c 4.0 -f 2 ${tmpl_dir}/crf_seg.tmpl ${build_dir}/
pd_crf_seg_training.txt ${index_dir}/crf_seg.model

然后回到命令提示符。

> > 能?能否给个很清楚明确的步骤呢?- 隐藏被引用文字 -
>
> - 显示引用的文字 -

jianingy

unread,
Apr 3, 2009, 3:56:44 AM4/3/09
to NlpBamboo
看起来像是内存不够了,你的机器多大内存的?
另外如果实在build不出来就下载这个吧:

字典下载:http://nlpbamboo.googlecode.com/files/index.tar.bz2

Reply all
Reply to author
Forward
0 new messages