Skip to content

Instantly share code, notes, and snippets.

@arne-cl
Created July 23, 2014 16:53
Show Gist options
  • Save arne-cl/37b1a29436e7ac053800 to your computer and use it in GitHub Desktop.
Save arne-cl/37b1a29436e7ac053800 to your computer and use it in GitHub Desktop.
convert a DeCour XML file into a PAULA XML document
#!/usr/bin/env python
# decour2paula.py: convert a DeCour XML file into a PAULA XML document
# usage: decour2paula.py decour_file paula_output_folder
import sys
from discoursegraphs.readwrite import DecourDocumentGraph
from discoursegraphs.readwrite import write_paula
if __name__ == '__main__':
ddg = DecourDocumentGraph(sys.argv[1])
write_paula(ddg, sys.argv[2])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment