Neven Jovanović, Department of Classical Philology, Faculty of Humanities and Social Sciences, University of Zagreb
Import a set of treebanks (for example, from Vanessa Gorman's Greek collection, freely available through Github and Perseids Publications) into an XML database. Use XQuery scripts (for example, from the BaseX GUI) to analyze the set.
- Clone this repository
- Install BaseX
- From BaseX, open and
- download the XML files from Gorman's repository or clone the repository
- run the script createGrcTBG.xq
- alternatively to 3, without cloning Gorman's repo
- run the script createGrcTBGpull.xq,
- then run populateGrcTBGfromGit.xq; the second script pulls the files directly from Github and adds them to the database created by the first script (it takes about a minute)
- Run other XQuery scripts (see the project wiki)
- retrieve some statistics on the collection and its annotations (for results, see the wiki):
- how many sentences and words (also excluding punctuation): GrcTBStatsGeneral.xq
- how many ellipses, words without annotations or with undefined annotations: GrcTBStatsGeneral.xq
- sentences grouped by word count: GrcTBStatsGeneral.xq
- how many instances of certain syntactic relations: GrcTBStatsRelations-1.xq; current results on a dedicated wiki page
- how many instances of certain parts of speech – how many nouns, verbs, adverbs...? GrcTBStatsPOS-1.xq; current results on a wiki page
- how many wordforms: script FindWordforms1.xq, report on the wiki page WordformsList (66,313 wordforms) – how many lemmata: script FindLemmata.xq, report on the wiki page LemmataList (18,056 lemmata)
- how many lemmata per parts of speech
- retrieve sentences of a certain type, or configuration
- retrieve a list of all parts of speech in a specific syntactic relation: FindPOStag.xq; what POS can take on the role of subject? – for example, report for AuxZ, emphasizing particle: POStagAuxZ
- retrieve a set of treebank fragments – a specific syntactic relation, its parent, and all its children traverseTree1-levels-all.xq) (what is dependent on a subject?); but it can be achieved more easily and efficiently following Bozia 2018
- transform the "flat" ALDT XML into nested tree structures, as proposed by Bozia 2018, for easier retrieving of children and parent nodes: ListToTree.xq
Gorman's Github repo and Perseids Publications differ slightly in filenames and stability. Gorman's is the working repo, more up to date; Perseids contains more stable versions and might not be synchronized immediately.