Implementation of Yarowsky algorithm for NLP course