How to remove sentences with speech marks in them | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
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.

7th Jun 2021, 7:48 PM
Ash 07
Ash 07 - avatar
2 ответов
0
Just what are speech marks exactly?
8th Jun 2021, 3:44 AM
Ipang
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.
8th Jun 2021, 6:06 AM
Alexandru Calmuc
Alexandru Calmuc - avatar