Starting from:

$30

NLP Assignment 2 Solution

Please don’t copy from net or other students. Plag will be checked​.

Allowed Programming language : Python




Your task in this assignment is to write a python program that accepts as input a plain text newspaper article file and returns the following.




1)
Number of paragraphs, sentences, and words contained in the article.
[ 3 ]
2)
Given a word as input, number of sentences starting with the word.
[ 2 ]
3)
Given a word as input, number of sentences ending with the word.
[ 2 ]
4)
Given a word as input, count of that word in the input file.
[ 2 ]
5)
Report file.
[ 1 ]



Use the given file as a development example. Don't try to fit your code too closely to this single example. Output will be verified with other files during evaluation.







Submission format: ​Upload your project folder containing the code file named Assignment2_counts_MT170XX.py




Submit a pdf report file with your implementation details and clearly mention your assumption if any.

More products