Applying the definition
There are two ways of applying the subcorpus definition to the corpus:
- via the web interface – recommended for most users
- with a script – only for system admins
Via the interface
Follow these steps. Start on the Dashboard dashboard and follow these steps:
- MANAGE CORPUS
- Expert Settings
- Subcorpus definition
- Copy and paste the text of the definition line on the line. The line will expand as necesary.
- Save and Compile.
When the compilation finishes, the subcorpora will appear in the subcorpus selector on the input forms, also in Manage corpus – Subcorpora and on the corpus info page. The subcorpora will also be available to all users you share the corpus with.
With the mksubc.py script
(for system admins only)
Usage: mksubc.py CORPNAME SUBCORP_DIR SUBCORP_DEF_FILE
SUBCORP_DIR is a directory where the subcorpora will be created, this depends on the Sketch Engine installation. The global subcorpora (accessible by all users) should be stored in the directory set in the SUBCBASE attribute of the corpus config file, which is by default PATH/subcorp/.
Note that mksubc.py is run by compilecorp (see Compiling Corpus)