study python-nlp example code