+ 1

Hi..i want to search sentence with double quotes like "sentence " in paragraph. what should be the code.

17th Feb 2017, 12:28 PM
Shikha Pandey
Shikha Pandey - avatar
2 Réponses
+ 1
paragraph = "This is a sentence with words.' if 'sentence' in paragraph: print('Found word "sentence".') else: print('Didn't find word "sentence".')
17th Feb 2017, 12:53 PM
Igor B
Igor B - avatar
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.
17th Feb 2017, 3:30 PM
Shikha Pandey
Shikha Pandey - avatar