wiki:SkE/Help/CommandlineTools

Command Line Tools

You can use these if you have access to a local installation and can run commands at the linux prompt

corpquery

Usage: corpquery.py CORPUSNAME QUERY [ OPTIONS ]

Options:

-r ATTR reference attribute

(default: None)

-c LEFT,RIGHT | BOTH left and right or both context length

(default: 15)

-h LIMIT maximum number of results

(default: -1)

-a ATTR1,ATTR2,... comma separated list of attributes to be shown

default: word,lemma,tag)

-s STR1,STR2... comma separated list of structures to be shown

(use struct.attr or struct.* to show structure attributes; default: s,p,doc)

-g GDEX_CONF use GDEX with a given GDEX_CONF configuration file

(default: None; use - for default configuration) use -h to set the result size (default: 100)

-m GDEX_MODULE_DIR GDEX module path (directory with gdex.py or gdex_old.py)

(default: /usr/lib/python2.7/site-packages/bonito2/)

See Also

  • Command line tools for compiling corpora click here