alpinocorpus-stats -- Alpino treebank node statistics
alpinocorpus-stats [options] query treebank ...
The alpinocorpus-stats utility counts the number of occurences of nodes matching query in each Dact treebank. If treebank is a directory, then alpinocorpus-stats will count matching nodes in all treebanks below that directory. The supported query format is XPath 2.0.
The following options are available:
-m
MACROFILELoad macros from MACROFILE.
-p
Print relative frequencies.
The command:
alpinocorpus-stats '//node[@root="loop"]/@word/string()' lassy.dact
will print the frequency of each word in the treebank that has loop as its root.
alpinocorpus-create(1), alpinocorpus-extract(1), alpinocorpus-get(1), alpinocorpus-xpath(1), alpinocorpus-xquery(1), alpinocorpus-xslt(1)