36 lines
775 B
Python
Executable File
36 lines
775 B
Python
Executable File
#!/usr/bin/env python3
|
|
"""
|
|
corrigir_texto.py
|
|
|
|
Author: Descomplicar® Crescimento Digital
|
|
Link: https://descomplicar.pt
|
|
Copyright: 2025 Descomplicar®
|
|
"""
|
|
|
|
from processors.text_corrector import TextCorrector
|
|
|
|
def main():
|
|
# Cria uma instância do corretor
|
|
corrector = TextCorrector()
|
|
|
|
# Solicita o texto ao usuário
|
|
print("Digite ou cole o texto a ser corrigido (Ctrl+D para terminar):")
|
|
try:
|
|
texto = ""
|
|
while True:
|
|
linha = input()
|
|
texto += linha + "\n"
|
|
except EOFError:
|
|
pass
|
|
|
|
# Corrige o texto
|
|
texto_corrigido = corrector.correct_text(texto)
|
|
|
|
# Mostra o resultado
|
|
print("\nTexto Corrigido:")
|
|
print("="*50)
|
|
print(texto_corrigido)
|
|
|
|
if __name__ == "__main__":
|
|
main()
|