The Scrub Tool
The Scrubbing tool allows you to make document-wide edits on collections of selected documents, including the removal of punctuation, digits, and capital letters as well as how to handle hyphens and possessive apostrophes. Additionally, Scrub allows you to input a list of stopwords, lemmas, consolidations (character replacements), and special characters. Each of these options will be explained in more detail below. The directions will include prompts to further discussions on the implications of choices and when possible, effective practices for making preprocessing decisions.
Using Lexos
The first part of the scrubbing process involves several simple options which effect the entire document. In almost all cases, their names provide ample evidence of their functionality, so the important thing to remember is that they will take effect in each of your selected (active) documents or document segments in this order.
Note: scrubbing is hard: order of operations, special markup entitties (e.g., &ae; )
"""0. Gutenberg files
Scrubbing order:
0. Gutenberg
1. lower
2. special characters
3. tags
4. punctuation (hyphens, apostrophes, ampersands)
5. digits
6. white space
7. consolidations
8. lemmatize
9. stop words/keep words
"""
Documents from gutenberg.org containing "bioler plate" materials about the text at the beginning and end of
1. Make lowercase:
Remove punctuations
All unicode characters have an associated set of metadata for classifying its "type" of character. If this option is selected, any unicode character in each of the active texts that has a Punctuation Character Property (begins with a 'P') or a Symbol Character Property (begins with 'S') is removed. The specific Punctuation and Symbols that are removed are listed below:
| Punctuation | ||
| Pc | Connector punctuation | |
| Pd | Dash punctuation | |
| Pe | Close punctuation | |
| Pf | Final punctuation | |
| Pi | Initial punctuation | |
| Po | Other punctuation | |
| Ps | Open punctuation | |
| S | Symbol | |
| Sc | Currency symbol | |
| Sk | Modifier symbol | |
| Sm | Mathematical symbol | |
| So | Other symbol |