[Attempto] Add new terms in ACE?

Jean-Marc Vanel jeanmarc.vanel at gmail.com
Fri May 25 21:07:55 CEST 2012


Sorry for misspelling your name , Camila.

2012/5/25 Camila Bezerra <camila.bezerra.br at gmail.com>

> Hi Jean,
>
> Thanks for your clarifications!
>
> To  paraphrase works... But not to OWL...
>

Indeed OWL translation does not work in this case; but the command line
gives the explanation :

  % ape -text  "A customer gives a card to a clerk." -solo owlfss

<?xml version="1.0" encoding="UTF-8"?>
<messages>
  <message
      importance="error"
      type="owl"
      sentence="1"
      token="3"
      value="give"
      repair="*Ditransitive verbs not supported.*"/>
</messages>


In this case, you can avoid the ditransitive verb like this :

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
There is a customer X1.
There is a clerk X2.
The clerk X2 receives a card X3.
The customer X1 gives the card X3.


> 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.
>
> Can I add new words to default lexicon? Or must I create my own lexicon in
> Prolog in a different file?
>

You can edit the default lexicon in lexicon/clex_lexicon.pl , and redo
 make_exe.sh .


>
>  [ ]s
>
> *Camila Bezerra*
> Professor - Federal University of Recôncavo of Bahia (UFRB)
> MSc in Artificial Intelligence - Federal University of Pernambuco (UFPE)
> Bsc in Computer Science - Federal University of Alagoas (UFAL)
>
> “*Quanto a mim, não acreditaria no Evangelho se não me movesse a isso a
> autoridade da Igreja católica*.” (Santo Agostinho)
>
> "*O fruto da luz consiste em toda Bondade, Justiça e Verdade*."(Ef 5,9)
>
> ‎*"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".* (Santo
> Inácio de Antioquia)
>
>
>
>
> On 25 May 2012 15:40, Jean-Marc Vanel <jeanmarc.vanel at gmail.com> wrote:
>
>> Hi Camla
>>
>> You don't need Java to run APE .
>> Command line is very convenient .
>>
>> Anyway , your first sentence works fine :
>>
>>  ape -text  "A customer gives a card to a clerk." -solo paraphrase
>> There is a customer X1.
>> The customer X1 gives a card to a clerk.
>>
>> Your second sentence is just a relative proposition, and APE, just like a
>> human, cannot make sense with it . But this works :
>>
>> ape.exe -text "John who knows Mary is big."  -solo paraphrase
>> John knows Mary.
>>
>> John is big.
>>
>> 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 :
>>
>> A n:customer v:gives a n:card to a n:clerk.
>>
>> And you can create your own lexicon in Prolog, it's explained in the
>> documentation.
>>
>> Hope that helps .
>>
>> 2012/5/25 Camila Bezerra <camila.bezerra.br at gmail.com>
>>
>>>  Hi,
>>>
>>> Can I add terms like nouns and verbs in the ACE?
>>>
>>> I has realized that some terms from a sentence the ACE doesn't
>>> recognize....
>>>
>>> For example, the sentences "John who knows Mary."  and "A customer gives
>>> a card to a clerk." ...
>>>
>>> I am using the APE api to work with ACE from Java.
>>>
>>>  [ ]s
>>>
>>> *Camila Bezerra*
>>> Professor - Federal University of Recôncavo of Bahia (UFRB)
>>> MSc in Artificial Intelligence - Federal University of Pernambuco (UFPE)
>>> Bsc in Computer Science - Federal University of Alagoas (UFAL)
>>>
>>> “*Quanto a mim, não acreditaria no Evangelho se não me movesse a isso a
>>> autoridade da Igreja católica*.” (Santo Agostinho)
>>>
>>> "*O fruto da luz consiste em toda Bondade, Justiça e Verdade*."(Ef 5,9)
>>>
>>> ‎*"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".* (Santo
>>> Inácio de Antioquia)
>>>
>>>
>>>
>>> _______________________________________________
>>> attempto mailing list
>>> attempto at lists.ifi.uzh.ch
>>> https://lists.ifi.uzh.ch/listinfo/attempto
>>>
>>>
>>
>>
>> --
>> Jean-Marc Vanel
>> Déductions SARL - Consulting, services, training,
>> Rule-based programming, Semantic Web
>> http://jmvanel.free.fr/ - EulerGUI, a turntable GUI for Semantic Web +
>> rules, XML, UML, eCore, Java bytecode
>> +33 (0)6 89 16 29 52
>> chat :  irc://irc.freenode.net#eulergui
>>
>
>


-- 
Jean-Marc Vanel
Déductions SARL - Consulting, services, training,
Rule-based programming, Semantic Web
http://jmvanel.free.fr/ - EulerGUI, a turntable GUI for Semantic Web +
rules, XML, UML, eCore, Java bytecode
+33 (0)6 89 16 29 52
chat :  irc://irc.freenode.net#eulergui
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ifi.uzh.ch/pipermail/attempto/attachments/20120525/1067db54/attachment-0001.html>


More information about the attempto mailing list