typosfile
Classes to handle .typos files in $GTFREE.
Typoline
Class to parse a line of a .typos file
Source code in /home/anders/projects/CorpusTools/corpustools/typosfile.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
|
__init__(typoline)
Parse a typoline
A typoline has a number showing frequency of the typo, the typo and possibly a correction
Source code in /home/anders/projects/CorpusTools/corpustools/typosfile.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
|
makeTypoline()
Make a typoline from the three data parts in this class
Source code in /home/anders/projects/CorpusTools/corpustools/typosfile.py
50 51 52 53 54 55 56 |
|
Typos
A class that reads typos and corrections from a .typos files
Source code in /home/anders/projects/CorpusTools/corpustools/typosfile.py
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
|
__init__(typosfile)
Read typos from typosfile.
If a correction exists, insert the typos and corrections into self.typos
Source code in /home/anders/projects/CorpusTools/corpustools/typosfile.py
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
|
getTypos()
Return the typos dict
Source code in /home/anders/projects/CorpusTools/corpustools/typosfile.py
79 80 81 |
|