window.onload = function () {
new ArboratorDraft(); // START
}
Automatically, the CoNLL-U data will be transformed into beautiful dependency graphs!
Graphical options are in arborator-draft.css
If you want to generally modify which features are shown, modify these lines in the arborator-draft.js:
shownfeatures=["FORM", "UPOS", "LEMMA", "MISC.Gloss"];
shownmetas=['text_en']
If you want to temporarily modify which features are shown, add the shownfeatures attribute to the meta-features of the conll representations, and provide the list of features separated by commas. Morphosyntactic features must be prefixed by FEATS. and miscellaneous features by MISC. as in:
# shownfeatures = FORM, UPOS, LEMMA, MISC.Gloss, FEATS.ExtPos, FEATS.PhraseType, FEATS.InTitle
If you want to have a button to show the complete conll data (not only per tree), change showAllConllButton to true
If you want to add those two blue buttons just below to your page, which allow to download the complete set of svg or png images in a zip, add jszip.min.js and FileSaver.min.js to the imports
Please admire the speed of the non-blocking rendering in this file with many separate CoNLL nodes and that file with one very long CoNLL node
Todo:
Random text before the div containing the conll tag
Random text after the div containing the conll tag