知识卡片
词袋把文本转换为计数
词袋表示为词汇表中的每个词分配特征,再统计文档中出现次数。它让分类器处理数值向量,但通常丢掉词序,词汇表和清理规则也会改变可见信号。应固定训练侧词汇与转换方法,再用于未见文档,避免评估信息影响表示选择。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- · 查看原书依据
each word was counted as a feature with a bag of words. The count Vector Model and Term Frequency Model were applied to create a comprehensive vocabulary set similar to an English dictionary and to calculate the frequency of every word in the document. Using PorterStemmer and CountVectorizer methods, low-frequency words were removed through a natural language processing toolkit.
参考来源
- 位置:《Artificial Intelligence and Data Science in Recommendation System: Current Trends, Technologies, and Applications》第02章《文本挖掘与垃圾邮件过滤》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Artificial Intelligence and Data Science in Recommendation System: Current Trends, Technologies, and Applications/_epub-src/OEBPS/Text/9789815136746-C2.html)
- 结论依据:摘录中关于词袋把文本转换为计数的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。
- 原始内容:each word was counted as a feature with a bag of words. The count Vector Model and Term Frequency Model were applied to create a comprehensive vocabulary set similar to an English dictionary and to calculate the frequency of every word in the document. Using PorterStemmer and CountVectorizer methods, low-frequency words were removed through a natural language processing toolkit.