久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <bdo id='OKwj2'></bdo><ul id='OKwj2'></ul>

  • <legend id='OKwj2'><style id='OKwj2'><dir id='OKwj2'><q id='OKwj2'></q></dir></style></legend>
  • <i id='OKwj2'><tr id='OKwj2'><dt id='OKwj2'><q id='OKwj2'><span id='OKwj2'><b id='OKwj2'><form id='OKwj2'><ins id='OKwj2'></ins><ul id='OKwj2'></ul><sub id='OKwj2'></sub></form><legend id='OKwj2'></legend><bdo id='OKwj2'><pre id='OKwj2'><center id='OKwj2'></center></pre></bdo></b><th id='OKwj2'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='OKwj2'><tfoot id='OKwj2'></tfoot><dl id='OKwj2'><fieldset id='OKwj2'></fieldset></dl></div>

      <tfoot id='OKwj2'></tfoot>

      <small id='OKwj2'></small><noframes id='OKwj2'>

      1. AttributeError:“FreqDist"對象沒有屬性“inc"

        AttributeError: #39;FreqDist#39; object has no attribute #39;inc#39;(AttributeError:“FreqDist對象沒有屬性“inc)
        <i id='JpmNb'><tr id='JpmNb'><dt id='JpmNb'><q id='JpmNb'><span id='JpmNb'><b id='JpmNb'><form id='JpmNb'><ins id='JpmNb'></ins><ul id='JpmNb'></ul><sub id='JpmNb'></sub></form><legend id='JpmNb'></legend><bdo id='JpmNb'><pre id='JpmNb'><center id='JpmNb'></center></pre></bdo></b><th id='JpmNb'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='JpmNb'><tfoot id='JpmNb'></tfoot><dl id='JpmNb'><fieldset id='JpmNb'></fieldset></dl></div>
      2. <tfoot id='JpmNb'></tfoot>

          • <bdo id='JpmNb'></bdo><ul id='JpmNb'></ul>
                  <tbody id='JpmNb'></tbody>

              • <legend id='JpmNb'><style id='JpmNb'><dir id='JpmNb'><q id='JpmNb'></q></dir></style></legend>

                1. <small id='JpmNb'></small><noframes id='JpmNb'>

                2. 本文介紹了AttributeError:“FreqDist"對象沒有屬性“inc"的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我是 Python 和 NLTK 的初學者.我正在嘗試從教程中運行以下代碼:

                  I am a beginner in Python and NLTK. I am trying to run the following code from a tutorial:

                  from nltk.corpus import gutenberg
                  from nltk import FreqDist
                  
                  fd = FreqDist()
                  
                  for word in gutenberg.words('austen-sense.txt'):
                      fd.inc(word)
                  

                  如果我運行它,我會收到以下錯誤:

                  If I run this I get the following error:

                  AttributeError: 'FreqDist' object has no attribute 'inc'
                  

                  知道我做錯了什么嗎?

                  推薦答案

                  你應該這樣做:

                  fd[word] += 1
                  

                  但通常 FreqDist 是這樣使用的:

                  But usually FreqDist is used like this:

                  fd = FreqDist(my_text)
                  

                  也可以看看這里的例子:

                  Also look at the examples here:

                  http://www.nltk.org/book/ch01.html

                  這篇關于AttributeError:“FreqDist"對象沒有屬性“inc"的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  python: Two modules and classes with the same name under different packages(python:不同包下同名的兩個模塊和類)
                  Configuring Python to use additional locations for site-packages(配置 Python 以使用站點包的其他位置)
                  How to structure python packages without repeating top level name for import(如何在不重復導入頂級名稱的情況下構造python包)
                  Install python packages on OpenShift(在 OpenShift 上安裝 python 包)
                  How to refresh sys.path?(如何刷新 sys.path?)
                  Distribute a Python package with a compiled dynamic shared library(分發(fā)帶有已編譯動態(tài)共享庫的 Python 包)

                      • <bdo id='eFqNK'></bdo><ul id='eFqNK'></ul>

                        • <tfoot id='eFqNK'></tfoot>
                        • <legend id='eFqNK'><style id='eFqNK'><dir id='eFqNK'><q id='eFqNK'></q></dir></style></legend>
                        • <small id='eFqNK'></small><noframes id='eFqNK'>

                            <tbody id='eFqNK'></tbody>
                          <i id='eFqNK'><tr id='eFqNK'><dt id='eFqNK'><q id='eFqNK'><span id='eFqNK'><b id='eFqNK'><form id='eFqNK'><ins id='eFqNK'></ins><ul id='eFqNK'></ul><sub id='eFqNK'></sub></form><legend id='eFqNK'></legend><bdo id='eFqNK'><pre id='eFqNK'><center id='eFqNK'></center></pre></bdo></b><th id='eFqNK'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='eFqNK'><tfoot id='eFqNK'></tfoot><dl id='eFqNK'><fieldset id='eFqNK'></fieldset></dl></div>
                            主站蜘蛛池模板: www久久爱| 91就要激情| 亚洲视频在线一区 | 欧美一级做性受免费大片免费 | 福利视频一区二区 | 久久精品免费一区二区 | 综合久久久久 | 亚洲视频在线看 | 91视在线国内在线播放酒店 | 亚洲欧美日韩高清 | 欧美成人在线网站 | 九九成人 | 一区二区在线不卡 | 老司机67194精品线观看 | 一级黄色录像片子 | 亚洲在线免费观看 | 精品久久影院 | 国内毛片毛片毛片毛片 | a视频在线观看 | 国产精品福利网站 | 欧美黄色小视频 | 日韩专区中文字幕 | 欧美vide | 欧美天堂| 欧美激情国产精品 | 久久综合九色综合欧美狠狠 | 嫩草视频网 | www.日本在线 | 国产精品久久久久久久午夜片 | 亚洲一区二区三区在线 | 亚洲福利在线观看 | 久久精品国产久精国产 | www日韩 | 成人在线影视 | 九九久久精品 | 久久久青草 | 美国十次成人欧美色导视频 | 国产精品一区二 | 日韩av中文 | 香蕉久久网 | 亚洲人在线播放 |