+ 1
Hi..i want to search sentence with double quotes like "sentence " in paragraph. what should be the code.
2 Antworten
+ 1
paragraph = "This is a sentence with words.'
if 'sentence' in paragraph:
print('Found word "sentence".')
else:
print('Didn't find word "sentence".')
0
thanks for quick response.
but my problem is that suppose a paragraph contains any quoted sentence then extract that sentence.
suppose my paragraph is
apply other heuristic taken, which filters out single-world noun phrases that are stop words and noun phrases with more than five words."usually authors does not use very large key-phrases to describe their papers". These filters limit the dimensions of the graph that we will construct in the next step.
now the objective is to extract the quoted sentence starts from " usually .......papers".
i m working on citation analysis.
any one pls help me.