CS565 Language Modeling and PoS Tagging through n-gram analysis and hidden markove model respectively