Created
July 23, 2014 16:53
-
-
Save arne-cl/37b1a29436e7ac053800 to your computer and use it in GitHub Desktop.
convert a DeCour XML file into a PAULA XML document
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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