arademaker / delphin

The Lean port of PyDelphin, a library to integrate DELPH-IN toolsets
Apache License 2.0
2 stars 2 forks source link

parsing Ace Output #2

Open arademaker opened 8 months ago

arademaker commented 8 months ago

I need a parser to parse the Ace Output evoking the parseMRS (ace -g .. -T) but eventually also capable in the future to process the whole derivation (ace with no -T)

goodmami commented 2 months ago

I'd recommend creating a simple s-expression parser and then using the output of ace --tsdb-stdout. You can then easily ignore data types you don't yet handle.

Similar to here: https://github.com/delph-in/pydelphin/blob/d15f418db696e5f527fec2d54fbb136031ed3b53/delphin/ace.py#L706-L737