Difference between revisions of "Spring 2017/MorphTests2yaml"
From LING073
(Created page with " top="Config:\n hfst:\n App: hfst-lookup\n Gen: ../xyz.autogen.hfst\n Morph: ../crh.automorf.hfst\n\nTests:\n" tests=`curl -s "https://wikis.swarthmore.edu/ling0...") |
(No difference)
|
Revision as of 22:17, 7 February 2017
top="Config:\n hfst:\n App: hfst-lookup\n Gen: ../xyz.autogen.hfst\n Morph: ../crh.automorf.hfst\n\nTests:\n" tests=`curl -s "https://wikis.swarthmore.edu/ling073/api.php?action=query&prop=revisions&rvprop=content&format=txt&titles=Language/Grammar" | perl -pe 's/\{\{tag\|(.*?)\}\}/<\1>/g' | grep -Po 'Template:MorphTest.*?|\=.*=' | perl -pe 's/\{\{morphTest\|(.*?)\|(.*?)\}\}/ \1 : \2/g' | sed -r 's/\=+([^=]+)\=+/ "\1":/g'` echo $top$tests