0
How to remove sentences with speech marks in them
File with text from a book. How to remove the sentences with speech marks in them.
2 Antworten
0
Just what are speech marks exactly?
0
You can split sentences by sentence separators like 'dot' or 'newline'. And verify each if each letter in the sentence follows your rule (.isalpha()). If it does, keep the sentence, if not, discard it.
Hope this helps.