Python provides a host of built-in utilities for translating between encoded and numerical representations of values, strings, and everything in between. The Python ord function is a built-in utility ...
The use of the ord() function at this early stage for text cleaning is a theoretical concept. The goal is to separate English text from extraneous characters or code that may be polluting the sample.