- Purpose
Takes the TnT tagged files from a dirtree and turns them into files containing standard rows of tags separated by spaces (with the tags for each separate sentence on its own line). The output of TnT2TagStat is ready to be fed into the TagStat toolset
The configfile is configtnt2tagstat.pl
- Synopsis
./tnt2tagstat.pl
- [-c <corpus>] [-f <fromsubdir>] | [-fd <fromdir>] [-tc <tocorpus>] [-t <tosubdir>] | [-td <targetdir>] [-r <reducetagpattern>] [-ps <partsubdir>] [-p <part>] | [-pd <partdir>] [-pf <divprtfile> [...]] [-dr] [-? = -h = -help = --help] [-v [<verboselvl>]]
- -c
- the corpus to work on
- -f
- subdir below corpus where the files are that are to be to worked on
- -fd
- full path to the stuff to work on
- -tc
- target-corpus. If none is set the source corpus is used
- -t
- the subdir relative to the corpus in which the tag-row-files should be stored. This option can only be used if the corpus is specified with the -c option
- -td
- full path to the dir in which the tag-rows-files should be stored
- -r
- a regular expression for the part of the tags that should be removed
- -ps
- subdir in which the divisions are
- -p
- the name of a division to use as a part. The file-names in all the divprt -files in the division-dir are added and used as the list of files to use unless you specify one or more explicitly using the -pf option
- -pd
- full path to the division-dir to use as a part. This option causes the -p option to be ignored
- -pf
- one or more divprt files to use as the part instead of all files in the division
- -dr
- dry-run. Nothing is written or deleted, only reading and reporting is done
- -v
- the level of verbosity, default verboselevel = 2, available levels: 0,1,2,3
- -?
- (and equivalents) prints help: the purpose and the synopsys
NOTE:
- If no from-dir and to-file is given the default(s) in the config file are/is used
You can download (or look at the sources of) TnT2TagStat [here]. To run it you will also need [the config file] and the [fiauimenre library]. You can also get the entire tool-package (containing the newest version of all fiauimenre tools and the library) [in one download]
|