[Attempto] More DRSXML output troubles...

Joshua TAYLOR tayloj at cs.rpi.edu
Sun Jun 14 03:29:05 CEST 2009


Hello all,

Here's another sentence that gives me some trouble with the
webservice: "A person that inhabits Dreadsbury-Mansion kills Agatha."
Using the webclient, I can generate the DRS:


[A, B, C]
object(A, person, countable, na, eq, 1)-1/2
predicate(B, inhabit, A, named(Dreadsbury-Mansion))-1/4
predicate(C, kill, A, named(Agatha))-1/6


However, asking for DRSXML output in the webclient gives nothing.
Asking for DRSXML output via the webservice gives an APE result with
an empty DRSXML:


CL-USER 43 > (invoke-ape-webservice :text "A person that inhabits
Dreadsbury-Mansion kills Agatha." :cdrsxml t)
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<apeResult>
  <duration tokenizer=\"0.000\" parser=\"0.010\" refres=\"0.000\"/>
  <drsxml></drsxml>
  <messages>
    <message
	importance=\"warning\"
	type=\"word\"
	sentence=\"1\"
	token=\"5\"
	value=\"Dreadsbury-Mansion\"
	repair=\"Undefined word. Interpreted as a singular proper name.\"/>
    <message
	importance=\"warning\"
	type=\"word\"
	sentence=\"1\"
	token=\"7\"
	value=\"Agatha\"
	repair=\"Undefined word. Interpreted as a singular proper name.\"/>
  </messages>
</apeResult>"


Asking for just DRSXML gives some more descriptive errors:


CL-USER 46 > (invoke-ape-webservice :text "A person that inhabits
Dreadsbury-Mansion kills Agatha." :solo 'drsxml)
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<apeResult>
  <messages>
    <message
	importance=\"error\"
	type=\"ws\"
	sentence=\"\"
	token=\"\"
	value=\"error(type_error(text, named(Dreadsbury-Mansion)),
context(system:atom_length/2, _G3223))\"
	repair=\"Fatal error. Please send screenshot to APE developers.\"/>
  </messages>
</apeResult>"


This is similar to the error that I had not too long ago, except that
the patches that i received via the list (thanks again!) on 2 June
don't seem to remedy this problem. Trying a local copy of APE leads to
an error about the sentence not being ACE:


Wright:ape-6.5-090529 tayloj$ ape -versionAttempto Parsing Engine for
ACE 6.5, version 6.5-090528
Wright:ape-6.5-090529 tayloj$ ape -text "A person that inhabits
Dreadsbury-Mansion kills Agatha."
<?xml version="1.0" encoding="UTF-8"?>

<apeResult>
  <duration tokenizer="0.050" parser="0.010" refres="0.000"/>
  <messages>
    <message
	importance="error"
	type="word"
	sentence=""
	token=""
	value="inhabits"
	repair="Use the prefix n:, v:, a: or p:."/>
    <message
	importance="error"
	type="word"
	sentence=""
	token=""
	value="kills"
	repair="Use the prefix n:, v:, a: or p:."/>
    <message
	importance="error"
	type="sentence"
	sentence="1"
	token="4"
	value="A person that &lt;&gt; inhabits Dreadsbury-Mansion kills Agatha."
	repair="This is the first sentence that was not ACE. The sign
&lt;&gt; indicates the position where parsing failed."/>
  </messages>
</apeResult>


Any thoughts?
Thanks in advance,
//JT

-- 
=====================
Joshua Taylor
tayloj at cs.rpi.edu, jtaylor at alum.rpi.edu


More information about the attempto mailing list