知识卡片

普通读书笔记卡 · 6665.b · 生成模型:GPT-6

计数与输出须来自同版语料

理解等级:中级

语料下载和清理步骤改变文档、词元及词表规模。书中不同输出有16与28文档、482与498词等修订差异,不能拼成同一次运行证据;应保存实际文件、清理规则和版本,再由同一输入重新计算统计。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • · 查看原书依据

      482 Create a vocabulary, or lexicon, from the sequence of tokens for the entire paragraph. Your vocabulary is a list of all the unique tokens in your corpus, and just like a dictionary of words at the library, a vocabulary doesn’t contain any duplicates. Which Python data types do you know of that remove duplicates (besides the dict type)? >>> vocab = set(all_doc_tokens) #1 >>>

    参考来源

    - 位置:《Natural Language Processing in Action, Second Edition》第03章《词频与逆文档频率向量》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Natural Language Processing in Action, Second Edition/_epub-src/OEBPS/Text/chapter-3.html) - 结论依据:摘录中关于计数与输出须来自同版语料的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。 - 原始内容:482 Create a vocabulary, or lexicon, from the sequence of tokens for the entire paragraph. Your vocabulary is a list of all the unique tokens in your corpus, and just like a dictionary of words at the library, a vocabulary doesn’t contain any duplicates. Which Python data types do you know of that remove duplicates (besides the dict type)? >>> vocab = set(all_doc_tokens) #1 >>>