Adding comments
This commit is contained in:
parent
6b483336e7
commit
9f30e4cb43
|
@ -87,6 +87,9 @@ def pdf_to_txt(pdf_file, txt_file):
|
|||
|
||||
|
||||
def generate_clean_text_file(text_file):
|
||||
"""
|
||||
Génère un nouveau fichier texte, nettoyé, sur base du fichier texte brut (cf. pdf_to_txt())
|
||||
"""
|
||||
file = open(text_file, "r")
|
||||
cleaned_file = open(text_file[:-4] + "_cleaned.txt", "w")
|
||||
|
||||
|
@ -146,7 +149,7 @@ def write_header(xl_sheet, cell, text) -> None:
|
|||
|
||||
def generete_excel_file(cleaned_text_file):
|
||||
"""
|
||||
Génère un fichier excel sur base du fichier texte nettoyé.
|
||||
Génère un fichier excel sur base du fichier texte nettoyé (cf. generate_clean_text_file()).
|
||||
"""
|
||||
cleaned_file = open(cleaned_text_file, "r")
|
||||
lines = cleaned_file.readlines()
|
||||
|
|
Loading…
Reference in New Issue