openeventdata / UniversalPetrarch

Language-agnostic political event coding using universal dependencies
MIT License
18 stars 9 forks source link

Add run_pipeline code #10

Closed ahalterman closed 6 years ago

ahalterman commented 6 years ago

To be able to use Universal Petrarch with the existing pipeline tools, including phoenix_pipeline, we should add the run_pipeline code that Petrarch2 has. It looks like the things it depends on (specifically PETRreader.read_pipeline_input) is already included in UniversalPetrarch.

The code in Petrarch2 starts here and should hopefully just be a copy and paste.

One major advantage of this would be in using JSON input instead of XML.