| ''' Keyword Matched Sentences ''' |
| |
| |
| |
| |
| |
| |
| |
| import scoring |
|
|
| print("#-----------------------------------------------------------#") |
|
|
| print("#------------------------- TEXT SCORING --------------------#") |
| |
| print("#-----------------------------------------------------------#") |
| keyword = input("ENTER KEYWORDS : ") |
| print("#############################################################") |
| paragraph = input("ENTER PARAGRAPH : ") |
| print("#############################################################") |
|
|
| |
| scoreTextObj = scoring.scoreText() |
| |
| |
| |
| matchedSentences = scoreTextObj.sentenceMatch(keyword, paragraph) |
| print() |
| print("#-------------------------- RESULTS ------------------------#") |
| print("#-------------------BEST MATCHING SENTENCES-----------------#") |
| print() |
| |
|
|
| |
| count = 1 |
| for text in matchedSentences: |
| print(' '+str(count)+' : '+text) |
| count += 1 |
| print() |
| |
| |