Fix text as a single segment, with a consistent sequence of steps that are applied to fix the text. Discard the explanation.
(
text: str, config: TextFixerConfig | None = None, **kwargs: Any
)
| 607 | |
| 608 | |
| 609 | def fix_text_segment( |
| 610 | text: str, config: TextFixerConfig | None = None, **kwargs: Any |
| 611 | ) -> str: |
| 612 | """ |
| 613 | Fix text as a single segment, with a consistent sequence of steps that |
| 614 | are applied to fix the text. Discard the explanation. |
| 615 | """ |
| 616 | if config is None: |
| 617 | config = TextFixerConfig(explain=False) |
| 618 | config = _config_from_kwargs(config, kwargs) |
| 619 | fixed, _explan = fix_and_explain(text, config) |
| 620 | return fixed |
| 621 | |
| 622 | |
| 623 | def fix_file( |