clean_prestable
Classes and functions to clean the prestable directories.
find_prestable_files(corpusdir)
Find interesting files in prestable.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
corpusdir |
src
|
path to a corpus directory |
required |
Yields:
Type | Description |
---|---|
str
|
path to an interesting prestable file |
Source code in /home/anders/projects/CorpusTools/corpustools/clean_prestable.py
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
|
main()
Remove files in prestable that don't have original files.
Source code in /home/anders/projects/CorpusTools/corpustools/clean_prestable.py
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 |
|
parse_options()
Parse the commandline options.
Returns:
Type | Description |
---|---|
argparse.Namespace
|
the parsed commandline arguments |
Source code in /home/anders/projects/CorpusTools/corpustools/clean_prestable.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
|