MEAD: Re: Please will you help me install Mead?

From: John Blitzer (jcb36@cornell.edu)
Date: Fri Dec 07 2001 - 07:34:04 EST


----- Original Message -----
From: "John Murdie" <john@cs.york.ac.uk>
To: "John Crawford Blitzer" <jcb36@cornell.edu>
Cc: "John Murdie" <john@cs.york.ac.uk>
Sent: Friday, December 07, 2001 7:05 AM
Subject: Re: Please will you help me install Mead?

> <EXTRACT QID="GA3" COMPRESSION="20"
SYSTEM="/usr/local/pkg/mead-3.02beta/programs/hkmead.pl Centroid 1 Position
1 Length 9" LANG="ENG">
> <S ORDER="1" DID="41" SNO="2" />
> <S ORDER="2" DID="41" SNO="5" />
> <S ORDER="3" DID="41" SNO="6" />
> <S ORDER="4" DID="41" SNO="26" />
> <S ORDER="5" DID="81" SNO="2" />
> <S ORDER="6" DID="81" SNO="3" />
> <S ORDER="7" DID="81" SNO="7" />
> <S ORDER="8" DID="81" SNO="13" />
> <S ORDER="9" DID="81" SNO="14" />
> <S ORDER="10" DID="81" SNO="17" />
> <S ORDER="11" DID="81" SNO="27" />
> <S ORDER="12" DID="81" SNO="44" />
> <S ORDER="13" DID="87" SNO="2" />
> <S ORDER="14" DID="87" SNO="3" />
> <S ORDER="15" DID="87" SNO="5" />
> <S ORDER="16" DID="87" SNO="10" />
> <S ORDER="17" DID="87" SNO="16" />
> <S ORDER="18" DID="87" SNO="20" />
> <S ORDER="19" DID="87" SNO="21" />
> <S ORDER="20" DID="87" SNO="22" />
> </EXTRACT>
>
> Is this plausible?

It looks like everything is working well from the perspective of MEAD.
Thanks a lot for the clear report. We'll definitely add it to the
documentation!

> ./extract_to_summary.pl GA3.extract GA3.summary
>
> I get:
> Name "main::tree" used only once: possible typo at ./extract_to_summary.pl
line 55.
>
> I'm pretty sure that I have not made a typo anywhere - I've checked over
> all my alterations. Can you suggest anything I should look at or try?

Unfortunately, I don't know anything about extract_to_summary.pl. However,
I am CCing this mail to two places . The first is the MEAD mailing list.
The second is Horaccio Saggion, who wrote extract_to_summary.pl. I'm sure
one of the two will have the solution.

-- John

> Hi, I've made some more progress with trying to install Mead - using the
> GA3 example unpacked from EXAMPLE.tar.gz as described in the Mead User
> Documentation v0.51. (When I was trying to follow the instructions in
> the README file that unpacks from MEAD302.tar.gz, I was puzzled it
> didn't mention unpacking EXAMPLE.tar.gz - I thought at the time that
> this must come later.)
>
> First, there are some typos in the user documentation:
>
> p15 4.2/6 should read `Add $MEAD_RUN/libraries to $PERL5LIB'
>
> p15 4.3/1 line 2 should read `... $MEAD_TEST/GA3/features";'
>
> This worries me; does this mean that if I'm using example G3 and someone
> else comes along with e.g. example GA4 they will modify
> $MEAD_RUN/programs/driver, resulting in my GA3 not working any more?
> Surely this organisation of MEAD means that it has to be installed once
> for each user and possibly once for each example. Why can't driver.pl
> take a filename argument so only one example need exist?
>
> p16 4.3/2 should read `Edit $MEAD_RUN/programs/hkmead.pl' (missing `s')
>
> p16 4.3/3 should read `In $MEAD_RUN/programs'
>
> p16 4.4/3 line 5 should have `CLASSIFIER' in front of `COMMAND-LINE'
>
> p16 4.4/5 Another place where part of the MEAD code is example-specific
> - should we let users alter files in the central installation?
>
> For Linux, there should be a `Step 7.5':
>
> 7.5 `iconv' not available on Linux, so if you are prepared to
> accept that Mead will work only with English text:
>
> edit $MEAD_RUN/Feature_Extractor.pm line 130 to change:
>
> open(UNICODE_VERSION, "icon -f ... $document_filename |");
>
> to
>
> open(UNICODE_VERSION, "cat $document_filename |");
>
> Similarly edit $MEAD_RUN/Feature_Extractor.pm line 130 to read:
>
> open(UNICODE_VERSION, "cat $query_filename |");
>
> and $MEAD_RUN/libraries/read_cluster.pm line 88 to read:
>
> open(INSTREAM, "cat $document_filename |");
>
> p17 4.4/8 line 3, change `-' to `|'.
>
> I ran 4.4/8:
>
> cat GA3.config | $MEAD_RUN/programs/driver.pl > GA3.extract
> 2>/dev/null
>
> and found that GA3.extract then contained:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE EXTRACT SYSTEM "/usr/local/pkg/mead-3.02beta/dtd/extract.dtd">
>
> <EXTRACT QID="GA3" COMPRESSION="20"
SYSTEM="/usr/local/pkg/mead-3.02beta/programs/hkmead.pl Centroid 1 Position
1 Length 9" LANG="ENG">
> <S ORDER="1" DID="41" SNO="2" />
> <S ORDER="2" DID="41" SNO="5" />
> <S ORDER="3" DID="41" SNO="6" />
> <S ORDER="4" DID="41" SNO="26" />
> <S ORDER="5" DID="81" SNO="2" />
> <S ORDER="6" DID="81" SNO="3" />
> <S ORDER="7" DID="81" SNO="7" />
> <S ORDER="8" DID="81" SNO="13" />
> <S ORDER="9" DID="81" SNO="14" />
> <S ORDER="10" DID="81" SNO="17" />
> <S ORDER="11" DID="81" SNO="27" />
> <S ORDER="12" DID="81" SNO="44" />
> <S ORDER="13" DID="87" SNO="2" />
> <S ORDER="14" DID="87" SNO="3" />
> <S ORDER="15" DID="87" SNO="5" />
> <S ORDER="16" DID="87" SNO="10" />
> <S ORDER="17" DID="87" SNO="16" />
> <S ORDER="18" DID="87" SNO="20" />
> <S ORDER="19" DID="87" SNO="21" />
> <S ORDER="20" DID="87" SNO="22" />
> </EXTRACT>
>
> Is this plausible?
>
> Unfortunately, when I then run 4.4/10:
>
> ./extract_to_summary.pl GA3.extract GA3.summary
>
> I get:
> Name "main::tree" used only once: possible typo at ./extract_to_summary.pl
line 55.
>
> I'm pretty sure that I have not made a typo anywhere - I've checked over
> all my alterations. Can you suggest anything I should look at or try?
> --
>
> John A. Murdie
> Experimental Officer (Software)
> Department of Computer Science
> University of York
> England
>

-
To unsubscribe: send "unsubscribe mead" to majordomo@si.umich.edu



This archive was generated by hypermail 2b30 : Tue Jun 09 2009 - 05:00:04 EDT