update the type detection and exercise of nlp chapter 1