diff --git a/python/DeAccent.py b/python/DeAccent.py new file mode 100644 index 0000000..b7ca931 --- /dev/null +++ b/python/DeAccent.py @@ -0,0 +1,14 @@ +# Deacent words in the current text + +import sys + +from unidecode import unidecode + +file_path = sys.argv[1] + +with open(file_path, encoding='utf8') as f: + file_text = f.read() + +text_without_accents = unidecode(file_text) + +print(text_without_accents) \ No newline at end of file