Why am I unable to access the biocreative-ppi package from NLTK?












0















I am trying to utilize biocreative-ppi package from NLTK on Google Colaboratory and on my personal laptop. However, even though I am able to download the biocreative-ppi package from NLTK, I am not able to access the biocreative_ppi package. I have done the following:




  • Uninstalled and reinstalled the nltk package on my laptop and on Google Colaboratory

  • Tried to download other packages from NLTK. I was successful at downloading brown

  • Spelled biocreative_ppi as biocreative,bcppi, bc_ppi, etc.


Here is the website for biocreative_ppi. As you can see, the package is not deprecated. It should still be available.



Here is the code from my Colaboratory notebook:



import subprocess
import nbformat
import json, os
import random
import spacy
import nltk
import nltk.corpus
nltk.download('brown')
nltk.corpus.brown
nltk.download('biocreative_ppi')
nltk.corpus.biocreative_ppi
[nltk_data] Downloading package brown to /root/nltk_data...
[nltk_data] Unzipping corpora/brown.zip.
[nltk_data] Error loading biocreative_ppi: Package 'biocreative_ppi'
[nltk_data] not found in index
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-4-4f6d73ab2d12> in <module>()
2 nltk.corpus.brown
3 nltk.download('biocreative_ppi')
----> 4 nltk.corpus.biocreative_ppi

/usr/local/lib/python3.6/dist-packages/nltk/lazyimport.py in __getattr__(self, name)
120 'Module load triggered by attribute %r read access' % name)
121 module = self.__lazymodule_import()
--> 122 return getattr(module, name)
123
124 def __setattr__(self, name, value):

AttributeError: module 'nltk.corpus' has no attribute 'biocreative'


The example above shows I can access brown. The following code will show I can successfully download biocreative_ppi but can't access it.



import subprocess
import nbformat
import json, os
import random
import spacy
import nltk
import nltk.corpus
nltk.download('biocreative_ppi')
nltk.corpus.biocreative_ppi
[nltk_data] Downloading package biocreative_ppi to /root/nltk_data...
[nltk_data] Package biocreative_ppi is already up-to-date!
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-2-bcfe9c01d5cf> in <module>()
1 nltk.download('biocreative_ppi')
----> 2 nltk.corpus.biocreative_ppi

/usr/local/lib/python3.6/dist-packages/nltk/lazyimport.py in __getattr__(self, name)
120 'Module load triggered by attribute %r read access' % name)
121 module = self.__lazymodule_import()
--> 122 return getattr(module, name)
123
124 def __setattr__(self, name, value):

AttributeError: module 'nltk.corpus' has no attribute 'biocreative_ppi'


I am aware that the biocreative_ppi dataset is also available through Kaggle and Biocreative's GitHub. However, I do not understand why I am able to download biocreative_ppi through nltk but can't access any of the subdirectories or files associated with biocreative_ppi. Please let me know if you can help me out. Thank you for your consideration, and I am open to any suggestions.










share|improve this question



























    0















    I am trying to utilize biocreative-ppi package from NLTK on Google Colaboratory and on my personal laptop. However, even though I am able to download the biocreative-ppi package from NLTK, I am not able to access the biocreative_ppi package. I have done the following:




    • Uninstalled and reinstalled the nltk package on my laptop and on Google Colaboratory

    • Tried to download other packages from NLTK. I was successful at downloading brown

    • Spelled biocreative_ppi as biocreative,bcppi, bc_ppi, etc.


    Here is the website for biocreative_ppi. As you can see, the package is not deprecated. It should still be available.



    Here is the code from my Colaboratory notebook:



    import subprocess
    import nbformat
    import json, os
    import random
    import spacy
    import nltk
    import nltk.corpus
    nltk.download('brown')
    nltk.corpus.brown
    nltk.download('biocreative_ppi')
    nltk.corpus.biocreative_ppi
    [nltk_data] Downloading package brown to /root/nltk_data...
    [nltk_data] Unzipping corpora/brown.zip.
    [nltk_data] Error loading biocreative_ppi: Package 'biocreative_ppi'
    [nltk_data] not found in index
    ---------------------------------------------------------------------------
    AttributeError Traceback (most recent call last)
    <ipython-input-4-4f6d73ab2d12> in <module>()
    2 nltk.corpus.brown
    3 nltk.download('biocreative_ppi')
    ----> 4 nltk.corpus.biocreative_ppi

    /usr/local/lib/python3.6/dist-packages/nltk/lazyimport.py in __getattr__(self, name)
    120 'Module load triggered by attribute %r read access' % name)
    121 module = self.__lazymodule_import()
    --> 122 return getattr(module, name)
    123
    124 def __setattr__(self, name, value):

    AttributeError: module 'nltk.corpus' has no attribute 'biocreative'


    The example above shows I can access brown. The following code will show I can successfully download biocreative_ppi but can't access it.



    import subprocess
    import nbformat
    import json, os
    import random
    import spacy
    import nltk
    import nltk.corpus
    nltk.download('biocreative_ppi')
    nltk.corpus.biocreative_ppi
    [nltk_data] Downloading package biocreative_ppi to /root/nltk_data...
    [nltk_data] Package biocreative_ppi is already up-to-date!
    ---------------------------------------------------------------------------
    AttributeError Traceback (most recent call last)
    <ipython-input-2-bcfe9c01d5cf> in <module>()
    1 nltk.download('biocreative_ppi')
    ----> 2 nltk.corpus.biocreative_ppi

    /usr/local/lib/python3.6/dist-packages/nltk/lazyimport.py in __getattr__(self, name)
    120 'Module load triggered by attribute %r read access' % name)
    121 module = self.__lazymodule_import()
    --> 122 return getattr(module, name)
    123
    124 def __setattr__(self, name, value):

    AttributeError: module 'nltk.corpus' has no attribute 'biocreative_ppi'


    I am aware that the biocreative_ppi dataset is also available through Kaggle and Biocreative's GitHub. However, I do not understand why I am able to download biocreative_ppi through nltk but can't access any of the subdirectories or files associated with biocreative_ppi. Please let me know if you can help me out. Thank you for your consideration, and I am open to any suggestions.










    share|improve this question

























      0












      0








      0


      1






      I am trying to utilize biocreative-ppi package from NLTK on Google Colaboratory and on my personal laptop. However, even though I am able to download the biocreative-ppi package from NLTK, I am not able to access the biocreative_ppi package. I have done the following:




      • Uninstalled and reinstalled the nltk package on my laptop and on Google Colaboratory

      • Tried to download other packages from NLTK. I was successful at downloading brown

      • Spelled biocreative_ppi as biocreative,bcppi, bc_ppi, etc.


      Here is the website for biocreative_ppi. As you can see, the package is not deprecated. It should still be available.



      Here is the code from my Colaboratory notebook:



      import subprocess
      import nbformat
      import json, os
      import random
      import spacy
      import nltk
      import nltk.corpus
      nltk.download('brown')
      nltk.corpus.brown
      nltk.download('biocreative_ppi')
      nltk.corpus.biocreative_ppi
      [nltk_data] Downloading package brown to /root/nltk_data...
      [nltk_data] Unzipping corpora/brown.zip.
      [nltk_data] Error loading biocreative_ppi: Package 'biocreative_ppi'
      [nltk_data] not found in index
      ---------------------------------------------------------------------------
      AttributeError Traceback (most recent call last)
      <ipython-input-4-4f6d73ab2d12> in <module>()
      2 nltk.corpus.brown
      3 nltk.download('biocreative_ppi')
      ----> 4 nltk.corpus.biocreative_ppi

      /usr/local/lib/python3.6/dist-packages/nltk/lazyimport.py in __getattr__(self, name)
      120 'Module load triggered by attribute %r read access' % name)
      121 module = self.__lazymodule_import()
      --> 122 return getattr(module, name)
      123
      124 def __setattr__(self, name, value):

      AttributeError: module 'nltk.corpus' has no attribute 'biocreative'


      The example above shows I can access brown. The following code will show I can successfully download biocreative_ppi but can't access it.



      import subprocess
      import nbformat
      import json, os
      import random
      import spacy
      import nltk
      import nltk.corpus
      nltk.download('biocreative_ppi')
      nltk.corpus.biocreative_ppi
      [nltk_data] Downloading package biocreative_ppi to /root/nltk_data...
      [nltk_data] Package biocreative_ppi is already up-to-date!
      ---------------------------------------------------------------------------
      AttributeError Traceback (most recent call last)
      <ipython-input-2-bcfe9c01d5cf> in <module>()
      1 nltk.download('biocreative_ppi')
      ----> 2 nltk.corpus.biocreative_ppi

      /usr/local/lib/python3.6/dist-packages/nltk/lazyimport.py in __getattr__(self, name)
      120 'Module load triggered by attribute %r read access' % name)
      121 module = self.__lazymodule_import()
      --> 122 return getattr(module, name)
      123
      124 def __setattr__(self, name, value):

      AttributeError: module 'nltk.corpus' has no attribute 'biocreative_ppi'


      I am aware that the biocreative_ppi dataset is also available through Kaggle and Biocreative's GitHub. However, I do not understand why I am able to download biocreative_ppi through nltk but can't access any of the subdirectories or files associated with biocreative_ppi. Please let me know if you can help me out. Thank you for your consideration, and I am open to any suggestions.










      share|improve this question














      I am trying to utilize biocreative-ppi package from NLTK on Google Colaboratory and on my personal laptop. However, even though I am able to download the biocreative-ppi package from NLTK, I am not able to access the biocreative_ppi package. I have done the following:




      • Uninstalled and reinstalled the nltk package on my laptop and on Google Colaboratory

      • Tried to download other packages from NLTK. I was successful at downloading brown

      • Spelled biocreative_ppi as biocreative,bcppi, bc_ppi, etc.


      Here is the website for biocreative_ppi. As you can see, the package is not deprecated. It should still be available.



      Here is the code from my Colaboratory notebook:



      import subprocess
      import nbformat
      import json, os
      import random
      import spacy
      import nltk
      import nltk.corpus
      nltk.download('brown')
      nltk.corpus.brown
      nltk.download('biocreative_ppi')
      nltk.corpus.biocreative_ppi
      [nltk_data] Downloading package brown to /root/nltk_data...
      [nltk_data] Unzipping corpora/brown.zip.
      [nltk_data] Error loading biocreative_ppi: Package 'biocreative_ppi'
      [nltk_data] not found in index
      ---------------------------------------------------------------------------
      AttributeError Traceback (most recent call last)
      <ipython-input-4-4f6d73ab2d12> in <module>()
      2 nltk.corpus.brown
      3 nltk.download('biocreative_ppi')
      ----> 4 nltk.corpus.biocreative_ppi

      /usr/local/lib/python3.6/dist-packages/nltk/lazyimport.py in __getattr__(self, name)
      120 'Module load triggered by attribute %r read access' % name)
      121 module = self.__lazymodule_import()
      --> 122 return getattr(module, name)
      123
      124 def __setattr__(self, name, value):

      AttributeError: module 'nltk.corpus' has no attribute 'biocreative'


      The example above shows I can access brown. The following code will show I can successfully download biocreative_ppi but can't access it.



      import subprocess
      import nbformat
      import json, os
      import random
      import spacy
      import nltk
      import nltk.corpus
      nltk.download('biocreative_ppi')
      nltk.corpus.biocreative_ppi
      [nltk_data] Downloading package biocreative_ppi to /root/nltk_data...
      [nltk_data] Package biocreative_ppi is already up-to-date!
      ---------------------------------------------------------------------------
      AttributeError Traceback (most recent call last)
      <ipython-input-2-bcfe9c01d5cf> in <module>()
      1 nltk.download('biocreative_ppi')
      ----> 2 nltk.corpus.biocreative_ppi

      /usr/local/lib/python3.6/dist-packages/nltk/lazyimport.py in __getattr__(self, name)
      120 'Module load triggered by attribute %r read access' % name)
      121 module = self.__lazymodule_import()
      --> 122 return getattr(module, name)
      123
      124 def __setattr__(self, name, value):

      AttributeError: module 'nltk.corpus' has no attribute 'biocreative_ppi'


      I am aware that the biocreative_ppi dataset is also available through Kaggle and Biocreative's GitHub. However, I do not understand why I am able to download biocreative_ppi through nltk but can't access any of the subdirectories or files associated with biocreative_ppi. Please let me know if you can help me out. Thank you for your consideration, and I am open to any suggestions.







      linux macos installation python






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 12 at 3:01









      Veena GhorakaviVeena Ghorakavi

      11




      11






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1404674%2fwhy-am-i-unable-to-access-the-biocreative-ppi-package-from-nltk%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1404674%2fwhy-am-i-unable-to-access-the-biocreative-ppi-package-from-nltk%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How do I know what Microsoft account the skydrive app is syncing to?

          When does type information flow backwards in C++?

          Grease: Live!