[developers] Using the ERG for research

Alexandre Rademaker arademaker at gmail.com
Mon Jul 1 21:58:34 CEST 2019


Hi Matthew,

Maybe someone with more experience than me can add something here, but as far as I remember from the LREC tutorial in 2016, we can easily make a pipeline of two ACE calls. 

I also found this page http://moin.delph-in.net/AceUse


$ cat test.txt
The gracious hostess offered the special guest her seat.

$ cat test.txt  | ~/hpsg/ace/ace -g ~/hpsg/ace/erg.dat -Tf1 | ~/hpsg/ace/ace -g ~/hpsg/ace/erg.dat -e
NOTE: 1 readings, added 2940 / 844 edges to chart (306 fully instantiated, 210 actives used, 238 passives used)	RAM: 7523k
NOTE: parsed 1 / 1 sentences, avg 7523k, time 0.04242s
Her seat was offered by the gracious hostess to the special guest.
The gracious hostess offered her seat to the special guest.
The special guest was offerred her seat by the gracious hostess.
The gracious hostess offered the special guest her seat.
NOTE: 1063 passive, 833 active edges in final generation chart; built 1264 passives total. [4 results]

NOTE: generated 1 / 1 sentences, avg 13582k, time 0.10198s
NOTE: transfer did 1025 successful unifies and 992 failed ones


Using http://pydelphin.readthedocs.io may be easier to collect the outputs and control the interaction. 


Best,


--
Alexandre Rademaker
http://arademaker.github.io


> On 1 Jul 2019, at 13:34, Ann Copestake <aac10 at cl.cam.ac.uk> wrote:
> 
> in case anyone has time to respond to Matthew
> 
> 
> -------- Forwarded Message --------
> Subject:	Using the ERG for research
> Date:	Fri, 28 Jun 2019 17:12:35 -0400
> From:	Matthew Kelly <mak582 at psu.edu>
> To:	lingo at delph-in.net
> 
> 
> Dear LinGO lab,
> 
> I'm a post-doctoral researcher at Penn State looking to use your ERG software package to convert a few thousand dative double object sentences into dative prepositional object sentences and vice versa.
> 
> For example, I'd like to convert the prepositional object sentence "The gracious hostess offered her seat to the special guest." to the double object sentence "The gracious hostess offered the special guest her seat."
> 
> I am able to perform this conversion by using the online interface to "analyze" a sentence and then pressing "generate" to produce alternatives. How could I do this in batch, automatically?
> 
> Thank you,
> Matthew.
> 
> --
> Matthew A. Kelly, Ph.D.
> E370 Westgate Building
> College of Information Sciences and Technology
> The Pennsylvania State University
> 




More information about the developers mailing list