logo       

Re: [Flora-users] Computational Semantics: msg#00474

Subject: Re: [Flora-users] Computational Semantics
Hi,

> -----Original Message-----
> From: kifer-EX0cT3Az47bauI2f2gSDlQ@xxxxxxxxxxxxxxxx 
> [mailto:kifer-EX0cT3Az47bauI2f2gSDlQ@xxxxxxxxxxxxxxxx]
> Sent: Sunday, October 14, 2007 7:48 PM
> To: PhiHo Hoang
> Cc: xsb-development-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx; flora-
> users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
> Subject: Re: [Flora-users] Computational Semantics
> 
> 
> > Dear List,
> >
> > Is there tutorial/project on Computational Semantics using HiLog/Flora-2
> ?
> 
> I do not know.
> 
> > On the straight XSB prolog side, are there any tutorials/samples using
> DCG for
> > Natural Language Processing  available for downloading?
> 
> DCGs are described in most standard Prolog books.
> If you search on dcg and natural language then you will get a number of
> good hits.
>

Thanks, I am reading "Learning Prolog Now" (Patrick Blackburn, Johan Bos and
Kristina Striegnitz).

This first DCG sample(attached mydcg.P) was run OK on XSB:

s --> np,vp.
np --> det,n.
vp --> v,np.
vp --> v.
det --> [the].
det --> [a].
n --> [woman].
n --> [man].
v --> [shoots].

<XSB> 

C:\xsb\examples\DCG>xsb

[xsb_configuration loaded]
[sysinitrc loaded]

XSB Version 3.1 (Incognito) of August 10, 2007
[x86-pc-windows; mode: optimal; engine: slg-wam; gc: indirection; scheduling: lo
cal]

| ?- [mydcg].
[Compiling .\mydcg]
[mydcg compiled, cpu time used: 0.0470 seconds]
[mydcg loaded]

yes
| ?- s(S, []).

S = [the,woman,shoots,the,woman];

S = [the,woman,shoots,the,man];

S = [the,woman,shoots,a,woman];

S = [the,woman,shoots,a,man];
...
...

</XSB>

<FLORA-2>
flora2 ?-
flora2 ?- [mydcg].

[FLORA: Consulting C:\flora2\tutorial\MyTut\DCG\mydcg.P]
[Compiling C:\flora2\tutorial\MyTut\DCG\mydcg]
[mydcg compiled, cpu time used: 0.0620 seconds]
[mydcg loaded]

Yes

flora2 ?- s(S, []).

No

flora2 ?- s(S, [])@_prolog.

No

flora2 ?- s(S, [])@_prologall.

No

flora2 ?-

</FLORA-2>

How can I use DCG with Flora-2?

File.P must contain only Prolog/HiLog codes?

File.flr must contain only Flora-2 code?

Thank you for your help.

Regards,

PhiHo

Attachment: mydcg.P
Description: Binary data

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Xsb-development mailing list
Xsb-development-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xsb-development
<Prev in Thread] Current Thread [Next in Thread>