Your program should take an input text file as an argument, and
produce a tagged version of the text in a standard output (screen).
The tagger should stop reading tokens when it reads the EOF marker.
Here is an example.
---
Assume the following input file is called report.txt:
Lower inflation paves way for rate cut
Mark Tran
Tuesday October 16, 2001
Official figures today showed inflation falling from a two-year high
in September, fuelling expectation that the Bank of England will
lower the cost of borrowing this year.
Figures from the office for national statistics (ONS) showed the
underlying rate of inflation, which excludes mortgage interest
payments, dropped by 0.3% to 2.3% in September.
---
> tagger report.txt
Lower inflation paves way for rate cut
Mark Tran
Official figures showed inflation falling from a two-year high
in , fuelling expectation that the Bank of England will
lower the cost of borrowing .
Figures from the office for national statistics (ONS) showed the
underlying rate of inflation, which excludes mortgage interest
payments, dropped by 0.3% to 2.3% in .