I have 100+ text files containing paragraphs of texts. I would like to manually add headers to the individual text files batch-wise, adding headers such as: "year", "id", "place", "body" to the text files, and then compiling them into a csv. Is there a way to do that in python? How might the code look like? The aim is to eventually collate something like this:
doc_id;"speech_type";"author";"date";"text"
1;"speech";"speaker"; "yyyy-mm-dd"; "speech text"