![]() To get an explanation, use the fix_and_explain() function, whichįixes the string in one segment and explains what it fixed.įtfy.fix_and_explain() takes the same arguments as ftfy.fix_text(), but provides an explanation, like we saw in the first section. This function doesn’t provideĮxplanations (because there may be different fixes for different segments To the text that would fix more text like it. Theīound on segment lengths helps to avoid unbounded slowdowns.įtfy can also provide an ‘explanation’, a list of transformations it applied With config.max_decode_length) if there aren’t enough line breaks. Of text, or arbitrarily broken up every 1 million codepoints (configurable This function fixes text in independent segments, which are usually lines Fix_text ( text, TextFixerConfig ( uncurl_quotes = False )) fix_text ( text, uncurl_quotes = False )
0 Comments
Leave a Reply. |