[Mead] Re: Problem with QueryCosine.pl

sravich.c c sravich.c at gmail.com
Thu Mar 13 00:55:10 EST 2008


By passing enidf and lang specifications to QueryCosine.pl solved my
problem.
I hope this modification is correct...or....are there any dependencies?

Changes made are
1)added "enidf ENG" to feature specification in meadrc

            "feature QueryTitleCosine
/mead/bin/feature-scripts/QueryCosine.pl  *enidf ENG *-q t
/mead/data/GA3/GA3.query /mead/data/GA3/docsent"

2)added following lines to QueryCosine.pl
             my $idffile = shift;
             my $lang = shift;
.
Awaiting reply...

With Regards,
Sravich

On Wed, Mar 12, 2008 at 11:25 PM, sravich.c c <sravich.c at gmail.com> wrote:

> Sir,
> I have problem using QueryCosine feature
>
> Am trying to run mead using following command line
>      ./mead.pl -meadrc /mead/data/GA3/sample.meadrc GA3
>
> With this I get these errors:
>
> Global symbol "$idffile" requires explicit package name at
> /mead/bin/feature-scripts/QueryCosine.pl line 83.
> Global symbol "$idffile" requires explicit package name at
> /mead/bin/feature-scripts/QueryCosine.pl line 88.
> Global symbol "$idffile" requires explicit package name at
> /mead/bin/feature-scripts/QueryCosine.pl line 93.
> Execution of /mead/bin/feature-scripts/QueryCosine.pl aborted due to
> compilation errors.
> FATAL: Feature Calculation returned 65280
>
> no element found at line 1, column 0, byte 0 at
> /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/XML/Parser.pm line
> 187
>
> our sample.meadrc
> ************
> compression_basis    sentences
> compression_absolute    6
> feature QueryTitleCosine  /mead/bin/feature-scripts/QueryCosine.pl  -q t
> /mead/data/GA3/GA3.query /mead/data/GA3/docsent
> classifier /mead/bin/default-classifier.pl Centroid 1 Position 1 Length 9
> QueryTitleCosine 1
> reranker /mead/bin/cst-rerankers/mmr-reranker.pl 0.6 MEAD-cosine enidf
>
> ***********
> I tried to run write-idf but in vain
> Can any one help me in solving this problem
>
> Thanking you
> With Regards,
> Sravich
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.si.umich.edu/pipermail/mead/attachments/20080313/cde82800/attachment.htm


More information about the Mead mailing list