<div dir="ltr">Sorry, I want to say : So the rule content of the DB problem does not matter much. not : So the rule content of the CB problem does not matter much.<br><br><div class="gmail_quote">2010/12/6 mohammed nasri <span dir="ltr">&lt;<a href="mailto:mohammed.nasri@gmail.com">mohammed.nasri@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div dir="ltr">Thanks for your help, <br><br>I have met these problem, in fact, the library data base problem is just the example I want to apply to my system, I a workin on an ACE2PrologRule passing by CG formalism. So the rule content of the CB problem does not matter much.<br>

<br>So I use : <br><br>If a member adds a copy of a book to the library<br>                 and no entry of the book exists in the catalog<br>                 then the member creates an entry <br>                        that contains the name of the author of the book<br>

                           and that contains the title of the book<br>                           and that contains the area of the subject of the book<br>                   and the member enters the id of the copy<br>                   and the copy is available.<br>

<br><br>In stead of : <br><br><pre><font size="4">If a staff member adds a copy of a book to the library<br>   and no catalog entry of the book exists<br>then the staff member creates a catalog entry<br>        that contains the author name of the book<br>

           and the title of the book<br>           and the subject area of the book<br>   and the staff member enters the id of the copy<br>   and the copy is available.<br></font></pre><br>Thanks for your help.<br><br><div class="gmail_quote">

2010/12/6 Norbert E. Fuchs <span dir="ltr">&lt;<a href="mailto:fuchs@ifi.uzh.ch" target="_blank">fuchs@ifi.uzh.ch</a>&gt;</span><div><div></div><div class="h5"><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div>On 6 Dec 2010, at 11:35, mohammed nasri wrote:<br>
<br>
&gt; I&#39;m trying to map the library databas, the example cited by John Sowa in this article (and used by Rolf Schwitter in his dissertation) to a DRS structure using APE, this system is a set of rules. Here is an example of on them :<br>


&gt; If a copy of a book is checked out to a borrower<br>
&gt;    and a staff member returns the copy<br>
&gt; then the copy is available.<br>
&gt;<br>
</div><div>&gt; When I try to parse this rule using APE, many words are not known, &quot;copy&quot;, &quot;borrower &quot;, &quot;staff&quot;, &quot;returns&quot; and &quot;available&quot;.<br>
&gt;<br>
&gt; Is there a ACE lexicon richer that the one I use (6.5) ?<br>
<br>
<br>
</div><div>On 6 Dec 2010, at 11:53, Jean-Marc Vanel wrote:<br>
<br>
&gt; 2010/12/6 mohammed nasri &lt;<a href="mailto:mohammed.nasri@gmail.com" target="_blank">mohammed.nasri@gmail.com</a>&gt;<br>
&gt;&gt; ....<br>
&gt;<br>
</div><div>&gt; Mais oui !<br>
&gt; yes indeed!<br>
&gt;<br>
&gt; Just donwload the ACE lexicon, from the ATTEMPTO download page, and<br>
&gt; copy <a href="http://clex_lexicon.pl" target="_blank">clex_lexicon.pl</a> inside your ape/ directory, overriding the<br>
&gt; original (small) file.<br>
<br>
</div>Mohammed<br>
<br>
Even following Jean-Marc&#39;s excellent advice you will find that the full ACE lexicon does not contain all the words that you need for your example – and for the rest of the sentences derived from the library data base problem. In fact, there are two additional things that you have to do.<br>


<br>
First, multi-words like &quot;checked out&quot; and &quot;staff member&quot; must by hyphenated, i.e. written as &quot;checked-out&quot; and &quot;staff-member&quot;.<br>
<br>
Second, words like &quot;staff-member&quot; do not occur in the ACE lexicon. You have three possibilities to make them known to the parser: add them to the lexicon or devise your own user lexicon (best solution), use prefixes like n:, or parse with word guessing. Check the Attempto documents how to do all of this.<br>


<br>
Let me know if you have problems.<br>
<br>
Regards.<br>
<font color="#888888"><br>
   --- nef</font></blockquote></div></div></div><br><br clear="all"><br>-- <br>Sincères salutations<br>Mohammed NASRI<br>
</div>
</blockquote></div><br><br clear="all"><br>-- <br>Sincères salutations<br>Mohammed NASRI<br>
</div>