回复: 请问:如何可以做到把文本形式的语料库可以在线检索?
一个Perl做的,还是个雏形,一次能处理一个文件,按cgi方式执行即可,测试环境用的是apache 2+ Linux
#!/usr/bin/perl -w
open(FILE,"browncorpus.txt") or die("cannot open the file");
$/="";
$target='\b(the)\b';
$radius=50;
$width=2*$radius;
print "Content-Type: text/html\n\n";
print "<pre>"...