[CWB] Illegal division by zero
Hardie, Andrew
a.hardie at lancaster.ac.uk
Thu Nov 1 13:56:39 CET 2012
This seems to be an error in working out the average sentence length of each text. Check whether the numSentences column in the headerInfo table in the database has been populated correctly.
best
Andrew.
From: cwb-bounces at sslmit.unibo.it [mailto:cwb-bounces at sslmit.unibo.it] On Behalf Of "Andrés Chandía"
Sent: 01 November 2012 12:40
To: Open source development of the Corpus WorkBench
Subject: [CWB] Illegal division by zero
Hi there, at the BNCweb (CQP-Edition) we are experimenting the next problem, we do a simple query like: {find}<http://parles.upf.edu/bncweb-cgi/BNCquery.pl?theQuery=search&querySelect=simpleC&queryMode=simple&insertQuery=%7Bfind%7D&urlTest=yes> (case sensitive), the resulting page says: "Your query "{find}" returned 96170 hits in 3708 different texts" but there is nothing at the page, I mean, you cannot see the list of occurrences, checking the error.log of the apache I found this:
[error] [client 79.151.53.163] Illegal division by zero at /www/bnc/cgi-bin/main.pl line 2318, <GEN1> line 1., referer: http://parles.upf.edu/bncweb-cgi/BNCquery.pl?theQuery=search&querySelect=simpleC&queryMode=simple&insertQuery=%7Bfind%7D&urlTest=yes
What should I look for to try to fix this?
Thanks
_______________________
andrés chandía
[Image removed by sender. chandia.net]<http://www.chandia.net>
P No imprima innecesariamente. ¡Cuide el medio ambiente!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://devel.sslmit.unibo.it/pipermail/cwb/attachments/20121101/3cc0b9ed/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ~WRD000.jpg
Type: image/jpeg
Size: 823 bytes
Desc: ~WRD000.jpg
URL: <http://devel.sslmit.unibo.it/pipermail/cwb/attachments/20121101/3cc0b9ed/attachment.jpg>
More information about the CWB
mailing list