实验CRF++
另外,大概是C++的STL线程安全有问题,在Linux、Solaris和Mac OS上使用多线程都SEGFAULT了,所以都是单线程训练的。不敢想象如果用数百兆的语料,会花多长时间、用多少内存...
下面是特征模板的定义:
# Unigram
U00:%x[-1,0]
U01:%x[0,0]
U02:%x[1,0]
U03:%x[-1,0]/%x[0,0]
U04:%x[0,0]/%x[1,0]
U05:%x[-1,0]/%x[1,0]
# Bigram
B
# Unigram
U00:%x[-1,0]
U01:%x[0,0]
U02:%x[1,0]
U03:%x[-1,0]/%x[0,0]
U04:%x[0,0]/%x[1,0]
U05:%x[-1,0]/%x[1,0]
# Bigram
B
This blog copyright 2009 by yongsun
GNU C 有些版本的 STL 在有些系统上多线程是有问题的(map,heap等),如果编译 GNU C 使用 --with-thread=single 那就更不用谈线程安全了。
Sometimes, I would rather use other more than C++ STL.
At least, I knew what the application doing and problems at. :)
发表于 A.L. 在 2008年03月20日, 10:51 下午 CST #
Hi,A.L.,除了Solaris,我在其他系统上使用的都是比较新的libstdc++,以及g++编译器 :(
发表于 Yong Sun 在 2008年03月20日, 11:56 下午 CST #
楼主治学很严谨,学习中...
发表于 gavin.tu 在 2008年03月25日, 09:17 上午 CST #