I have the following text in a word file.. I am trying to read the text line by line, check whether the last word is hyphenated, if it is hyphenated then join the last word of the current sentence and first word of the previous sentence without hyphenation....
*The protection of anticipatory or pre-arrest bail cannot be limited to any time-
frame or “fixed period” as denial of bail amounts to deprivation of the funda-
mental right to personal liberty in a free and democratic country, a Consti-
tution Bench of the Supreme Court ruled on Wednesday.*
expectation output: timeframe fundamental constitution
Python Docx has options only to read entire paragraph and not lines..
Is there a way to do it in Python??? Can someone assist???