Re: 'Floating point exception'
Thomas Michael Hagen <[email protected]>
| Newsgroups | gmane.mail.spam.crm114 |
|---|---|
| Message-ID | <[email protected]> |
all right, i have created a logfile at
http://gandalf.uib.no/aviskorpus/emneklassifisering/
the problem lies in this function:
:try-to-learn: (:my-args:)
{
match (:: :url: :chunk:) [:my-args:] /(#http:.*?)(<.*)/
output /:*:url:/
{
match (:category:) [:url:]
/sport|fotball|internasjonal|england|mesterligaen|eliteserien|landslaget|forstediv|2div3|sporten|handball|håndball/
learn <osbf microgroom> [:my-args:] (spo.cfc)
isolate (:learn-conc:) /spo/
return
}
alius
{
match (:category:) [:url:] /politikk|politikkSamfunn/
learn <osbf microgroom> [:my-args:] (pol.cfc)
isolate (:learn-conc:) /pol/
return
}
#another 17 categories here snipped for clarity
{
match (:category:) [:url:]
/telegraph|independent|guardian|indystar|aftonbladet|marca|elmundodeportivo|local|business|world/
learn <osbf microgroom> [:my-args:] (out.cfc)
isolate (:learn-conc:) /out/
return
}
alius #if all else fails:
{
learn <osbf microgroom> [:my-args:] (unc.cfc)
isolate (:learn-conc:) /unc/
return
}
}
i've tried experimenting a bit with it; when i remove categories so
that there is no match, there is no error. the floating point
exception occurs when i get a hit on one of the categories. this
didn't happen before i upgraded to this version.
ps: since i'm on a 64 bit machine, i told my admin to upgrade to one
of the gerh builds on hebbut.net, and this is the result. it's not a
gerh build, is it?
(the first four lines of) output of crm -v ( actually
/usr/local/crm114/bin/crm114 -v ) is:
This is CRM114, version 20081111-BlameBarack, rev 4797 (TRE 0.7.5
(LGPL, APPROX, WCHAR, MULTIBYTE)) (OS: linux-gnu)
Copyright 2001-2009 William S. Yerazunis
This software is licensed under the GPL with ABSOLUTELY NO WARRANTY
On Tue, Mar 17, 2009 at 5:42 PM, Bill Yerazunis <[email protected]> wrote:
>
> From: Thomas Michael Hagen <[email protected]>
>
> i don't understand your instruction.
>
> this is what i usually run:
>
> crm -w 15000000 topic-classifier.crm
>
> this part works, and produces a very large output
>
> crm -t -T -w 15000000 topic-classifier.crm
>
> when i try to put the word 'capture' in the command, i am told
>
> Couldn't open file 'capture' ...
>
> Oh, sorry.
>
> It should be
>
> crm -t -T -w 15000000 topic-classifier.crm 2>my_log_file.txt
>
> - Bill
>
>
> On Tue, Mar 17, 2009 at 3:39 PM, Paolo <[email protected]> wrote:
> > On Tue, Mar 17, 2009 at 01:41:51PM +0100, Thomas Michael Hagen wrote:
> >>
> >> I'm now getting a new mysterious (in this context) error message:
> >>
> >> Floating point exception
> >
> > can you run it with -t -T, capture stout and stderr in a logfile and upload
> > it somewhere (pls note that the file will expose text you feed to the prg).
> >
> >> that were too large. now, it seems it can't handle any file without
> >> getting a floating point exception.
> >
> > iirc you're on 64bit, so GerH flavour would be a better bet anyway, so far.
> >
> > --
> > paolo
> >
>
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com