什么是 Lemmatization?与 Stemming 有什么区别?请给出 NLTK 示例。
What is lemmatization, and how is it different from stemming? Provide an NLTK example.
题目类型: 技术面试题
这是一道技术面试题,常见于澳洲IT公司面试中。
难度: medium
标签: NLP, NLTK, Lemmatization, Stemming
参考答案摘要
Lemmatization(词形还原) 会把词还原为具有真实意义的“词元(lemma)”,通常需要词性信息和词典。 与 stemming 区别 : Stemming :规则裁剪后缀/前缀,速度快,但可能得到非真实单词。 Lemmatization :基于词典/词性,还原结果更“像人话”,更利于解释。 import nltk from nltk.stem import WordNetLemmatiz...
本题提供 STAR 原则详细解答和技术解析,登录匠人学院学习中心即可查看完整答案。