Python program to manipulate data: traverse and tag using a customisable command line tool and application programming interface.
Read the tagger documentation here.
To install tagger, follow the following steps (Windows):
- Download the latest tagger release here as a
.zip
file. - Extract the
tagger-master
folder in the.zip
file and rename totagger
(This folder should contain the Python files, not another sub-folder). - Open Command Prompt by typing cmd into the Start Menu.
- Enter the directory which contains the
tagger
folder (by using cd <dir>). - Now run tagger using python -m tagger from the command line, passing the necessary arguments.
tagger has the following command line options:
Option | Shorthand | Required? | Description |
---|---|---|---|
--data FILE |
-d FILE |
Yes | Data source to parse and from which create a data tree |
--plugins DIR |
-p DIR |
No | An alternative directory in which to search for plugins |
--warnings |
-w |
No | A flag indicating whether warnings should be raised as errors |
tagger comes with a sample data file, found in tagger/sample_data.txt
. To run this file, type python -m tagger -d tagger/sample_data.txt from the command line.