[Attempto] [Illegal argument: arglist_namevaluelist/2 error]
Kaarel Kaljurand
kaljurand at gmail.com
Sat Jan 30 21:18:17 CET 2016
Hi,
it's hard to tell for sure without seeing the actual command line that
is generated by the application, but I suspect that the quotation
marks are not represented correctly and APE thinks that "eats" is not
meant to be part of the input text but some (unsupported) command.
May I suggest to call APE via its HTTP interface
(https://github.com/Attempto/APE#http-interface-to-ape) or the Java
bridge (https://github.com/Attempto/APE/tree/master/java). It would be
_much_ faster and would also avoid errors in commandline generation.
Best,
Kaarel
On Fri, Jan 29, 2016 at 4:59 PM, Mohammed Nasri
<mohammed.nasri at gmail.com> wrote:
> 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
More information about the attempto
mailing list