Sorry for misspelling your name , Camila.<br><br><div class="gmail_quote">2012/5/25 Camila Bezerra <span dir="ltr"><<a href="mailto:camila.bezerra.br@gmail.com" target="_blank">camila.bezerra.br@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Jean,<div><br></div><div>Thanks for your clarifications!</div><div><br></div><div>To 
<span style="font-family:'courier new',monospace">paraphrase</span> works... But not to OWL...</div></blockquote><div><br></div><div>Indeed OWL translation does not work in this case; but the command line gives the explanation :</div>
<div><br></div><div><font face="courier new, monospace">  % ape -text  "A customer gives a card to a clerk." -solo owlfss                   </font></div><div><font face="courier new, monospace"><?xml version="1.0" encoding="UTF-8"?></font></div>
<div><font face="courier new, monospace"><messages></font></div><div><font face="courier new, monospace">  <message</font></div><div><font face="courier new, monospace">      importance="error"</font></div>
<div><font face="courier new, monospace">      type="owl"</font></div><div><font face="courier new, monospace">      sentence="1"</font></div><div><font face="courier new, monospace">      token="3"</font></div>
<div><font face="courier new, monospace">      value="give"</font></div><div><font face="courier new, monospace">      repair="<b>Ditransitive verbs not supported.</b>"/></font></div><div><font face="courier new, monospace"></messages></font></div>
<div><font face="courier new, monospace"><br></font></div><div class="gmail_quote"><br></div>In this case, you can avoid the ditransitive verb like this :</div><div class="gmail_quote"><br><div><font face="courier new, monospace">oem-laptop: /media/bd003f3b-ff18-4655-91dc-e014ba1af42e/home/jmv/src/deductions/samples/pricing/TEST/ % ape -text  "A customer gives a card and a clerk receives the card." -solo paraphrase</font></div>
<div><font face="courier new, monospace">There is a customer X1.</font></div><div><font face="courier new, monospace">There is a clerk X2.</font></div><div><font face="courier new, monospace">The clerk X2 receives a card X3.</font></div>
<div><font face="courier new, monospace">The customer X1 gives the card X3.</font></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br></div><div>
I am using ACE as a tool to my work that is in Java... In this work, i need to convert sentences in Natural Language to OWL.</div>
<div><br></div><div>Can I add new words to default lexicon? Or must I create my own lexicon in Prolog in a different file?<br clear="all"></div></blockquote><div><br></div><div>You can edit the default lexicon in lexicon/<a href="http://clex_lexicon.pl">clex_lexicon.pl</a> , and redo  make_exe.sh .</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br></div><div><br></div><div><div class="im"> [ ]s<br> <br><b><font color="#ff6666">Camila Bezerra</font></b><br>

<font face="'times new roman', serif">Professor - Federal University of Recôncavo of Bahia (UFRB)<br>MSc in Artificial Intelligence - Federal University of Pernambuco (UFPE)<br>Bsc in Computer Science - Federal University of Alagoas (UFAL)</font><br>

 <br><font size="1" face="arial, helvetica, sans-serif">“<b>Quanto a mim, não acreditaria no Evangelho se não me movesse a isso a autoridade da Igreja católica</b>.” (Santo Agostinho)</font><div><font size="1" face="arial, helvetica, sans-serif"><br>

</font></div><div><font size="1" face="arial, helvetica, sans-serif">"<b>O fruto da luz consiste em toda Bondade, Justiça e Verdade</b>."(Ef 5,9)</font></div><div><font size="1" face="arial, helvetica, sans-serif"><br>

</font></div><div><font size="1"><font face="arial, helvetica, sans-serif"><span style="line-height:14px">‎<b>"Onde estiver o bispo, ali estarão também as multidões, da mesma forma que onde estiver Jesus Cristo, ali estará a Igreja Católica".</b> </span><span style="line-height:14px">(Santo Inácio de Antioquia)</span></font><br>

</font><br></div><br>
<br><br></div><div><div class="h5"><div class="gmail_quote">On 25 May 2012 15:40, Jean-Marc Vanel <span dir="ltr"><<a href="mailto:jeanmarc.vanel@gmail.com" target="_blank">jeanmarc.vanel@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Hi Camla </div><div><br></div><div>You don't need Java to run APE .</div><div>Command line is very convenient .</div><div><br></div><div>Anyway , your first sentence works fine :</div><div><br></div><div><div><font face="courier new, monospace"> ape -text  "A customer gives a card to a clerk." -solo paraphrase</font></div>


<div><font face="courier new, monospace">There is a customer X1.</font></div><div><font face="courier new, monospace">The customer X1 gives a card to a clerk.</font></div></div><div><br></div><div>Your second sentence is just a relative proposition, and APE, just like a human, cannot make sense with it . But this works : </div>


<div><br></div><div><font face="courier new, monospace">ape.exe -text "John who knows Mary is big."  -solo paraphrase </font></div><div><font face="courier new, monospace">John knows Mary.</font></div><div><font face="courier new, monospace"><br>


</font></div><div><font face="courier new, monospace">John is big.</font></div><div><br></div>If you wanted to tell APE where the nouns and verbs are, you could do this , wich is often necessary for words not in the default lexicon :<div>


<br></div><div>A n:customer v:gives a n:card to a n:clerk.</div><div><br></div><div>And you can create your own lexicon in Prolog, it's explained in the documentation.</div><div><br></div><div>Hope that helps .</div>

<div>
<br><div class="gmail_quote">2012/5/25 Camila Bezerra <span dir="ltr"><<a href="mailto:camila.bezerra.br@gmail.com" target="_blank">camila.bezerra.br@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div>
Hi,<div><br></div><div>Can I add terms like nouns and verbs in the ACE?</div><div><br></div><div>I has realized that some terms from a sentence the ACE doesn't recognize....<br clear="all"> <br>For example, the sentences "John who knows Mary."  and "A customer gives a card to a clerk." ...</div>



<div><br></div><div>I am using the APE api to work with ACE from Java.</div><div> <br> [ ]s<br> <br><b><font color="#ff6666">Camila Bezerra</font></b><br><font face="'times new roman', serif">Professor - Federal University of Recôncavo of Bahia (UFRB)<br>



MSc in Artificial Intelligence - Federal University of Pernambuco (UFPE)<br>Bsc in Computer Science - Federal University of Alagoas (UFAL)</font><br> <br><font size="1" face="arial, helvetica, sans-serif">“<b>Quanto a mim, não acreditaria no Evangelho se não me movesse a isso a autoridade da Igreja católica</b>.” (Santo Agostinho)</font><div>



<font size="1" face="arial, helvetica, sans-serif"><br></font></div><div><font size="1" face="arial, helvetica, sans-serif">"<b>O fruto da luz consiste em toda Bondade, Justiça e Verdade</b>."(Ef 5,9)</font></div>



<div><font size="1" face="arial, helvetica, sans-serif"><br></font></div><div><font size="1"><font face="arial, helvetica, sans-serif"><span style="line-height:14px">‎<b>"Onde estiver o bispo, ali estarão também as multidões, da mesma forma que onde estiver Jesus Cristo, ali estará a Igreja Católica".</b> </span><span style="line-height:14px">(Santo Inácio de Antioquia)</span></font><br>



</font><br></div><br>
</div>
<br></div></div>_______________________________________________<br>
attempto mailing list<br>
<a href="mailto:attempto@lists.ifi.uzh.ch" target="_blank">attempto@lists.ifi.uzh.ch</a><br>
<a href="https://lists.ifi.uzh.ch/listinfo/attempto" target="_blank">https://lists.ifi.uzh.ch/listinfo/attempto</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br>Jean-Marc Vanel<br>Déductions SARL - Consulting, services, training,<br>Rule-based programming, Semantic Web<br>
<a href="http://jmvanel.free.fr/" target="_blank">http://jmvanel.free.fr/</a> - EulerGUI, a turntable GUI for Semantic Web + rules, XML, UML, eCore, Java bytecode<br>
<a href="tel:%2B33%20%280%296%2089%2016%2029%2052" value="+33689162952" target="_blank">+33 (0)6 89 16 29 52</a><br>chat :  irc://<a href="http://irc.freenode.net#eulergui" target="_blank">irc.freenode.net#eulergui</a><br>


</font></span></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Jean-Marc Vanel<br>Déductions SARL - Consulting, services, training,<br>Rule-based programming, Semantic Web<br><a href="http://jmvanel.free.fr/" target="_blank">http://jmvanel.free.fr/</a> - EulerGUI, a turntable GUI for Semantic Web + rules, XML, UML, eCore, Java bytecode<br>
+33 (0)6 89 16 29 52<br>chat :  irc://<a href="http://irc.freenode.net#eulergui" target="_blank">irc.freenode.net#eulergui</a><br>