[CWB] Illegal division by zero
Hardie, Andrew
a.hardie at lancaster.ac.uk
Thu Nov 1 15:04:47 CET 2012
The Perl scripts that do BNCweb installation gather data from the BNC file headers to build this database (among other things). So, alas, there is only one solution: You go back to setup and repeat whatever steps got missed or went wrong, so that the headerinfo table gets filled in!
Andrew
From: "Andrés Chandía" [mailto:andres at chandia.net]
Sent: 01 November 2012 13:30
To: Hardie, Andrew
Cc: Open source development of the Corpus WorkBench
Subject: RE: [CWB] Illegal division by zero
Ok, actually the headerinfo table is not populated at all, and these are the properties of the column:
numSentences
mediumint(8)
UNSIGNED
No
None
so what do I do next
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 [/src/compose.php?send_to=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
_______________________
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/57b670ea/attachment-0001.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/57b670ea/attachment-0001.jpg>
More information about the CWB
mailing list