Re: [Fwd: Re: FYI: link-grammar-4.1.1]

From: Dom Lachowicz <domlachowicz_at_yahoo.com>
Date: Fri Jun 03 2005 - 05:58:27 CEST

Patch committed.

--- Jeremy Messenger <mezz7@cox.net> wrote:

> On Thu, 02 Jun 2005 21:53:17 -0500, Dom Lachowicz
> <domlachowicz@yahoo.com>
> wrote:
>
> > Hi Jeremy,
> >
> > What exactly was wrong? It works fine for me and
> > Martin.
>
> If I grab a real one from
> http://www.link.cs.cmu.edu/link/ and install it,
> I have no trouble to run parse by default. AbiWord's
> link-grammar changed
> from data/words to data/en/words. With my fix made
> AbiWord's grammar
> checker to find dictionary correct.
>
> Beside the plugin, AbiWord's link-grammar doesn't
> know the path by itself
> if I ran 'grammar-parse' without tell the path of
> dictionary. The orignal
> 'parse' knows where the path of dictionary when I
> ran 'parse'. Well, of
> course I had to tweak all hardcore path in the
> orignal link-grammar in a
> few different files and AbiWord's link-grammar has
> removed a few of it,
> but AbiWord's grammar-parse still doesn't know where
> its directory is
> living in. For example, the orignal has:
>
> link-4.1b.tar.gz
> ==================================
> % find . -name \* | xargs egrep -l "/data"
> ./src/utilities.c
> ./src/www-parse.c
> ./include/phrase-parse.h
> ==================================
>
> ./src/utilities.c
> ==================================
> #define DEFAULTPATH ".:./data:" /* Appended to the
> end of the
> ==================================
>
> ./src/www-parse.c
> ==================================
> #define DICTIONARY
> "/usr1/www/link/scripts/data/4.0.dict"
> ==================================
>
> ./include/phrase-parse.h
> ==================================
> #define DICTIONARY
> "/afs/cs/project/link-8/link-3.1/data/3.1.dict"
> #define PP_KNOWLEDGE
> "/afs/cs/project/link-8/link-3.1/data/3.1.knowledge"
> #define CONSTITUENT_KNOWLEDGE
>
"/afs/cs/project/link-8/link-3.1/data/constituent.knowledge"
> ==================================
>
> I just simple tweak all correct path above and
> compile it, the 'parse'
> just ran fine and know where its directory's home.
> AbiWord's link-grammar
> has removed few of them and maybe something is
> missing? AbiWord's
> link-grammar only has one.
>
> link-grammar-4.1.1.tar.gz:
> ==================================
> # find . -name \* | xargs egrep -l "DEFAULTPATH"
> ./link-grammar/utilities.c
>
> mezz# find . -name \* | xargs egrep -l "DICTIONARY"
> ./link-grammar/Makefile.am
> ./link-grammar/Makefile.in
> ./link-grammar/utilities.c
> ./data/en/4.0.dict
>
> mezz# find . -name \* | xargs egrep -l
> "CONSTITUENT_KNOWLEDGE"
> ==================================
>
> ./link-grammar/utilities.c
> ==================================
> #define DEFAULTPATH ".:./data:"DICTIONARY_DIR /*
> Appended to the end of
> the
> ==================================
>
> > Also, can you provide a patch to show what you
> > changed? cvs diff -u would be great.
>
> Here:
>
http://people.freebsd.org/~mezz/diff/link-grammar.diff
>
> Cheers,
> Mezz
>
> > Thanks,
> > Dom
> >
> > --- "J.M. Maurer" <j.m.maurer@student.utwente.nl>
> > wrote:
> >
> >>
> >> > Date: Sun, 22 May 2005 22:33:02 -0500
> >> To: j.m.maurer@student.utwente.nl
> >> From: "Jeremy Messenger" <mezz7@cox.net>
> >> Subject: Re: FYI: link-grammar-4.1.1
> >>
> >> Hello Marc
> >>
> >> First all, I had to email to you because there is
> no
> >> link-grammar section
> >> in AbiWord Bugzilla and I have no insteresting to
> >> submit in mailing list.
> >>
> >> Anyway, yesterday, I worked on ported
> link-grammar
> >> and AbiWord 2.3.0's
> >> grammar checker plugin on FreeBSD. link-grammar
> has
> >> the problem with to
> >> find the dictionary. I had to do the "sed -i.bak
> -e
> >>
> >> 's|/words/|/en/words/|g' data/en/4.0.dict" to
> solve
> >> the problem.
> >>
> >> Before AbiWord's grammar checker complain and not
> >> work:
> >> ==========================================
> >> % AbiWord-2.4
> >> Opening
> >> /usr/local/share/link-grammar/en/4.0.dict
> >> No dictionary!!
> >> No dictionary!!
> >> [...same several of it...]
> >> ==========================================
> >>
> >> After fixed with sed, grammar checker works:
> >> ==========================================
> >> % AbiWord-2.4
> >> Opening
> >> /usr/local/share/link-grammar/en/4.0.dict
> >> Opening
> >> /usr/local/share/link-grammar/en/words/words.n.p
> >> Opening
> >> /usr/local/share/link-grammar/en/words/words.n.1
> >> Opening
> >>
> /usr/local/share/link-grammar/en/words/words.n.2.s
> >> Opening
> >>
> /usr/local/share/link-grammar/en/words/words.n.2.x
> >> [...goes on...]
> >> ==========================================
> >>
> >> http://www.freshports.org/textproc/link-grammar/
> >> http://www.freshports.org/editors/abiword-devel/
> >>
> >
>
http://www.freshports.org/editors/abiword-plugins-devel/
> >>
> >> Cheers,
> >> Mezz
>
>
> --
> mezz7@cox.net - mezz@FreeBSD.org
> FreeBSD GNOME Team
> http://www.FreeBSD.org/gnome/ - gnome_at_FreeBSD.org
>

                
__________________________________
Discover Yahoo!
Stay in touch with email, IM, photo sharing and more. Check it out!
http://discover.yahoo.com/stayintouch.html
Received on Fri Jun 3 05:58:40 2005

This archive was generated by hypermail 2.1.8 : Fri Jun 03 2005 - 05:58:41 CEST