[Attempto] [Illegal argument: arglist_namevaluelist/2 error]

Mohammed Nasri mohammed.nasri at gmail.com
Fri Jan 29 16:59:14 CET 2016


Hello,

I developed a Java application that uses APE (Attempto Parser Engine). In
this application, I get the ACE text from a input text field and then I
generate the command line to be passed to APE.

For example, the command line I generate for the following example : "John
eats an apple." is :

APE_PATH/ape.exe -text "John eats an apple." -solo drsxml
or
APE_PATH/ape.exe -noclex -ulexfile CUSTOM_CLEX_PATH/clex_lexicon.pl -text
"John eats an apple." -solo drsxml

Depending on whether we use or not a custom clex file.

When I run these two command lines in the terminal directly, APE works fine
and prints the following same result:

<?xml version="1.0" encoding="UTF-8"?>

<DRS domain="A B">
  <object
      ref="A"
      noun="apple"
      struct="countable"
      unit="na"
      numrel="eq"
      num="1"
      sentid="1"
      tokid="4"/>
  <predicate
      ref="B"
      verb="eat"
      subj="named('John')"
      obj="A"
      sentid="1"
      tokid="2"/>
</DRS>

But when I run this sentence within my application, I get this error :

Illegal argument: arglist_namevaluelist/2: eats

​Do you have any idea of what can be the source of the issue ?

Thank you.​


---------------
Sincères salutations
Mohammed NASRI
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ifi.uzh.ch/pipermail/attempto/attachments/20160129/495524e8/attachment.html>


More information about the attempto mailing list