I was thinking of sth like $ make
Thanks,
If you insist on source builds, it would be better
if you go through README in the root directory
of your software. If not at least go through
INSTALL(when available). After following them,
if you still have problems show us a trace/log of
it, and we will try to help.
you.
Cheers,
Vamsi
[1]http://packages.ubuntu.com/karmic/link-grammar
> --
> You received this message because you are subscribed to the Google Groups "link-grammar" group.
> To post to this group, send email to link-g...@googlegroups.com.
> To unsubscribe from this group, send email to link-grammar...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/link-grammar?hl=en.
>
1. Using the apt-get just like what Vamsi has suggested.
2. The apt-get would install all dependencies for the link-grammar
before install it.
3. If the link-grammar is an older version than what you want to do,
remove it, but keep the dependencies.
4. Install the latest link-grammar. Voila! :)
Anyhow, RTFM is still the way to solve most of the problem in the
universe.
On Apr 12, 4:45 pm, Vamsi Krishna Davuluri <vamsi.davul...@gmail.com>
wrote:
The content of Makefile.PL for this LinkParser module is:
WriteMakefile(
'NAME' => "Lingua::LinkParser",
'VERSION_FROM' => "lib/Lingua/LinkParser.pm",
'DEFINE' => "-DDICTIONARY_DIR=\\\".\\\"",
## if your libs are in a nonstandard location, changes these,
i.e.:
# 'LIBS' => "-L/dbrian/link-grammar-4.4.3/link-grammar/.libs/
-llink-grammar",
# 'INC' => "-I/dbrian/link-grammar-4.4.3/link-grammar/",
'LIBS' => "-llink-grammar",
'INC' => "-I/usr/local/include/link-grammar/",
'OBJECT' => "",
);
Could you please let me know what should the path of LIBS and INC be
for the link-grammar?
Thank you for your time in advance.
Per the README with Lingua::LinkParser:
INSTALLATION
Before you build this package, it is highly recommended that you install
the link parser package with 'make install', which will put the libs,
headers, and dictionary files in standard locations. This build no longer
prompts for package directories, so if you want to build with non-standard
locations, you'll need to edit Makefile.PL to make that happen. In
particular,
pay attention to the INCLUDE parameter.
Do a standard installation of the link grammar package (like Vamsi
said), and then try to build Lingua::LinkParser.
- Danny
/usr/share/doc/link-grammar
/usr/share/link-grammar
/usr/share/menu/link-grammar
/etc/perl/link-grammar
Looking forward to you response soon.
Thanks,
Amit
Hi,
I can run link-grammar easily from shell which confirms that have
correctly installed link-grammar.
If you have not done a normal install, I don't know where your lib and
include files would be. Assuming you have followed the link parser
instructions (make installing to default locations), can you provide
the output of these?
% perl -v
% uname -a
% perl Makefile.PL
% ldconfig; ldconfig -p | grep link
Hi Link Grammar Parsers,
I am now using Simon Stuart's excellent Windows dll, along with some GUI stuff to manage it in Windows Vista, using Delphi 7. Delphi 7 is rumored to port well to a variety of Linuxes, but I haven't personally done so.
Now that I can generate parses and examine sentences, my next goal is to generate an evaluatable expression that matches the parse structure. For example:
+-------MXs------+
+-----Os----+ +----Xd----+
+----Wi---+ +--Ds--+ | +---Ds--+----Xc----+
| | | | | | | |
LEFT-WALL choose.v a sentence.n , any sentence.n RIGHT-WALL
I want to translate the linkage data structure, as shown above, into something that looks like this:
(MXs (Os ‘(Wi LEFT-WALL choose.v)
‘(Ds a sentence.n))
(Xd ‘, ‘(+ ‘(Ds any sentence.n)
‘(Xc sentence.n RIGHT-WALL))))
Sorry for the lisp, it could just as well be interpreted using Delphi 7 procedure calls as lisp calls, but the data structure describing the parse is what I am most interested in.
Has anyone else gotten interested in this kind of representation for LGP parses? It would nice to know what issues and successes you had.
Curiously,
-Rich
Sincerely,
Rich Cooper
EnglishLogicKernel.com
Rich AT EnglishLogicKernel DOT com
9 4 9 \ 5 2 5 - 5 7 1 2
Now that I can generate parses and examine sentences, my next goal is to generate an evaluatable expression that matches the parse structure. For example:
+-------MXs------+
+-----Os----+ +----Xd----+
+----Wi---+ +--Ds--+ | +---Ds--+----Xc----+
| | | | | | | |
LEFT-WALL choose.v a sentence.n , any sentence.n RIGHT-WALL
I want to translate the linkage data structure, as shown above, into something that looks like this:
(MXs (Os ‘(Wi LEFT-WALL choose.v)
‘(Ds a sentence.n))
(Xd ‘, ‘(+ ‘(Ds any sentence.n)
‘(Xc sentence.n RIGHT-WALL))))
Thanks for the useful suggestion.
output of "which-link-parser"
/usr/bin/link-parser
I searched for link-grammar/link-parser inside usr/lib/ and usr/local/
lib but couldn't find. Similarly no link-grammar inside usr/include
and user/local/include
Hi Linas,
Yes, that is an interesting thing to learn; I am looking at a method, but first I have to figure out just which parses to keep and which to throw away:
LV:>I have one problem which I have *NOT* yet solved, but which I would very much like do:
condensing multiple parses into one. Some sentences are ambiguous:
e.g. "I saw the man
with the telescope". I'd like to have a notation which indicates which
parts are the same for
all parses, and which parts vary. There are currently no interfaces
in link-grammar to
spit this out. I'd like to have these.
Actually, I think keeping all VALUABLE parses would be the best approach, though only experience will show what metrics to sort by, which segments to keep, and how to merge them into a single structure for long term storage.
I’ve started by counting things in the parse diagram. I’ve presently got the number of terminal bars in the line above the parsed text (i.e., the number of terminal symbols actually bound by the parse), the number of total terminal symbols (to divide the first number by for scaling), and the number of nonterminal bars above the last two diagram lines (an inadequate measure of parse tree complexity, it turns out, but more to follow).
Thanks for helping Simon get the Windows version working – it makes things a lot easier for us windows folks who can’t park our pipes uncrossed! Here is an image you might be interested in:
At this point, I’ve implemented the three metrics above for the Nth parse, which display on the form when the Nth button is pressed at top (right under “Mary had ..” at the top of the form). So the above is the 21st parse of the sentence “Mary had a little lamb, its fleece were white as snow, and everywhere that Mary went the lamb was sure to go”.
Other useful measures might include the number of verbs, nouns, adjectives as a percentage of total symbols. But I will have to experiment for a while to see what works best in selecting a really good parse or five from a set of many, many parses which need not be stored.
Thanks for a great dll to work with!
HTH,
-Rich
Sincerely,
Rich Cooper
EnglishLogicKernel.com
Rich AT EnglishLogicKernel DOT com
9 4 9 \ 5 2 5 - 5 7 1 2
--
You received this message because you are subscribed to the Google Groups
"link-grammar" group.
To post to this group, send email to link-g...@googlegroups.com.
To unsubscribe from this group, send email to
link-grammar...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/link-grammar?hl=en.
Linas -
My understanding is that he is able to run link-parser without
trouble, but that his installation of Lingua::LinkParser is failing.
Hi Linas,
Yes, that is an interesting thing to learn; I am looking at a method, but first I have to figure out just which parses to keep and which to throw away:
Actually, I think keeping all VALUABLE parses would be the best approach, though only experience will show what metrics to sort by,
Thanks for helping Simon get the Windows version working –
Linas,
How do you know the version from that example? I have no idea what version I am using, so it would be useful to know.
Also, in that version, the first half of the linkages (numbered 0 to 14 or so) are very bad, with very low coverage, but the 19th and 21st linkages are fully 100% covering every symbol in “Mary ..” – all 24 of them!
So I don’t think its necessarily true that the first linkage is the best, or even very good, compared to others.
-Rich
Sincerely,
Rich Cooper
EnglishLogicKernel.com
Rich AT EnglishLogicKernel DOT com
9 4 9 \ 5 2 5 - 5 7 1 2
From:
link-g...@googlegroups.com [mailto:link-g...@googlegroups.com] On Behalf Of Linas Vepstas
Sent: Thursday, April 15, 2010
5:30 PM
To: link-g...@googlegroups.com
Subject: Re: [Link Grammar]
Generating an evaluatable expression from a parse linkage
On 15 April 2010 19:03, Rich Elk <richco...@gmail.com> wrote:
Linas,
Rich Cooper is currently using an older version of the DLL. The one I think he's saying "thanks" about is the code changes made recently which allow the LGP to build successfully in Windows without the necessity to make modifications ourselves.
I have to update my wrapper from that old version to the most up-to-date source (mainly the Structures used to represent options etc.) to allow him to switch to the latest version.
I believe he is saying "thanks" not just to you, but also to Borislav.... if not, then he should be ;)
Regards,
Simon J Stuart
------Original Mail------
From: "Linas Vepstas" <linasv...@gmail.com>
To: <link-g...@googlegroups.com>
Sent: Thu, 15 Apr 2010 19:29:37 -0500
Subject: Re: [Link Grammar] Generating an evaluatable expression from a parse linkage
____________________________________________________________________________
E-Mail scanned by Kaspersky Antivirus (Up To Date)
Rich,
He can tell what version you're using by the parse diagram itself I believe. It is my understanding that since that version of the binary you are currently using was produced, more than a few significant changes have been made which may be quite apparent in the resulting linkage diagrams. I'll get the wrapper I produced for you up to the latest binary in the next few days (time permitting).
Regards,
Simon
------Original Mail------
From: "Rich Cooper" <ri...@englishlogickernel.com>
To: <link-g...@googlegroups.com>
Sent: Thu, 15 Apr 2010 21:20:38 -0700
Subject: RE: [Link Grammar] Generating an evaluatable expression from a parse linkage
Linas,
How do you know the version from that example? I have no idea what version
I am using, so it would be useful to know.
Also, in that version, the first half of the linkages (numbered 0 to 14 or
so) are very bad, with very low coverage, but the 19th and 21st linkages are
fully 100% covering every symbol in "Mary .." - all 24 of them!
So I don't think its necessarily true that the first linkage is the best, or
even very good, compared to others.
-Rich
Sincerely,
Rich Cooper
EnglishLogicKernel.com
Rich AT EnglishLogicKernel DOT com
9 4 9 5 2 5 - 5 7 1 2
_____
From: link-g...@googlegroups.com [mailto:link-g...@googlegroups.com]
On Behalf Of Linas Vepstas
Sent: Thursday, April 15, 2010 5:30 PM
To: link-g...@googlegroups.com
Subject: Re: [Link Grammar] Generating an evaluatable expression from a
parse linkage
On 15 April 2010 19:03, Rich Elk <richco...@gmail.com> wrote:
Thanks for helping Simon get the Windows version working -
What version? I notice that the example you sent is from an older version,
from at least 1/2 year ago or older. Or, at least, if the binary is the
newest, that binary is using an older dictionary.
--linas
--
You received this message because you are subscribed to the Google Groups
"link-grammar" group.
To post to this group, send email to link-g...@googlegroups.com.
To unsubscribe from this group, send email to
link-grammar...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/link-grammar?hl=en.
--
You received this message because you are subscribed to the Google Groups "link-grammar" group.
To post to this group, send email to link-g...@googlegroups.com.
To unsubscribe from this group, send email to link-grammar...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/link-grammar?hl=en.
____________________________________________________________________________
E-Mail scanned by Kaspersky Antivirus (Up To Date)
From the comment below:
On 15 April 2010 23:38, Mike Ross <mik...@gmail.com> wrote:
>> I have one problem which I have *NOT* yet solved, but which I would
>> very much like do:
>> condensing multiple parses into one.
>
> Just peeked in on the group and saw your comment. Once you extract a
> set of relations from the parse why not just index which parses each
> relation appears in? For "I saw the man with the telescope" you have:
>
> subj(saw, I) [1.0]
> obj(saw, man) [1.0]
> with(man, telescope) [0.5]
> with(saw, telescope) [0.5]
>
> you can also use these numbers as rough confidence indicators.
How do you extract the relations from the parse? If that involves RelEx, I only have the LGP dll, and not the RelEx inclusion, which isn’t available to me immediately.
Also, what do the “[0.5]” or “[1.0]” markers mean?
But getting relational info from the parse is a great thing if it can be done easily, even on Windows.
Thanks for the suggestion! Every one helps me gain perspective on the software available for LGP.
-Rich
Sincerely,
Rich Cooper
EnglishLogicKernel.com
Rich AT EnglishLogicKernel DOT com
9 4 9 \ 5 2 5 - 5 7 1 2
-----Original Message-----
From: link-g...@googlegroups.com [mailto:link-g...@googlegroups.com] On
Behalf Of Linas Vepstas
Sent: Friday, April 16, 2010 12:27 PM
To: link-g...@googlegroups.com
Subject: Re: [Link Grammar] Generating an evaluatable expression from a parse
linkage
On 15 April 2010 23:38, Mike Ross <mik...@gmail.com> wrote:
Sincerely,
Rich Cooper
EnglishLogicKernel.com
Rich AT EnglishLogicKernel DOT com
9 4 9 \ 5 2 5 - 5 7 1 2
-----Original Message-----
From: link-g...@googlegroups.com [mailto:link-g...@googlegroups.com] On
Behalf Of Linas Vepstas
Sent: Friday, April 16, 2010 12:18 PM
To: link-g...@googlegroups.com
Subject: Re: [Link Grammar] Generating an evaluatable expression from a parse
linkage
On 15 April 2010 23:20, Rich Cooper <ri...@englishlogickernel.com> wrote:
>
> How do you know the version from that example? I have no idea what version
> I am using, so it would be useful to know.
Newer versions print the version number on startup.
> Also, in that version, the first half of the linkages (numbered 0 to 14 or
> so) are very bad, with very low coverage, but the 19th and 21st linkages are
> fully 100% covering every symbol in “Mary ..” – all 24 of them!
I'm guessing that you don't have "union" linkage turned on, and are
mis-interpreting standard disjunct processing for "low coverage".
Try "Mike and Joe looked at it" and ponder the resulting output for a while.
RGC: Here are the options setting and the parse for “Mike and Joe ..”
If you are referring to the “display_union” property, yes, I haven’t gotten a driver in place to set it yet, just to look at the settings as in the figures above for that parse.
Notice that there is only one parse for that sentence with the default options and dictionary in place.
-Rich
The first parses usually the best. You can toggle display of union linkage
with !union at the command line. Try !help for other options.
--linas
--
You received this message because you are subscribed to the Google Groups "link-grammar" group.
To post to this group, send email to link-g...@googlegroups.com.
To unsubscribe from this group, send email to link-grammar...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/link-grammar?hl=en.
In this case, display_union was changed to 1, but the parse is unaffected for “Mike ..”:
So perhaps there is more to change than just the display_union property? Could there be other factors that make it work with better coverage?
But with display_union=1, the “Mary .. lamb ..” sentence still parses the same also:
Is there something else that should be set for the Options?
Thanks,
-Rich
Sincerely,
Rich Cooper
EnglishLogicKernel.com
Rich AT EnglishLogicKernel DOT com
9 4 9 \ 5 2 5 - 5 7 1 2
> Also, in that version, the first half of the linkages (numbered 0 to 14 or
> so) are very bad, with very low coverage, but the 19th and 21st linkages are
> fully 100% covering every symbol in “Mary ..” – all 24 of them!
I'm guessing that you don't have "union" linkage turned on, and are
mis-interpreting standard disjunct processing for "low coverage".
Try "Mike and Joe looked at it" and ponder the resulting output for a while.
If you are referring to the “display_union” property, yes, I haven’t gotten a driver in place to set it yet, just to look at the settings as in the figures above for that parse.
Notice that there is only one parse for that sentence with the default options and dictionary in place.